/** * A declare declaration exists in a classfile only as an attibute on the class. Unlike advice and * inter-type declarations, it has no corresponding method. **AMC** changed the above policy in * the case of declare annotation, which uses a corresponding method as the anchor for the * declared annotation */ public void generateCode(ClassScope classScope, ClassFile classFile) { if (shouldBeSynthetic()) { this.binding.modifiers |= Flags.AccSynthetic; } classFile.extraAttributes.add( new EclipseAttributeAdapter(new AjAttribute.DeclareAttribute(declareDecl))); if (shouldDelegateCodeGeneration()) { super.generateCode(classScope, classFile); } return; }