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

java.lang.Object
  extended by edu.ksu.cis.projects.bogor.ast.Node
      extended by edu.ksu.cis.projects.bogor.ast.AbstractLocal
All Implemented Interfaces:
IExpParent, ITypedIdParent, Disposable, Serializable, Cloneable
Direct Known Subclasses:
Local, Param

public abstract class AbstractLocal
extends Node
implements IExpParent, ITypedIdParent

AbstractLocal AST.

Version:
CVS $Revision: 1.4 $ $Date: 2005/02/06 09:15:30 $
Author:
Robby
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node
ILLEGAL_LOCAL_ID_CHAR
 
Constructor Summary
AbstractLocal(TypedId typedId, boolean isTransient)
          Default constructor.
 
Method Summary
abstract  AbstractLocal clone()
          Clones this object (deep clone); including location info.
 void dispose()
          Removes reference to parent and disposes typedId and value.
 FSM getParent()
          Gets the parent of this object.
 boolean getTransient()
           
 TypedId getTypedId()
          Gets the typed-id.
 void setParent(FSM newParent)
          Sets the parent of this object.
 void setTransient(boolean isTransient)
           
 void setTypedId(TypedId newTypedId)
          Sets the typed-id.
 
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node
getLocationInfo, getProperty, putProperty, setLocationInfo, toString, visit
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractLocal

public AbstractLocal(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

setParent

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

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

getParent

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

Returns:
The parent of this object.

setTransient

public void setTransient(boolean isTransient)

getTransient

public boolean getTransient()

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.

getTypedId

public TypedId getTypedId()
Gets the typed-id.

Returns:
The typed-id. Non-null.

clone

public abstract AbstractLocal clone()
Clones this object (deep clone); including location info.

Specified by:
clone in class Node
Returns:
The clone of this object.

dispose

public void dispose()
Removes reference to parent and disposes typedId and value. Once called, avoid using this object.

Specified by:
dispose in interface Disposable
Overrides:
dispose in class Node