|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotationBuilder
This interface is a hook for (external) tools to add annotations to
classes, fields and enums during the XML code generation process.
Custom implementations of AnnotationBuilder
instances can be
added to a code generation execution using
BuilderConfiguration.addAnnotationBuilder(AnnotationBuilder)
Method Summary | |
---|---|
void |
addClassAnnotations(ClassInfo classInfo,
JClass jClass)
add annotations to a JClass. |
void |
addEnumAnnotations(SimpleType simpleType,
JEnum jEnums)
add annotations to a java5 enum. |
void |
addEnumConstantAnnotations(Facet facet,
JEnumConstant enumConstant)
add annotations to a java5 enum constant. |
void |
addFieldAnnotations(FieldInfo fieldInfo,
JField field)
add annotation to a property definition. |
void |
addFieldGetterAnnotations(FieldInfo fieldInfo,
JMethod method)
add annotations to a getter of a property. |
Method Detail |
---|
void addClassAnnotations(ClassInfo classInfo, JClass jClass)
classInfo
- the classInfojClass
- the jClassvoid addFieldAnnotations(FieldInfo fieldInfo, JField field)
fieldInfo
- the fieldInfofield
- the jFieldvoid addFieldGetterAnnotations(FieldInfo fieldInfo, JMethod method)
fieldInfo
- the fieldInfomethod
- the getter methodvoid addEnumAnnotations(SimpleType simpleType, JEnum jEnums)
simpleType
- the corresponding simpleTypejEnums
- the jEnumvoid addEnumConstantAnnotations(Facet facet, JEnumConstant enumConstant)
facet
- the corresponding facetenumConstant
- the jEnumConstant
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |