Package org.jboss.jdeparser
Interface JEnumConstant
-
- All Superinterfaces:
JAnnotatable
,JCommentable
,JDocCommentable
,JSimpleArgs
public interface JEnumConstant extends JSimpleArgs, JAnnotatable, JDocCommentable
An enum constant definition.- Author:
- David M. Lloyd
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JEnumConstant
arg(JExpr expr)
Add an argument.JClassDef
body()
Add an implementation body to this enum constant.-
Methods inherited from interface org.jboss.jdeparser.JAnnotatable
annotate, annotate, annotate
-
Methods inherited from interface org.jboss.jdeparser.JCommentable
blockComment, lineComment
-
Methods inherited from interface org.jboss.jdeparser.JDocCommentable
deprecated, docComment
-
Methods inherited from interface org.jboss.jdeparser.JSimpleArgs
arguments
-
-
-
-
Method Detail
-
arg
JEnumConstant arg(JExpr expr)
Add an argument.- Specified by:
arg
in 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
-
-