edu.rice.cs.util.sexp
Class TextAtom

java.lang.Object
  extended by edu.rice.cs.util.sexp.TextAtom
All Implemented Interfaces:
Atom, SExp

public class TextAtom
extends Object
implements Atom


Field Summary
protected  String _text
           
 
Constructor Summary
TextAtom(String text)
           
 
Method Summary
<Ret> Ret
accept(SExpVisitor<Ret> v)
          Visitor hook for the TextAtom
 String getText()
           
 String toString()
          If the given text was a quoted string, the text returned excludes the quotes around the string.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_text

protected String _text
Constructor Detail

TextAtom

public TextAtom(String text)
Method Detail

getText

public String getText()

accept

public <Ret> Ret accept(SExpVisitor<Ret> v)
Visitor hook for the TextAtom

Specified by:
accept in interface Atom
Specified by:
accept in interface SExp
Parameters:
v - the visitor
Returns:
result of the given algorithm

toString

public String toString()
If the given text was a quoted string, the text returned excludes the quotes around the string.

Overrides:
toString in class Object
Returns:
the text that went into making this atom.