public final class EnumConstant extends AbstractExpression implements Declaration, Annotable, Documentable
GeneratedExpression, this object represents a reference to the enum constant.| Modifier and Type | Method and Description |
|---|---|
GeneratedAnnotationUse |
annotate(Class<? extends Annotation> clazz)
Adds an annotation to this variable.
|
GeneratedAnnotationUse |
annotate(TypeReference clazz)
Adds an annotation to this variable.
|
<W extends AnnotationWriter> |
annotate2(Class<W> clazz)
Adds an annotation to this program element
and returns a type-safe writer to fill in the values of such annotations.
|
Collection<GeneratedAnnotationUse> |
annotations()
|
EnumConstant |
arg(GeneratedExpression arg)
Add an expression to this constructor's argument list
|
void |
declare(Formatter f) |
void |
generate(Formatter f) |
String |
getName()
Returns the name of this constant.
|
GeneratedJavaDocComment |
javadoc()
Creates, if necessary, and returns the enum constant javadoc.
|
public EnumConstant arg(GeneratedExpression arg)
arg - Argument to add to argument listpublic String getName()
public GeneratedJavaDocComment javadoc()
javadoc in interface Documentablepublic GeneratedAnnotationUse annotate(TypeReference clazz)
public GeneratedAnnotationUse annotate(Class<? extends Annotation> clazz)
public <W extends AnnotationWriter> W annotate2(Class<W> clazz)
Annotablepublic Collection<GeneratedAnnotationUse> annotations()
annotations in interface Annotablepublic void declare(Formatter f)
declare in interface DeclarationCopyright © 2010–2015 MuleSoft, Inc.. All rights reserved.