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

java.lang.Object
  extended by edu.ksu.cis.projects.bogor.ast.Node
      extended by edu.ksu.cis.projects.bogor.ast.Transformation
All Implemented Interfaces:
IExpParent, INextStateParent, Disposable, Serializable, Cloneable
Direct Known Subclasses:
BlockTransformation, InvokeTransformation

public abstract class Transformation
extends Node
implements IExpParent, INextStateParent

Transformation AST.

Version:
CVS $Revision: 1.3 $ $Date: 2005/01/13 23:40:08 $
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
Transformation()
           
 
Method Summary
abstract  Transformation clone()
          Clones this object (deep clone); including location info.
 void dispose()
          Removes reference to parent.
 boolean getInvisible()
          Gets the invisible.
 NextState getNextState()
          Gets the nextstate.
 Exp getOptionalExp()
          Gets the optional exp.
 Location getParent()
          Gets the parent of this object.
 boolean getVisible()
          Gets the visible.
 void setExp(Exp newExp)
          Sets the exp.
 void setInvisible(boolean newInvisible)
          Sets the invisible.
 void setNextState(NextState newNextState)
          Sets the nextstate.
 void setParent(Location newParent)
          Sets the parent of this object.
 void setVisible(boolean newVisible)
          Sets the visible.
 
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

Transformation

public Transformation()
Method Detail

setExp

public void setExp(Exp newExp)
Sets the exp. Sets this object as the exp's parent.

Parameters:
newExp - The new exp. Must be non-null.

setInvisible

public void setInvisible(boolean newInvisible)
Sets the invisible.

Parameters:
newInvisible - The new invisible.

getInvisible

public boolean getInvisible()
Gets the invisible.

Returns:
True, if invisible. False, otherwise.

setNextState

public void setNextState(NextState newNextState)
Sets the nextstate. Sets this object as the nextstate's parent.

Parameters:
newNextState - The new next state. Must be non-null.

getNextState

public NextState getNextState()
Gets the nextstate.

Returns:
The nextstate. Non-null.

getOptionalExp

public Exp getOptionalExp()
Gets the optional exp.

Returns:
The optional exp.

setParent

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

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

getParent

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

Returns:
The parent of this object.

setVisible

public void setVisible(boolean newVisible)
Sets the visible.

Parameters:
newVisible - The new visible.

getVisible

public boolean getVisible()
Gets the visible.

Returns:
True, if visible. False, otherwise.

clone

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

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

dispose

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

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