Example #1
0
 protected ClassWriter(Context context) {
   super(context);
   context.put(ClassWriter.class, this);
   options = Options.instance(context);
   attrWriter = AttributeWriter.instance(context);
   codeWriter = CodeWriter.instance(context);
   constantWriter = ConstantWriter.instance(context);
 }
Example #2
0
 static ClassWriter instance(Context context) {
   ClassWriter instance = context.get(ClassWriter.class);
   if (instance == null) instance = new ClassWriter(context);
   return instance;
 }