Interface JEnumConstant
- All Superinterfaces:
JAnnotatable, JCommentable, JDocCommentable, JSimpleArgs
- All Known Implementing Classes:
ImplJEnumConstant
An enum constant definition.
-
Method Summary
Modifier and TypeMethodDescriptionAdd an argument.body()Add an implementation body to this enum constant.Methods inherited from interface JAnnotatable
annotate, annotate, annotateMethods inherited from interface JCommentable
blockComment, lineCommentMethods inherited from interface JDocCommentable
deprecated, docCommentMethods inherited from interface JSimpleArgs
arguments
-
Method Details
-
arg
Add an argument.- Specified by:
argin interfaceJSimpleArgs- Parameters:
expr- the argument expression- Returns:
- this program element
-
body
JClassDef body()Add an implementation body to this enum constant.- Returns:
- the implementation class definition
-