|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object biz.chitec.quarterback.util.logic.LogicExprUtilities
Helper methods for logic expressions.
Constructor Summary | |
private |
LogicExprUtilities()
|
Method Summary | |
static LogicExpr |
cloneLogicExpr(LogicExpr le)
Deep-copies the given logic expression. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
private LogicExprUtilities()
Method Detail |
public static final LogicExpr cloneLogicExpr(LogicExpr le)
As LogicExpr-derivates must implement the clone() method due to their interface definition, a CloneNotSupportedException should not arise. Theoretically, a LogicExpr descendant could implement clone() with simply throwing CloneNotSupportedException, so there is actually a chance that the exception is thrown. If it is catched, it is wrapped into a RuntimeException and rethrown. Advantage: It must not be declared explicitly in the caller. Rationale: It should simply not happen as the LogicExpr contract says that each implementation must have a working clone() method.
le
- LogicExpr to clone or null
|
QJCC homepage | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |