info.rolandkrueger.roklib.util.bool
Class AbstractUnaryBooleanOperation

java.lang.Object
  extended by info.rolandkrueger.roklib.util.bool.AbstractUnaryBooleanOperation
All Implemented Interfaces:
IBooleanOperation, Serializable
Direct Known Subclasses:
IdentityOperation, NotOperation

public abstract class AbstractUnaryBooleanOperation
extends Object
implements IBooleanOperation

See Also:
Serialized Form

Field Summary
protected  boolean mValue
           
private static long serialVersionUID
           
 
Constructor Summary
AbstractUnaryBooleanOperation()
           
 
Method Summary
 boolean canShortCircuit(boolean firstOperand)
           
 int getMinimumNumberOfOperands()
           
 boolean getShortCircuit(boolean firstOperand)
           
 boolean isUnaryOperation()
           
 void setLeftHandOperand(boolean left)
           
 void setRightHandOperand(boolean right)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.rolandkrueger.roklib.util.bool.IBooleanOperation
execute
 

Field Detail

serialVersionUID

private static final long serialVersionUID
See Also:
Constant Field Values

mValue

protected boolean mValue
Constructor Detail

AbstractUnaryBooleanOperation

public AbstractUnaryBooleanOperation()
Method Detail

setLeftHandOperand

public void setLeftHandOperand(boolean left)
Specified by:
setLeftHandOperand in interface IBooleanOperation

setRightHandOperand

public void setRightHandOperand(boolean right)
Specified by:
setRightHandOperand in interface IBooleanOperation

canShortCircuit

public boolean canShortCircuit(boolean firstOperand)
Specified by:
canShortCircuit in interface IBooleanOperation

getShortCircuit

public boolean getShortCircuit(boolean firstOperand)
Specified by:
getShortCircuit in interface IBooleanOperation

getMinimumNumberOfOperands

public int getMinimumNumberOfOperands()
Specified by:
getMinimumNumberOfOperands in interface IBooleanOperation

isUnaryOperation

public boolean isUnaryOperation()
Specified by:
isUnaryOperation in interface IBooleanOperation


Copyright © 2007-2011. All Rights Reserved.