/** A boolean literal is either true or false */ public class BooleanLiteral extends BooleanExpression { private boolean theValue = false; public BooleanLiteral(boolean val) { theValue = val;} /** look up the value of this variable and return it */ public boolean getValue() { return theValue; } /** */ public String toString() { return (theValue ? "T": "F"); } }