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

java.lang.Object
  extended by edu.ksu.cis.projects.bogor.ast.Node
      extended by edu.ksu.cis.projects.bogor.ast.Statement
All Implemented Interfaces:
Disposable, Serializable, Cloneable
Direct Known Subclasses:
ActionStatement, AtomicActionStatement, AtomicStatement, BlockStatement, ChooseStatement, IfStatement, ReturnStatement, SkipStatement, TryCatchStatement, WhileStatement

public abstract class Statement
extends Node

The top level class for statement AST.

Version:
CVS $Revision: 1.2 $ $Date: 2005/01/13 23:40:09 $
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
Statement()
           
 
Method Summary
abstract  Statement clone()
          Clones this object (deep clone); including location info.
 void dispose()
          Removes reference to parent.
 IStatementParent getParent()
          Gets the parent of this object.
 void setParent(IStatementParent newParent)
          Sets the parent of this object.
 String toString()
           
protected abstract  String toString(String indent)
           
 
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node
getLocationInfo, getProperty, putProperty, setLocationInfo, visit
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Statement

public Statement()
Method Detail

setParent

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

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

getParent

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

Returns:
The parent of this object.

clone

public abstract Statement 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

toString

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

toString

protected abstract String toString(String indent)