|
||||||||||
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.LValueExp edu.ksu.cis.projects.bogor.ast.ArrayAccessExp
public final class ArrayAccessExp
Array access 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 | |
---|---|
ArrayAccessExp(Exp exp,
Exp index)
Default constructor. |
Method Summary | |
---|---|
ArrayAccessExp |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Disposes exp and index. |
Exp |
getExp()
Gets the exp. |
Exp |
getIndex()
Gets the index exp. |
void |
setExp(Exp newExp)
Sets the exp. |
void |
setIndex(Exp newIndex)
Sets the index 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 ArrayAccessExp(Exp exp, Exp index)
exp
- The exp. Must be non-null.index
- The index 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 setIndex(Exp newIndex)
newIndex
- The new index exp. Must be non-null.public Exp getIndex()
public ArrayAccessExp clone()
clone
in class LValueExp
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 |