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

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

public final class StringLiteral
extends Literal

String literal AST

Version:
CVS $Revision: 1.7 $ $Date: 2005/05/06 17:25:18 $
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
StringLiteral(String string)
          Default constructor.
 
Method Summary
 StringLiteral clone()
          Clones this object (deep clone); including location info.
 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.Literal
dispose, 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

StringLiteral

public StringLiteral(String string)
Default constructor.

Parameters:
string - The string.
Method Detail

setString

public void setString(String newString)
Sets the string.

Parameters:
newString - The new string.

getString

public String getString()
Gets the string.

Returns:
The string. Non-null.

clone

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

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

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