|
||||||||||
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.Location
public final class Location
Location AST.
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
Location(String id,
List<? extends Transformation> transformations)
Default constructor. |
|
Location(String id,
LiveSet liveSet,
List<? extends Transformation> transformations)
Default constructor with live set. |
Method Summary | |
---|---|
Location |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes references to parent and id, and disposes catches, liveSet, and transformations. |
String |
getId()
Gets the id. |
LiveSet |
getOptionalLiveSet()
Gets the liveset. |
FSM |
getParent()
Gets the parent of this object. |
Transformation |
getTransformation(int index)
Gets a transformation at a specified index. |
int |
getTransformationCount()
Gets the number of transformations. |
void |
removeLiveSet()
Un-install the current liveset (if any). |
void |
setId(String newId)
Sets the id. |
void |
setLiveSet(LiveSet newLiveSet)
Sets the liveset. |
void |
setParent(FSM newParent)
Sets the parent of this object. |
void |
setTransformations(List<? extends Transformation> newTransformations)
Sets the transformations. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
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 Location(String id, List<? extends Transformation> transformations)
id
- The id. Must be non-null.transformations
- The transformations. Must be non-null. Each element must be
instance of Transformation. The number of elements must be
greater than zero.public Location(String id, LiveSet liveSet, List<? extends Transformation> transformations)
id
- The id. Must be non-null.liveSet
- The liveset. Must be non-null.transformations
- The transformations. Must be non-null. Each element must be
instance of Transformation. The number of elements must be
greater than zero.Method Detail |
---|
public void setId(String newId)
newId
- The new id. Must be non-null.public String getId()
public void setLiveSet(LiveSet newLiveSet)
newLiveSet
- The new liveset. Must be non-null.public void removeLiveSet()
public LiveSet getOptionalLiveSet()
public void setParent(FSM newParent)
newParent
- The new parent. Must be non-null.public FSM getParent()
public Transformation getTransformation(int index)
index
- The index of the transformation. Must be between 0 and
getTransformationCount() - 1, inclusive.
public int getTransformationCount()
public void setTransformations(List<? extends Transformation> newTransformations)
newTransformations
- The new transformations. Must be non-null. Each element must
be instance of Transformation. The number of elements must be
greater than zero.public Location clone()
clone
in class Node
public void dispose()
dispose
in interface Disposable
dispose
in class Node
public String toString()
toString
in class Node
" loc id: [ live { ( , id )* } ]\n" + "( transformations )+".
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 |