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

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

public final class StringPrintArg
extends PrintArg

String print argument AST.

Version:
CVS $Revision: 1.5 $ $Date: 2005/06/09 15:54:28 $
Author:
Robby , Matt Hoosier
See Also:
Serialized Form

Field Summary
 
Fields inherited from class edu.ksu.cis.projects.bogor.ast.PrintArg
parent
 
Fields inherited from class edu.ksu.cis.projects.bogor.ast.Node
ILLEGAL_LOCAL_ID_CHAR
 
Constructor Summary
StringPrintArg(String string)
          Default constructor.
 
Method Summary
 StringPrintArg clone()
          Clones this object (deep clone); including location info.
 void dispose()
          Removes reference to string.
 String getString()
          Gets the string.
 void setString(String newString)
          Sets the string.
 String toString()
          Returns the string representation of this object.
 void visit(ASTVisitor visitor)
           
 
Methods inherited from class edu.ksu.cis.projects.bogor.ast.PrintArg
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

StringPrintArg

public StringPrintArg(String string)
Default constructor.

Parameters:
string - The string.
Method Detail

setString

public void setString(String newString)
Sets the string.

Parameters:
newString - The new string. Must be non-null.

getString

public String getString()
Gets the string.

Returns:
The string. Non-null.

clone

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

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

dispose

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

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

toString

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

Specified by:
toString in class Node
Returns:
"string".

visit

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