|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object edu.ksu.cis.projects.bogor.ast.Node edu.ksu.cis.projects.bogor.ast.Exp edu.ksu.cis.projects.bogor.ast.LetExp
public final class LetExp
Let exp AST.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Exp |
---|
TYPE |
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
LetExp(List<? extends ASTType> bindingTypes,
List<String> bindingIds,
List<? extends Exp> bindingExps,
Exp exp)
Default constructor. |
Method Summary | |
---|---|
LetExp |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes reference to id, and disposes args. |
int |
getBindingCount()
Gets the number of bindings. |
Exp |
getBindingExp(int index)
Gets a binding exp at a specified index. |
String |
getBindingId(int index)
Gets a binding id at a specified index. |
ASTType |
getBindingType(int index)
Gets a binding type at a specified index. |
Exp |
getExp()
Gets the exp. |
void |
setBindingExps(List<? extends Exp> newBindingExps)
Sets the binding exps. |
void |
setBindingIds(List<String> newBindingIds)
Sets the binding ids. |
void |
setBindingTypes(List<? extends ASTType> newBindingTypes)
Sets the binding types. |
void |
setExp(Exp newExp)
Sets the exp. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Exp |
---|
getParent, setParent |
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
getLocationInfo, getProperty, putProperty, setLocationInfo |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public LetExp(List<? extends ASTType> bindingTypes, List<String> bindingIds, List<? extends Exp> bindingExps, Exp exp)
bindingTypes
- The types. Must be non-null. Each element must be instance of
ASTType.bindingIds
- The ids. Must be non-null. Each element must be instance of
String.bindingExps
- The arguments. Must be non-null. Each element must be instance
of Exp.exp
- The exp. Must be non-null.Method Detail |
---|
public int getBindingCount()
public Exp getBindingExp(int index)
index
- The index of the argument. Must be between 0 and
getBindingCount() - 1, inclusive.
public void setBindingExps(List<? extends Exp> newBindingExps)
newBindingExps
- The new binding exps. Must be non-null. Each element must be
instance of Exp.public String getBindingId(int index)
index
- The index of the argument. Must be between 0 and
getBindingCount() - 1, inclusive.
public void setBindingIds(List<String> newBindingIds)
newBindingIds
- The new binding ids. Must be non-null. Each element must be
instance of Id.public ASTType getBindingType(int index)
index
- The index of the argument. Must be between 0 and
getBindingCount() - 1, inclusive.
public void setBindingTypes(List<? extends ASTType> newBindingTypes)
newBindingTypes
- The new binding types. Must be non-null. Each element must be
instance of ASTType.public void setExp(Exp newExp)
newExp
- The new exp. Must be non-null.public Exp getExp()
public LetExp clone()
clone
in class Exp
public void dispose()
dispose
in interface Disposable
dispose
in class Exp
public String toString()
toString
in class Node
public void visit(ASTVisitor visitor)
visit
in class Node
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |