|
||||||||||
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.AbstractLocal edu.ksu.cis.projects.bogor.ast.Local
public final class Local
Field Summary |
---|
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
---|
ILLEGAL_LOCAL_ID_CHAR |
Constructor Summary | |
---|---|
Local(TypedId typedId,
boolean isTransient)
Default constructor. |
|
Local(TypedId typedId,
InitialValue value,
boolean isTransient)
Constructor with literal or id. |
Method Summary | |
---|---|
Local |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Removes reference to parent and disposes typedId and value. |
InitialValue |
getOptionalValue()
Gets the value. |
void |
setValue(InitialValue newValue)
Sets the value. |
String |
toString()
Returns the string representation of this object. |
void |
visit(ASTVisitor visitor)
|
Methods inherited from class edu.ksu.cis.projects.bogor.ast.AbstractLocal |
---|
getParent, getTransient, getTypedId, setParent, setTransient, setTypedId |
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 Local(TypedId typedId, boolean isTransient)
typedId
- The typed-id. Must be non-null.isTransient
- Flag indicating whether this variable should be encoded in
state vector.public Local(TypedId typedId, InitialValue value, boolean isTransient)
typedId
- The typed-id. Must be non-null.value
- The value. Must be non-null.isTransient
- Flag indicating whether this variable should be encoded in
state vector.Method Detail |
---|
public InitialValue getOptionalValue()
public void setValue(InitialValue newValue)
newValue
- The new value. Must be non-null.public Local clone()
clone
in class AbstractLocal
public void dispose()
AbstractLocal
dispose
in interface Disposable
dispose
in class AbstractLocal
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 |