|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.mule.devkit.model.code.AbstractExpression
org.mule.devkit.model.code.EnumConstant
public final class EnumConstant
Enum Constant.
When used as anGeneratedExpression, this object represents a reference to the enum constant.
| Method Summary | ||
|---|---|---|
GeneratedAnnotationUse |
annotate(Class<? extends Annotation> clazz)
Adds an annotation to this variable. |
|
GeneratedAnnotationUse |
annotate(TypeReference clazz)
Adds an annotation to this variable. |
|
|
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()
Annotable.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. |
|
| Methods inherited from class org.mule.devkit.model.code.AbstractExpression |
|---|
_instanceof, band, bor, cand, complement, component, cor, decr, div, eq, gt, gte, incr, invoke, invoke, isNotNull, isNull, lt, lte, minus, minus, mod, mul, ne, not, plus, ref, ref, shl, shr, shrz, xor |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
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)
annotate in interface Annotableclazz - The annotation class to annotate the field withpublic GeneratedAnnotationUse annotate(Class<? extends Annotation> clazz)
annotate in interface Annotableclazz - The annotation class to annotate the field withpublic <W extends AnnotationWriter> W annotate2(Class<W> clazz)
Annotable
annotate2 in interface Annotablepublic Collection<GeneratedAnnotationUse> annotations()
Annotable.annotations()
annotations in interface Annotablepublic void declare(Formatter f)
declare in interface Declarationpublic void generate(Formatter f)
generate in interface Generable
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||