|
||||||||||
| 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.SystemMember
edu.ksu.cis.projects.bogor.ast.Global
public final class Global
The top level class for global AST.
| Field Summary |
|---|
| Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
|---|
ILLEGAL_LOCAL_ID_CHAR |
| Constructor Summary | |
|---|---|
Global(TypedId typedId,
boolean isTransient)
Default constructor. |
|
Global(TypedId typedId,
InitialValue value,
boolean isTransient)
Constructor with literal or id. |
|
| Method Summary | |
|---|---|
Global |
clone()
Clones this object (deep clone); including location info. |
void |
dispose()
Disposes typedId and value. |
InitialValue |
getOptionalValue()
Gets the value. |
boolean |
getTransient()
|
TypedId |
getTypedId()
Gets the typed-id. |
void |
setTransient(boolean isTransient)
|
void |
setTypedId(TypedId newTypedId)
Sets the typed-id. |
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.SystemMember |
|---|
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 Global(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 Global(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 setTransient(boolean isTransient)
public boolean getTransient()
public void setTypedId(TypedId newTypedId)
newTypedId - The new typed-id. Must be non-null.public TypedId getTypedId()
public void setValue(InitialValue newValue)
newValue - The new value. Must be non-null.public Global clone()
clone in class SystemMemberpublic void dispose()
dispose in interface Disposabledispose in class SystemMemberpublic 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 | |||||||||