sexp
Class SString

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

public class SString
extends Object
implements SExp

SString represents an s-expression string, e.g. "hello".


Constructor Summary
SString(String value)
          Make an SString.
 
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

SString

public SString(String value)
Make an SString.

Requires:
value != null
Method Detail

value

public String value()
Returns:
value of this expression

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

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

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