|
||||||||||
| 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.Exp
edu.ksu.cis.projects.bogor.ast.LValueExp
edu.ksu.cis.projects.bogor.ast.FieldAccessExp
public final class FieldAccessExp
Field access exp AST.
| Field Summary | |
|---|---|
static int |
CONSTANT_KEY
Holds the property key to access constant value. |
| 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 | |
|---|---|
FieldAccessExp(Exp exp,
String id)
Default constructor. |
|
| Method Summary | |
|---|---|
FieldAccessExp |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes reference to id, and disposes exp. |
Exp |
getExp()
Gets the exp. |
int |
getFieldIndex()
Gets the field index if a record/array field access. |
String |
getId()
Gets the id. |
boolean |
isConstant()
Determines a constant/enum access. |
boolean |
isLength()
Determines an array length access. |
void |
setConstant()
Sets to indicate a constant/enum access. |
void |
setExp(Exp newExp)
Sets the exp. |
void |
setFieldIndex(int newFieldIndex)
Sets the field index if a record/array field access. |
void |
setId(String newId)
Sets the id. |
void |
setLength()
Sets to indicate a constant/enum access. |
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 |
| Field Detail |
|---|
public static final int CONSTANT_KEY
| Constructor Detail |
|---|
public FieldAccessExp(Exp exp,
String id)
exp - The exp. Must be non-null.id - The id. Must be non-null.| Method Detail |
|---|
public void setConstant()
public boolean isConstant()
public void setExp(Exp newExp)
newExp - The new exp. Must be non-null.public Exp getExp()
public void setFieldIndex(int newFieldIndex)
newFieldIndex - The new field index. Must be greater than or equal to zero.public int getFieldIndex()
public void setId(String newId)
newId - The new id. Must be non-null.public String getId()
public void setLength()
public boolean isLength()
public FieldAccessExp clone()
clone in class LValueExppublic void dispose()
dispose in interface Disposabledispose in class Exppublic 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 | |||||||||