sexp
Class SSymbol

java.lang.Object
  extended by sexp.SSymbol
All Implemented Interfaces:
SExp

public class SSymbol
extends Object
implements SExp

SSymbol represents an expression consisting of a symbol, e.g. foobar.


Constructor Summary
SSymbol(String value)
          Make an SSymbol.
 
Method Summary
<T> T
accept(SExpVisitor<T> visitor)
          Apply a visitor to this s-expression.
 boolean equals(Object obj)
           
 int hashCode()
           
 String toString()
           
 String value()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SSymbol

public SSymbol(String value)
Make an SSymbol.

Requires:
value != null
Method Detail

value

public String value()
Returns:
symbol represented by this expression

toString

public String toString()
Overrides:
toString in class Object

accept

public <T> T accept(SExpVisitor<T> visitor)
Description copied from interface: SExp
Apply a visitor to this s-expression.

Specified by:
accept in interface SExp

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object