public class ConditionalNullExpr extends Expr
| Constructor and Description |
|---|
ConditionalNullExpr(Expr value,
Expr defaultExpr)
Creates the conditional expression.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true for equal strings.
|
java.lang.Object |
getValue(ELContext env)
Evaluate the expression as an object.
|
boolean |
isConstant()
Returns true if this is a constant expression.
|
void |
printCreate(WriteStream os)
Prints the Java code to recreate the expr
|
java.lang.String |
toString()
Returns a readable representation of the expr.
|
coerceToType, createField, createField, createMethod, error, evalBigDecimal, evalBigInteger, evalBoolean, evalCharacter, evalDouble, evalLong, evalObject, evalPeriod, evalString, evalStringWithNull, getExpectedType, getExpressionString, getMethodInfo, getType, hashCode, invocationError, invoke, isDouble, isDoubleString, isLiteralText, isReadOnly, print, print, printEscaped, printEscapedString, setProperty, setValue, toBigDecimal, toBigInteger, toBoolean, toCharacter, toClass, toDouble, toEnum, toLong, toStream, toStream, toStream, toStreamEscaped, toStreamEscaped, toStreamEscaped, toString, toString, toString, toString, toString, toStringWithNullgetValueReferencepublic boolean isConstant()
isConstant in class Exprpublic java.lang.Object getValue(ELContext env) throws ELException
getValue in class Exprenv - the variable environmentELExceptionpublic void printCreate(WriteStream os) throws java.io.IOException
printCreate in class Expros - the output stream to the *.java filejava.io.IOExceptionpublic boolean equals(java.lang.Object o)