edu.rice.cs.util.sexp
Class TextAtom
java.lang.Object
edu.rice.cs.util.sexp.TextAtom
- All Implemented Interfaces:
- Atom, SExp
public class TextAtom
- extends Object
- implements Atom
_text
protected String _text
TextAtom
public TextAtom(String text)
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.