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); }
static ClassWriter instance(Context context) { ClassWriter instance = context.get(ClassWriter.class); if (instance == null) instance = new ClassWriter(context); return instance; }