org.inxar.jenesis
Interface Let

All Superinterfaces:
Codeable, Statement

public interface Let
extends Statement

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

setType

public void setType(Type expr)
Sets the type for this declaration.

getType

public Type getType()
Gets the type for this declaration.

addAssign

public void addAssign(java.lang.String name,
                      Expression expr)
Adds a new assignment to this variable declaration.

getAssigns

public Iterator getAssigns()
Gets the list of comma separated assignments as an iterator of Assign.

isFinal

public void isFinal(boolean value)
Setter method for the isFinal flag.

isFinal

public boolean isFinal()
Getter method for the isFinal flag.