- All Implemented Interfaces:
ClassContent,ClassFileContent,JAnnotatable,JClassDef,JClassDefSection,JCommentable,JDocCommentable,JGenericDef,Sectionable,Writable
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEnumJClassDef(int mods, AbstractJClassDef enclosingClass, String name) EnumJClassDef(int mods, ImplJSourceFile classFile, String name) -
Method Summary
Modifier and TypeMethodDescriptionAdd an enum constant.Add anextendstype to this type.Add anextendstype to this type.Add anextendstype to this type.(package private) Tokens.$KWgetName()(package private) voidwriteContent(SourceFileWriter sourceFileWriter) Methods inherited from class org.jboss.jdeparser.AbstractJClassDef
_class, _class, _enum, _enum, _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, getMods, hasInterfaceStyleExtends, init, init, lineComment, method, method, method, method, methodCanHaveBody, section, staticInit, staticInit, supportsCompactInitOnly, typeParam, write, writeClassHeader, writeContentBlockMethods inherited from class org.jboss.jdeparser.AbstractJGeneric
typeParams, typeParamsToArgs, writeTypeParamsMethods inherited from class org.jboss.jdeparser.BasicJAnnotatable
annotate, annotate, annotate, writeAnnotationsMethods inherited from class org.jboss.jdeparser.AbstractJDocCommentable
deprecated, docComment, writeDocCommentsMethods inherited from class org.jboss.jdeparser.BasicJCommentable
writeCommentsMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.jdeparser.JAnnotatable
annotate, annotate, annotateMethods inherited from interface org.jboss.jdeparser.JDocCommentable
deprecated, docCommentMethods inherited from interface org.jboss.jdeparser.JGenericDef
typeParams
-
Field Details
-
constants
-
-
Constructor Details
-
EnumJClassDef
EnumJClassDef(int mods, ImplJSourceFile classFile, String name) -
EnumJClassDef
EnumJClassDef(int mods, AbstractJClassDef enclosingClass, String name)
-
-
Method Details
-
designation
Tokens.$KW designation()- Specified by:
designationin classAbstractJClassDef
-
_enum
Description copied from interface:JClassDefAdd an enum constant. If the class being defined is not an enum, an exception is thrown.- Specified by:
_enumin interfaceJClassDef- Overrides:
_enumin classAbstractJClassDef- Parameters:
name- the constant name- Returns:
- the call for enum construction
-
_extends
Description copied from interface:JClassDefAdd anextendstype to this type.- Specified by:
_extendsin interfaceJClassDef- Overrides:
_extendsin classAbstractJClassDef- Parameters:
name- the type name- Returns:
- this type definition
-
_extends
Description copied from interface:JClassDefAdd anextendstype to this type.- Specified by:
_extendsin interfaceJClassDef- Overrides:
_extendsin classAbstractJClassDef- Parameters:
type- the type- Returns:
- this type definition
-
_extends
Description copied from interface:JClassDefAdd anextendstype to this type.- Specified by:
_extendsin interfaceJClassDef- Overrides:
_extendsin classAbstractJClassDef- Parameters:
clazz- the type- Returns:
- this type definition
-
writeContent
- Overrides:
writeContentin classAbstractJClassDef- Throws:
IOException
-
getName
- Overrides:
getNamein classAbstractJClassDef
-