|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object infix2postfix.Infix2PostfixClient infix2postfix.BooleanClient
This class provides client interface for boolean expressions.
This client supports boolean operators like,
1. & 2. | 3. ^
Field Summary | |
private static BooleanOperandManager |
defaultOperandManager
Default boolean operand manager |
static java.lang.Object |
NULL_OPERAND
DUMMY operand for the boolean operand manager |
Fields inherited from class infix2postfix.Infix2PostfixClient |
operandManager |
Constructor Summary | |
BooleanClient()
No-arg constructor. |
|
BooleanClient(BooleanOperandManager operandManager)
Constructor that allows custom boolean operand manager as argument. |
Method Summary | |
protected void |
addDefaultOperators()
Adds default operators in the "valid operators" list. |
boolean |
getBooleanOperand(java.lang.Object operand)
Returns operand in boolean format. |
protected static BooleanOperandManager |
getDefaultOperandManager()
Returns default boolean operand manager object. |
Methods inherited from class infix2postfix.Infix2PostfixClient |
addOperator, evaluate, getDefaultVariableHolder, getOperandManager, getVariableValue, removeOperator, setVariable |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.Object NULL_OPERAND
private static BooleanOperandManager defaultOperandManager
Constructor Detail |
public BooleanClient()
getDefaultOperandManager()
public BooleanClient(BooleanOperandManager operandManager)
Method Detail |
protected static BooleanOperandManager getDefaultOperandManager()
public boolean getBooleanOperand(java.lang.Object operand) throws InvalidOperandException
InvalidOperandException
protected void addDefaultOperators()
addDefaultOperators
in class Infix2PostfixClient
MathClient.addDefaultOperators()
,
addDefaultOperators()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |