|
||||||||||
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.IdExp
public final class IdExp
Id 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 | |
---|---|
IdExp(String id)
Default constructor. |
Method Summary | |
---|---|
IdExp |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes reference to id. |
String |
getId()
Gets the id. |
int |
getIndex()
Gets the index of global or local. |
boolean |
isFun()
Determine whether a fun. |
boolean |
isGlobal()
Determine whether a global. |
boolean |
isLocal()
Determine whether a local ref. |
void |
setFun()
Sets to indicate a fun ref. |
void |
setGlobal()
Sets to indicate a global ref. |
void |
setId(String newId)
Sets the id. |
void |
setIndex(int newIndex)
Sets the index of global or local. |
void |
setLocal()
Sets to indicate a local ref. |
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 IdExp(String id)
id
- The id. Must be non-null.Method Detail |
---|
public void setFun()
public boolean isFun()
public void setGlobal()
public boolean isGlobal()
public void setId(String newId)
newId
- The new id. Must be non-null.public String getId()
public void setIndex(int newIndex)
newIndex
- The new index of global or local. Must be greater than or
equal to zero.public int getIndex()
public void setLocal()
public boolean isLocal()
public IdExp 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 |