edu.rice.cs.util.sexp
Class BoolAtom

java.lang.Object
  extended by edu.rice.cs.util.sexp.BoolAtom
All Implemented Interfaces:
Atom, SExp

public class BoolAtom
extends Object
implements Atom


Field Summary
private  boolean _bool
           
static BoolAtom FALSE
           
static BoolAtom TRUE
           
 
Constructor Summary
private BoolAtom(boolean bool)
           
 
Method Summary
<Ret> Ret
accept(SExpVisitor<Ret> v)
          Visitor hook for the BoolAtom
 boolean getValue()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TRUE

public static final BoolAtom TRUE

FALSE

public static final BoolAtom FALSE

_bool

private boolean _bool
Constructor Detail

BoolAtom

private BoolAtom(boolean bool)
Method Detail

getValue

public boolean getValue()
Returns:
which type of BoolAtom this is

accept

public <Ret> Ret accept(SExpVisitor<Ret> v)
Visitor hook for the BoolAtom

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()
Overrides:
toString in class Object