Class AnnotationJClassDef
- All Implemented Interfaces:
ClassContent, ClassFileContent, JAnnotatable, JClassDef, JClassDefSection, JClassItem, JCommentable, JDocCommentable, JGenericDef, Sectionable, Writable
-
Nested Class Summary
Nested classes/interfaces inherited from interface JClassItem
JClassItem.Kind -
Field Summary
Fields inherited from interface JClassItem
SMART_NAME_SORT -
Constructor Summary
ConstructorsConstructorDescriptionAnnotationJClassDef(int mods, AbstractJClassDef enclosingClass, String name) AnnotationJClassDef(int mods, ImplJSourceFile classFile, String name) -
Method Summary
Modifier and TypeMethodDescriptionAdd anextendstype to this type.Add anextendstype to this type.Add anextendstype to this type._implements(Class<?>... classes) Add one or moreimplementstype(s) to this type._implements(String... names) Add one or moreimplementstype(s) to this type._implements(JType... types) Add one or moreimplementstype(s) to this type.constructor(ArrayList<ClassContent> content, int mods) (package private) Tokens.$KWGet the kind of item.getName()Get the name of this element, if there is one.init(ArrayList<ClassContent> content) method(ArrayList<ClassContent> content, int mods, JType returnType, String name) (package private) booleanmethodCanHaveBody(int mods) Define a type parameter.Methods inherited from class AbstractJClassDef
_class, _class, _enum, _enum, _enum, _interface, _interface, add, add, annotationInterface, annotationInterface, blankLine, blockComment, constructor, erasedType, field, field, field, field, field, field, field, genericType, getClassFile, getContent, getEnclosingClass, getExtends, getImplements, getMemberIndentation, getModifiers, getMods, hasAllModifiers, hasAnyModifier, hasInterfaceStyleExtends, init, lineComment, method, method, method, section, staticInit, staticInit, supportsCompactInitOnly, write, writeClassHeader, writeContent, writeContentBlockMethods inherited from class AbstractJGeneric
typeParams, typeParamsToArgs, writeTypeParamsMethods inherited from class BasicJAnnotatable
annotate, annotate, annotate, writeAnnotationsMethods inherited from class AbstractJDocCommentable
deprecated, docComment, writeDocCommentsMethods inherited from class BasicJCommentable
writeCommentsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface JAnnotatable
annotate, annotate, annotateMethods inherited from interface JClassItem
getModifiers, hasAllModifiers, hasAnyModifierMethods inherited from interface JDocCommentable
deprecated, docCommentMethods inherited from interface JGenericDef
typeParams
-
Constructor Details
-
AnnotationJClassDef
AnnotationJClassDef(int mods, ImplJSourceFile classFile, String name) -
AnnotationJClassDef
AnnotationJClassDef(int mods, AbstractJClassDef enclosingClass, String name)
-
-
Method Details
-
designation
Tokens.$KW designation()- Specified by:
designationin classAbstractJClassDef
-
_extends
-
_extends
-
_extends
-
_implements
Description copied from interface:JClassDefAdd one or moreimplementstype(s) to this type.- Specified by:
_implementsin interfaceJClassDef- Overrides:
_implementsin classAbstractJClassDef- Parameters:
names- the type name- Returns:
- this type definition
-
_implements
Description copied from interface:JClassDefAdd one or moreimplementstype(s) to this type.- Specified by:
_implementsin interfaceJClassDef- Overrides:
_implementsin classAbstractJClassDef- Parameters:
types- the type- Returns:
- this type definition
-
_implements
Description copied from interface:JClassDefAdd one or moreimplementstype(s) to this type.- Specified by:
_implementsin interfaceJClassDef- Overrides:
_implementsin classAbstractJClassDef- Parameters:
classes- the type- Returns:
- this type definition
-
init
- Specified by:
initin interfaceSectionable- Overrides:
initin classAbstractJClassDef
-
methodCanHaveBody
boolean methodCanHaveBody(int mods) - Overrides:
methodCanHaveBodyin classAbstractJClassDef
-
constructor
- Specified by:
constructorin interfaceSectionable- Overrides:
constructorin classAbstractJClassDef
-
typeParam
Description copied from interface:JGenericDefDefine a type parameter.- Specified by:
typeParamin interfaceJGenericDef- Overrides:
typeParamin classAbstractJClassDef- Parameters:
name- the type parameter name- Returns:
- the type parameter definition
-
method
- Specified by:
methodin interfaceSectionable- Overrides:
methodin classAbstractJClassDef
-
getItemKind
Description copied from interface:JClassItemGet the kind of item.- Specified by:
getItemKindin interfaceJClassItem- Returns:
- the item kind
-
getName
Description copied from interface:JClassItemGet the name of this element, if there is one.- Specified by:
getNamein interfaceJClassItem- Overrides:
getNamein classAbstractJClassDef- Returns:
- the name, or
nullif there is none
-