|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Statement
subinterface for local variable
declarations. Although of course 'let' is not a keyword, the
concept implied by the let keyword in other languages encapsulates
the idea here. Multiple variables of the same type can be
initialized in the same Let
.
Method Summary | |
void |
addAssign(java.lang.String name,
Expression expr)
Adds a new assignment to this variable declaration. |
Iterator |
getAssigns()
Gets the list of comma separated assignments as an iterator of Assign . |
Type |
getType()
Gets the type for this declaration. |
boolean |
isFinal()
Getter method for the isFinal flag. |
void |
isFinal(boolean value)
Setter method for the isFinal flag. |
void |
setType(Type expr)
Sets the type for this declaration. |
Methods inherited from interface org.inxar.jenesis.Statement |
comment, getLabel, setLabel |
Methods inherited from interface org.inxar.jenesis.Codeable |
getComment, setComment, toCode, vm |
Method Detail |
public void setType(Type expr)
public Type getType()
public void addAssign(java.lang.String name, Expression expr)
public Iterator getAssigns()
Assign
.public void isFinal(boolean value)
public boolean isFinal()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |