1 45 46 package edu.rice.cs.util.sexp; 47 48 public class BoolAtom implements Atom { 49 public static final BoolAtom TRUE = new BoolAtom(true); 50 public static final BoolAtom FALSE = new BoolAtom(false); 51 52 private boolean _bool; 53 private BoolAtom(boolean bool) { _bool = bool; } 54 55 58 public boolean getValue() { 59 return _bool; 60 } 61 62 67 public <Ret> Ret accept(SExpVisitor<Ret> v){ 68 return v.forBoolAtom(this); 69 } 70 71 public String toString() { return "" + _bool; } 72 } | Popular Tags |