JExpression, this object represents a reference to the enum constant.
| Modifier and Type | Field and Description |
|---|---|
| private List | annotations
Annotations on this variable. |
| private List | args
List of the constructor argument expressions. |
| private JDocComment | jdoc
javadoc comments, if any. |
| private final String | name
The constant. |
| private final JClass | type
The enum class. |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public JAnnotationUse | annotate(JClass
The annotation class to annotate the field with clazz)Implements com. Adds an annotation to this variable. |
| public JAnnotationUse | annotate(Class<? extends Annotation>
The annotation class to annotate the field with clazz)Implements com. Adds an annotation to this variable. |
| public <W extends JAnnotationWriter | annotate2(Class<W> clazz)
Implements com. Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations. |
| public Collection | annotations()
Implements com. Read-only live view of all annotations on this |
| public JEnumConstant | arg(JExpression
Argument to add to argument list arg)Add an expression to this constructor's argument list |
| public void | |
| public void | |
| public String | |
| public JDocComment | Returns: JDocComment containing javadocs for this constant.Implements com. Creates, if necessary, and returns the enum constant javadoc. |
| public boolean | removeAnnotation(JAnnotationUse annotation)
Implements com. Removes annotation from this program element. |
| public String | |
| pack-priv JClass |
| annotations | back to summary |
|---|---|
| private List<JAnnotationUse> annotations Annotations on this variable. Lazily created. | |
| args | back to summary |
|---|---|
| private List<JExpression> args List of the constructor argument expressions. Lazily constructed. | |
| jdoc | back to summary |
|---|---|
| private JDocComment jdoc javadoc comments, if any. | |
| name | back to summary |
|---|---|
| private final String name The constant. | |
| type | back to summary |
|---|---|
| private final JClass type The enum class. | |
| JEnumConstant | back to summary |
|---|---|
| pack-priv JEnumConstant(JClass type, String name) | |
| annotate | back to summary |
|---|---|
| public JAnnotationUse annotate(JClass clazz) Implements com. Adds an annotation to this variable. | |
| annotate | back to summary |
|---|---|
| public JAnnotationUse annotate(Class<? extends Annotation> clazz) Implements com. Adds an annotation to this variable.
| |
| annotate2 | back to summary |
|---|---|
| public <W extends JAnnotationWriter Implements com. Doc from com. Adds an annotation to this program element and returns a type-safe writer to fill in the values of such annotations.
| |
| annotations | back to summary |
|---|---|
| public Collection Implements com. Doc from com. Read-only live view of all annotations on this
| |
| arg | back to summary |
|---|---|
| public JEnumConstant arg(JExpression arg) Add an expression to this constructor's argument list
| |
| declare | back to summary |
|---|---|
| public void declare(JFormatter f) Implements com.
| |
| generate | back to summary |
|---|---|
| public void generate(JFormatter f) Implements com.
| |
| getName | back to summary |
|---|---|
| public String getName() Returns the name of this constant.
| |
| javadoc | back to summary |
|---|---|
| public JDocComment javadoc() Implements com. Creates, if necessary, and returns the enum constant javadoc.
| |
| removeAnnotation | back to summary |
|---|---|
| public boolean removeAnnotation(JAnnotationUse annotation) Implements com. Doc from com. Removes annotation from this program element.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |
| type | back to summary |
|---|---|
| pack-priv JClass type() | |