org.apache.commons.el
Class ConditionalExpression
public class ConditionalExpression
Represents a conditional expression. I've decided not to produce an
abstract base "TernaryOperatorExpression" class since (a) future ternary
operators are unlikely and (b) it's not clear that there would be a
meaningful way to abstract them. (For instance, would they all be right-
associative? Would they all have two fixed operator symbols?)
mFalseBranch
(package private) Expression mFalseBranch
mTrueBranch
(package private) Expression mTrueBranch
evaluate
public Object evaluate(VariableResolver vr,
FunctionMapper f,
Logger l)
throws ELException
Evaluates the conditional expression and returns the literal result
- evaluate in interface Expression
getExpressionString
public String getExpressionString()
Returns the expression in the expression language syntax
- getExpressionString in interface Expression
setCondition
public void setCondition(Expression pCondition)
setFalseBranch
public void setFalseBranch(Expression pFalseBranch)
setTrueBranch
public void setTrueBranch(Expression pTrueBranch)
Copyright (c) 2001-2002 - Apache Software Foundation