Operator
Implementation of the If operator. The If operator
consists of three parts, the condition, the true action
and the false action. If the condition evaluates to true
the true action is evaluated otherwise the false condition
is evaluated.
Input 1: A Boolean object or Expression returning a Boolean object.
Input 2: An Expression
Input 3 (optional): An Expression.
Returns: The result of evaluating the true or false expression.
Object
ComplexExpressionImpl
Operator
If
Cloneable
, Expression
, Serializable
Constructor Summary |
|
Method Summary |
public | |
public | |
public |
|
public |
Methods from com.bea.p13n.expression.operator. |
|
Methods from com.bea.p13n.expression.internal. |
addListener, addSubExpression, clearCache, clone, createProxyExpression, equals, getCachedValue, getParent, getSource, getSubExpression, getSubExpressionCount, getUserData, hashCode, isCached, isCacheEnabled, isEqualitySubExpression, notifyListeners, removeAllSubExpressions, removeListener, removeSubExpression, removeSubExpression, setCachedValue, setCacheEnabled, setParent, setSource, setSubExpression, setUserData, toString, write |
Methods from class java.lang. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods from interface com.bea.p13n.expression. |
|
Constructor Detail |
public If()
public If(Object
logical,Object
trueEx,Object
falseEx)
Method Detail |
public Object
getFalseExpression()
public Object
getLogicalExpression()
public Class
[] getParameterSignature()
Description copied from Expression.getParameterSignature()
Expression
.
Because the sub-expressions within the Expression
are
typically arguments or operands, some type validation is performed
by examining the class types of the sub-expressions against the
Expression
's parameter signature.
public Object
getTrueExpression()