Package org.jboss.jdeparser
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 org.jboss.jdeparser.JClassItem
JClassItem.Kind
-
Field Summary
Fields inherited from interface org.jboss.jdeparser.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 anextends
type to this type.Add anextends
type to this type.Add anextends
type to this type._implements
(Class<?>... classes) Add one or moreimplements
type(s) to this type._implements
(String... names) Add one or moreimplements
type(s) to this type._implements
(JType... types) Add one or moreimplements
type(s) to this type.constructor
(ArrayList<ClassContent> content, int mods) (package private) Tokens.$KW
Get 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) boolean
methodCanHaveBody
(int mods) Define a type parameter.Methods inherited from class org.jboss.jdeparser.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, writeContentBlock
Methods inherited from class org.jboss.jdeparser.AbstractJGeneric
typeParams, typeParamsToArgs, writeTypeParams
Methods inherited from class org.jboss.jdeparser.BasicJAnnotatable
annotate, annotate, annotate, writeAnnotations
Methods inherited from class org.jboss.jdeparser.AbstractJDocCommentable
deprecated, docComment, writeDocComments
Methods inherited from class org.jboss.jdeparser.BasicJCommentable
writeComments
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.jdeparser.JAnnotatable
annotate, annotate, annotate
Methods inherited from interface org.jboss.jdeparser.JClassItem
getModifiers, hasAllModifiers, hasAnyModifier
Methods inherited from interface org.jboss.jdeparser.JDocCommentable
deprecated, docComment
Methods inherited from interface org.jboss.jdeparser.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:
designation
in classAbstractJClassDef
-
_extends
Description copied from interface:JClassDef
Add anextends
type to this type.- Specified by:
_extends
in interfaceJClassDef
- Overrides:
_extends
in classAbstractJClassDef
- Parameters:
name
- the type name- Returns:
- this type definition
-
_extends
Description copied from interface:JClassDef
Add anextends
type to this type.- Specified by:
_extends
in interfaceJClassDef
- Overrides:
_extends
in classAbstractJClassDef
- Parameters:
type
- the type- Returns:
- this type definition
-
_extends
Description copied from interface:JClassDef
Add anextends
type to this type.- Specified by:
_extends
in interfaceJClassDef
- Overrides:
_extends
in classAbstractJClassDef
- Parameters:
clazz
- the type- Returns:
- this type definition
-
_implements
Description copied from interface:JClassDef
Add one or moreimplements
type(s) to this type.- Specified by:
_implements
in interfaceJClassDef
- Overrides:
_implements
in classAbstractJClassDef
- Parameters:
names
- the type name- Returns:
- this type definition
-
_implements
Description copied from interface:JClassDef
Add one or moreimplements
type(s) to this type.- Specified by:
_implements
in interfaceJClassDef
- Overrides:
_implements
in classAbstractJClassDef
- Parameters:
types
- the type- Returns:
- this type definition
-
_implements
Description copied from interface:JClassDef
Add one or moreimplements
type(s) to this type.- Specified by:
_implements
in interfaceJClassDef
- Overrides:
_implements
in classAbstractJClassDef
- Parameters:
classes
- the type- Returns:
- this type definition
-
init
- Specified by:
init
in interfaceSectionable
- Overrides:
init
in classAbstractJClassDef
-
methodCanHaveBody
boolean methodCanHaveBody(int mods) - Overrides:
methodCanHaveBody
in classAbstractJClassDef
-
constructor
- Specified by:
constructor
in interfaceSectionable
- Overrides:
constructor
in classAbstractJClassDef
-
typeParam
Description copied from interface:JGenericDef
Define a type parameter.- Specified by:
typeParam
in interfaceJGenericDef
- Overrides:
typeParam
in classAbstractJClassDef
- Parameters:
name
- the type parameter name- Returns:
- the type parameter definition
-
method
- Specified by:
method
in interfaceSectionable
- Overrides:
method
in classAbstractJClassDef
-
getItemKind
Description copied from interface:JClassItem
Get the kind of item.- Specified by:
getItemKind
in interfaceJClassItem
- Returns:
- the item kind
-
getName
Description copied from interface:JClassItem
Get the name of this element, if there is one.- Specified by:
getName
in interfaceJClassItem
- Overrides:
getName
in classAbstractJClassDef
- Returns:
- the name, or
null
if there is none
-