edu.rice.cs.util.sexp
Class Cons

java.lang.Object
  extended by edu.rice.cs.util.sexp.SEList
      extended by edu.rice.cs.util.sexp.Cons
All Implemented Interfaces:
SExp

public class Cons
extends SEList


Field Summary
private  SExp _first
           
private  SEList _rest
           
 
Constructor Summary
Cons(SExp first, SEList rest)
           
 
Method Summary
<Ret> Ret
accept(SEListVisitor<Ret> v)
           
<Ret> Ret
accept(SExpVisitor<Ret> v)
           
 SExp getFirst()
           
 SEList getRest()
           
 String toString()
           
protected  String toStringHelp()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

_first

private SExp _first

_rest

private SEList _rest
Constructor Detail

Cons

public Cons(SExp first,
            SEList rest)
Method Detail

getFirst

public SExp getFirst()

getRest

public SEList getRest()

accept

public <Ret> Ret accept(SExpVisitor<Ret> v)

accept

public <Ret> Ret accept(SEListVisitor<Ret> v)
Specified by:
accept in class SEList

toStringHelp

protected String toStringHelp()
Specified by:
toStringHelp in class SEList

toString

public String toString()
Overrides:
toString in class Object