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

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

public final class ReturnNextState
extends NextState
implements IExpParent

Return next state AST

Version:
CVS $Revision: 1.5 $ $Date: 2005/05/06 17:25:17 $
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
ReturnNextState()
          Default constructor.
ReturnNextState(String id)
          Constructor with id.
 
Method Summary
 ReturnNextState clone()
          Clones this object (deep clone); including location info.
 void dispose()
          Disposes exp.
 int getLocalIndex()
          Gets the local index.
 String getOptionalId()
          Gets the id.
 void setId(String newId)
          Sets the id.
 void setLocalIndex(int newLocalIndex)
          Sets the local index.
 String toString()
          Returns the string representation of this object.
 void visit(ASTVisitor visitor)
           
 
Methods inherited from class edu.ksu.cis.projects.bogor.ast.NextState
getParent, setParent
 
Methods inherited from class edu.ksu.cis.projects.bogor.ast.Node
getLocationInfo, getProperty, putProperty, setLocationInfo
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ReturnNextState

public ReturnNextState()
Default constructor.


ReturnNextState

public ReturnNextState(String id)
Constructor with id.

Parameters:
id - The id. Must be non-null.
Method Detail

setId

public void setId(String newId)
Sets the id.

Parameters:
newId - The new id. Must be non-null.

setLocalIndex

public void setLocalIndex(int newLocalIndex)
Sets the local index.

Parameters:
newLocalIndex - The new local index.
See Also:
FSMSymbolTable.getLocalIndexTable()

getLocalIndex

public int getLocalIndex()
Gets the local index.

Returns:
The local index.
See Also:
FSMSymbolTable.getLocalIndexTable()

getOptionalId

public String getOptionalId()
Gets the id.

Returns:
The id.

clone

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

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

dispose

public void dispose()
Disposes exp. Once called, avoid using this object.

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

toString

public String toString()
Returns the string representation of this object.

Specified by:
toString in class Node
Returns:
"return [id]".

visit

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