Package org.jboss.jdeparser
Class PlainJClassDef
- java.lang.Object
-
- All Implemented Interfaces:
BlockContent
,ClassContent
,ClassFileContent
,JAnnotatable
,JClassDef
,JClassDefSection
,JClassItem
,JCommentable
,JDocCommentable
,JGenericDef
,Sectionable
,Writable
class PlainJClassDef extends AbstractJClassDef implements BlockContent, JClassItem
-
-
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
Constructors Constructor Description PlainJClassDef(int mods, AbstractJClassDef enclosingClass, java.lang.String name)
PlainJClassDef(int mods, ImplJSourceFile classFile, java.lang.String name)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) Tokens.$KW
designation()
JClassItem.Kind
getItemKind()
Get the kind of item.java.lang.String
getName()
Get the name of this element, if there is one.-
Methods inherited from class org.jboss.jdeparser.AbstractJClassDef
_class, _class, _enum, _enum, _enum, _extends, _extends, _extends, _implements, _implements, _implements, _interface, _interface, add, add, annotationInterface, annotationInterface, blankLine, blockComment, constructor, constructor, erasedType, field, field, field, field, field, field, field, genericType, getClassFile, getContent, getEnclosingClass, getExtends, getImplements, getMemberIndentation, getModifiers, getMods, hasAllModifiers, hasAnyModifier, hasInterfaceStyleExtends, init, init, lineComment, method, method, method, method, methodCanHaveBody, section, staticInit, staticInit, supportsCompactInitOnly, typeParam, 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 Detail
-
PlainJClassDef
PlainJClassDef(int mods, ImplJSourceFile classFile, java.lang.String name)
-
PlainJClassDef
PlainJClassDef(int mods, AbstractJClassDef enclosingClass, java.lang.String name)
-
-
Method Detail
-
designation
Tokens.$KW designation()
- Specified by:
designation
in classAbstractJClassDef
-
getItemKind
public JClassItem.Kind getItemKind()
Description copied from interface:JClassItem
Get the kind of item.- Specified by:
getItemKind
in interfaceJClassItem
- Returns:
- the item kind
-
getName
public java.lang.String 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
-
-