java.lang.Object
org.jboss.jdeparser.BasicJCommentable
org.jboss.jdeparser.AbstractJDocCommentable
org.jboss.jdeparser.BasicJAnnotatable
org.jboss.jdeparser.ImplJEnumConstant
- All Implemented Interfaces:
JAnnotatable,JCommentable,JDocCommentable,JEnumConstant,JSimpleArgs
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ArrayList<AbstractJExpr> private EnumConstantJClassDefprivate final EnumJClassDefprivate final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAdd an argument.JExpr[]Get the arguments defined thus far.body()Add an implementation body to this enum constant.(package private) EnumJClassDefgetName()(package private) voidwriteDirect(SourceFileWriter writer) Methods 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
blockComment, lineComment, 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.JCommentable
blockComment, lineCommentMethods inherited from interface org.jboss.jdeparser.JDocCommentable
deprecated, docComment
-
Field Details
-
classDef
-
name
-
args
-
body
-
-
Constructor Details
-
ImplJEnumConstant
ImplJEnumConstant(EnumJClassDef classDef, String name)
-
-
Method Details
-
getClassDef
EnumJClassDef getClassDef() -
getName
-
arg
Description copied from interface:JEnumConstantAdd an argument.- Specified by:
argin interfaceJEnumConstant- Specified by:
argin interfaceJSimpleArgs- Parameters:
expr- the argument expression- Returns:
- this program element
-
body
Description copied from interface:JEnumConstantAdd an implementation body to this enum constant.- Specified by:
bodyin interfaceJEnumConstant- Returns:
- the implementation class definition
-
arguments
Description copied from interface:JSimpleArgsGet the arguments defined thus far.- Specified by:
argumentsin interfaceJSimpleArgs- Returns:
- the arguments
-
writeDirect
- Throws:
IOException
-