|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectedu.ksu.cis.projects.bogor.ast.Node
edu.ksu.cis.projects.bogor.ast.Action
edu.ksu.cis.projects.bogor.ast.AssignAction
public final class AssignAction
Assign action AST.
| Field Summary |
|---|
| Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
|---|
ILLEGAL_LOCAL_ID_CHAR |
| Constructor Summary | |
|---|---|
AssignAction(LValueExp lhs,
Exp exp)
Default constructor. |
|
| Method Summary | |
|---|---|
AssignAction |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Disposes lhs and exp. |
Exp |
getExp()
Gets the exp. |
LValueExp |
getLHS()
Gets the lhs. |
void |
setExp(Exp newExp)
Sets the exp. |
void |
setLHS(LValueExp newLHS)
Sets the lhs. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
| Methods inherited from class edu.ksu.cis.projects.bogor.ast.Action |
|---|
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 AssignAction(LValueExp lhs,
Exp exp)
lhs - The lhs. Must be non-null.exp - The exp. Must be non-null.| Method Detail |
|---|
public void setExp(Exp newExp)
newExp - The new exp. Must be non-null.public Exp getExp()
public void setLHS(LValueExp newLHS)
newLHS - The new lhs. Must be non-null.public LValueExp getLHS()
public AssignAction clone()
clone in class Actionpublic void dispose()
dispose in interface Disposabledispose in class Actionpublic String toString()
toString in class Nodepublic void visit(ASTVisitor visitor)
visit in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||