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

java.lang.Object
  extended by edu.ksu.cis.projects.bogor.ast.Node
      extended by edu.ksu.cis.projects.bogor.ast.Exp
All Implemented Interfaces:
IExpParent, Disposable, Serializable, Cloneable
Direct Known Subclasses:
ApplyExp, AtomicExp, BinaryExp, CastExp, ConditionalExp, ExtExp, InstanceofExp, InvokeExp, KindofExp, LetExp, LiteralExp, LockTestExp, LValueExp, NewArrayExp, NewLockExp, NewRecordExp, ParenExp, StartThreadExp, ThreadTestExp, UnaryExp

public abstract class Exp
extends Node
implements IExpParent

The top level class for exp AST.

Version:
CVS $Revision: 1.3 $ $Date: 2005/01/13 23:40:09 $
Author:
Robby
See Also:
Serialized Form

Field Summary
static int TYPE
          The property key for the type of this expression.
 
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node
ILLEGAL_LOCAL_ID_CHAR
 
Constructor Summary
Exp()
           
 
Method Summary
abstract  Exp clone()
          Clones this object (deep clone); including location info.
 void dispose()
          Removes reference to parent.
 IExpParent getParent()
          Gets the parent of this object.
 void setParent(IExpParent newParent)
          Sets the parent of this object.
 
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
 

Field Detail

TYPE

public static final int TYPE
The property key for the type of this expression.

See Also:
Constant Field Values
Constructor Detail

Exp

public Exp()
Method Detail

setParent

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

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

getParent

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

Returns:
The parent of this object.

clone

public abstract Exp 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. Once called, avoid using this object.

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