|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiz.chitec.quarterback.util.logic.AlgebraicExpr
Common superclass for AND, OR and further operations of Boolean algebra
Nested Class Summary |
Nested classes inherited from class biz.chitec.quarterback.util.logic.LogicExpr |
LogicExpr.Converter, LogicExpr.UniverseGenerator |
Field Summary | |
protected java.util.List |
expressions
|
Constructor Summary | |
protected |
AlgebraicExpr()
|
protected |
AlgebraicExpr(LogicExpr e1x,
LogicExpr e2x)
|
protected |
AlgebraicExpr(java.lang.Object[] os)
|
Method Summary | |
java.lang.Object |
clone()
Deep-copy the logic expression. |
void |
convertValues(LogicExpr.Converter c)
Conversion of values in the expressions (e.g. for replacing external representations of database entries with their internal key) |
boolean |
equals(java.lang.Object o)
|
java.util.List |
getExpressions()
Return all expressions. |
java.lang.Object[] |
getInternalVars()
Only for GJSA class parsers: get class variables to create object from a parsed string. |
boolean |
hasLeafsOnly()
Returns whether the algebraic expression has only leaf nodes. |
boolean |
isReady()
Returns if the expression is actually evaluable, i.e. any of the evaluating methods can be called. |
boolean |
isTreeReady()
Returns whether this and all deeper expressions are evaluable. |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface biz.chitec.quarterback.util.logic.LogicExpr |
evaluate, getResultSet, sqlString |
Field Detail |
protected java.util.List expressions
Constructor Detail |
protected AlgebraicExpr()
protected AlgebraicExpr(LogicExpr e1x, LogicExpr e2x)
protected AlgebraicExpr(java.lang.Object[] os)
Method Detail |
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
LogicExpr
Note: This method must be defined in a way that makes it quite complicated to call it for simply cloning a logic expression tree: It returns an Object (which always happens to be a LogicExpr) and it might throw a CloneNotSupportedException - which will (a) never happen and is (b) no RuntimeException, so a caller would always have to catch it.
To make life simpler, there is a static method LogicExprUtilties.cloneLogicExpr() which will call clone() on the root object and take care of return value and exceptions.
clone
in interface LogicExpr
java.lang.CloneNotSupportedException
public boolean equals(java.lang.Object o)
public boolean hasLeafsOnly()
public boolean isReady()
LogicExpr
isReady
in interface LogicExpr
public boolean isTreeReady()
LogicExpr
isTreeReady
in interface LogicExpr
public java.util.List getExpressions()
public java.lang.Object[] getInternalVars()
LogicExpr
getInternalVars
in interface LogicExpr
public void convertValues(LogicExpr.Converter c)
LogicExpr
convertValues
in interface LogicExpr
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |