|
||||||||||
| 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.GeneratedVariable
public class GeneratedVariable
Variables and fields.
| 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()
Read-only live view of all annotations on this Annotable |
|
GeneratedExpression |
assign(GeneratedExpression rhs)
|
|
GeneratedExpression |
assignPlus(GeneratedExpression rhs)
|
|
void |
bind(Formatter f)
|
|
void |
declare(Formatter f)
|
|
void |
generate(Formatter f)
|
|
GeneratedVariable |
init(GeneratedExpression init)
Initialize this variable |
|
protected boolean |
isAnnotated()
|
|
Modifiers |
mods()
|
|
String |
name()
Get the name of this variable |
|
void |
name(String name)
Changes the name of this variable. |
|
Type |
type()
Return the type of this variable. |
|
Type |
type(Type newType)
Sets the type of this variable. |
|
| 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 |
| Methods inherited from interface org.mule.devkit.model.code.GeneratedExpression |
|---|
_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 |
| Method Detail |
|---|
public GeneratedVariable init(GeneratedExpression init)
init - Expression to be used to initialize this fieldpublic String name()
public void name(String name)
public Type type()
public Modifiers mods()
public Type type(Type newType)
newType - must not be null.
public 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()
AnnotableAnnotable
annotations in interface Annotableprotected boolean isAnnotated()
public void bind(Formatter f)
public void declare(Formatter f)
declare in interface Declarationpublic void generate(Formatter f)
generate in interface Generablepublic GeneratedExpression assign(GeneratedExpression rhs)
assign in interface AssignmentTargetpublic GeneratedExpression assignPlus(GeneratedExpression rhs)
assignPlus in interface AssignmentTarget
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||