sexp
Class SSymbol
java.lang.Object
sexp.SSymbol
- All Implemented Interfaces:
- SExp
public class SSymbol
- extends Object
- implements SExp
SSymbol represents an expression consisting of a symbol, e.g. foobar.
SSymbol
public SSymbol(String value)
- Make an SSymbol.
- Requires:
- value != null
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