edu.ksu.cis.projects.bogor.ast
Class Field

java.lang.Object
  extended by edu.ksu.cis.projects.bogor.ast.Node
      extended by edu.ksu.cis.projects.bogor.ast.Field
All Implemented Interfaces:
ITypedIdParent, Disposable, Serializable, Cloneable

public class Field
extends Node
implements ITypedIdParent

Syntax tree node for field declarations inside a record type.

Version:
CVS $Revision: 1.1 $ $Date: 2005/05/26 15:30:41 $
Author:
Matt Hoosier
See Also:
Serialized Form

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

typedId

protected TypedId typedId
Holds the typed-id. Non-null.


isTransient

protected boolean isTransient
Flag indicating whether this variable should be encoded into state vector.


parent

protected RecordDefinition parent
Holds the parent of this object.

Constructor Detail

Field

public Field(TypedId typedId,
             boolean isTransient)
Default constructor. Sets this object as the typed-id's parent.

Parameters:
typedId - The typed-id. Must be non-null.
isTransient - Flag indicating whether this variable should be encoded in state vector.
Method Detail

getTypedId

public TypedId getTypedId()
Gets the typed-id.

Returns:
The typed-id. Non-null.

setTypedId

public void setTypedId(TypedId newTypedId)
Sets the typed-id. Sets this object as the typed-id's parent.

Parameters:
newTypedId - The new typed-id. Must be non-null.

setTransient

public void setTransient(boolean isTransient)

getTransient

public boolean getTransient()

getParent

public RecordDefinition getParent()
Gets the parent of this object.

Returns:
The parent of this object.

setParent

public void setParent(RecordDefinition newParent)
Sets the parent of this object.

Parameters:
newParent - The new parent. Must be non-null.

clone

public Field clone()
Description copied from class: Node
Clones this object (deep clone); including location info.

Specified by:
clone in class Node
Returns:

visit

public void visit(ASTVisitor visitor)
Specified by:
visit in class Node
Parameters:
visitor -

toString

public String toString()
Specified by:
toString in class Node
Returns: