Package org.jboss.jdeparser
Interface JAnnotatable
-
- All Known Subinterfaces:
JAnonymousClassDef,JClassDef,JEnumConstant,JMethodDef,JPackageInfoFile,JParamDeclaration,JVarDeclaration
- All Known Implementing Classes:
AbstractJClassDef,AbstractJGeneric,AbstractJMethodDef,AnnotationJClassDef,AnnotationJMethodDef,AnonymousJClassDef,BasicJAnnotatable,ConstructorJMethodDef,EnumConstantJClassDef,EnumJClassDef,FirstJVarDeclaration,ImplJAnonymousClassDef,ImplJEnumConstant,ImplJParamDeclaration,InnerJAnonymousClassDef,InterfaceJClassDef,MethodJMethodDef,PlainJClassDef,SuccessorJVarDeclaration,TryJVarDeclaration
public interface JAnnotatableA program element which can be annotated.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JAnnotationannotate(java.lang.Class<? extends java.lang.annotation.Annotation> type)Add an annotation.JAnnotationannotate(java.lang.String type)Add an annotation.JAnnotationannotate(JType type)Add an annotation.
-
-
-
Method Detail
-
annotate
JAnnotation annotate(java.lang.String type)
Add an annotation.- Parameters:
type- the type of the annotation to add- Returns:
- the new annotation
-
annotate
JAnnotation annotate(JType type)
Add an annotation.- Parameters:
type- the type of the annotation to add- Returns:
- the new annotation
-
annotate
JAnnotation annotate(java.lang.Class<? extends java.lang.annotation.Annotation> type)
Add an annotation.- Parameters:
type- the type of the annotation to add- Returns:
- the new annotation
-
-