|
||||||||||
| 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.Field
public class Field
Syntax tree node for field declarations inside a record type.
| Field Summary | |
|---|---|
protected boolean |
isTransient
Flag indicating whether this variable should be encoded into state vector. |
protected RecordDefinition |
parent
Holds the parent of this object. |
protected TypedId |
typedId
Holds the typed-id. |
| Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node |
|---|
ILLEGAL_LOCAL_ID_CHAR |
| Constructor Summary | |
|---|---|
Field(TypedId typedId,
boolean isTransient)
Default constructor. |
|
| Method Summary | |
|---|---|
Field |
clone()
Clones this object (deep clone); including location info. |
RecordDefinition |
getParent()
Gets the parent of this object. |
boolean |
getTransient()
|
TypedId |
getTypedId()
Gets the typed-id. |
void |
setParent(RecordDefinition newParent)
Sets the parent of this object. |
void |
setTransient(boolean isTransient)
|
void |
setTypedId(TypedId newTypedId)
Sets the typed-id. |
String |
toString()
|
void |
visit(ASTVisitor visitor)
|
| Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node |
|---|
dispose, getLocationInfo, getProperty, putProperty, setLocationInfo |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected TypedId typedId
protected boolean isTransient
protected RecordDefinition parent
| Constructor Detail |
|---|
public Field(TypedId typedId,
boolean isTransient)
typedId - The typed-id. Must be non-null.isTransient - Flag indicating whether this variable should be encoded in
state vector.| Method Detail |
|---|
public TypedId getTypedId()
public void setTypedId(TypedId newTypedId)
newTypedId - The new typed-id. Must be non-null.public void setTransient(boolean isTransient)
public boolean getTransient()
public RecordDefinition getParent()
public void setParent(RecordDefinition newParent)
newParent - The new parent. Must be non-null.public Field clone()
Node
clone in class Nodepublic void visit(ASTVisitor visitor)
visit in class Nodevisitor - public String toString()
toString in class Node
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||