public class BooleanLiteral extends AbstractBooleanExpr
| Constructor and Description |
|---|
BooleanLiteral(boolean value)
Creates a new boolean literal.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true for equal strings.
|
boolean |
evalBoolean(ELContext env)
Evaluate the expression as an boolean
|
boolean |
isConstant()
Returns true if the expression is constant.
|
void |
printCreate(WriteStream os)
Prints the Java code to recreate the BooleanLiteral.
|
java.lang.String |
toString()
Returns a readable representation of the expr.
|
evalDouble, evalLong, evalString, getValue, printcoerceToType, createField, createField, createMethod, error, evalBigDecimal, evalBigInteger, evalCharacter, evalObject, evalPeriod, evalStringWithNull, getExpectedType, getExpressionString, getMethodInfo, getType, hashCode, invocationError, invoke, isDouble, isDoubleString, isLiteralText, isReadOnly, 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 BooleanLiteral(boolean value)
value - the valuepublic boolean isConstant()
isConstant in class Exprpublic boolean evalBoolean(ELContext env) throws ELException
evalBoolean in class AbstractBooleanExprenv - the variable environmentELExceptionpublic void printCreate(WriteStream os) throws java.io.IOException
printCreate in class Expros - the output stream to the *.java code.java.io.IOExceptionpublic boolean equals(java.lang.Object o)