public class CandiExpr extends Expr
| Modifier and Type | Method and Description |
|---|---|
Expr |
createField(Expr field)
Creates a field reference using this expression as the base object.
|
Expr |
createField(java.lang.String field)
Creates a field reference using this expression as the base object.
|
Expr |
createMethod(Expr[] args)
Creates a method call using this as the
obj.method
expression |
java.math.BigDecimal |
evalBigDecimal(ELContext env)
Evaluate the expression, knowing the value should be a BigDecimal.
|
java.math.BigInteger |
evalBigInteger(ELContext env)
Evaluate the expression, knowing the value should be a BigInteger.
|
boolean |
evalBoolean(ELContext env)
Evaluate the expression, knowing the value should be a boolean.
|
char |
evalCharacter(ELContext env)
Evaluate the expression, knowing the value should be a string
|
double |
evalDouble(ELContext env)
Evaluate the expression, knowing the value should be a double.
|
long |
evalLong(ELContext env)
Evaluate the expression, knowing the value should be a long
|
long |
evalPeriod(ELContext env)
Evaluate the expression, knowing the value should be a period
|
java.lang.String |
evalString(ELContext env)
Evaluate the expression, knowing the value should be a string
|
java.lang.String |
evalStringWithNull(ELContext env)
Evaluate the expression, knowing the value should be a string
|
java.lang.Class<?> |
getExpectedType() |
java.lang.String |
getExpressionString() |
MethodInfo |
getMethodInfo(ELContext env,
java.lang.Class<?> returnType,
java.lang.Class<?>[] argTypes)
Evaluates the expression, returning an object.
|
java.lang.Class<?> |
getType(ELContext context) |
java.lang.Object |
getValue(ELContext env)
Evaluates the expression, returning an object.
|
java.lang.Object |
invoke(ELContext env,
java.lang.Class<?>[] argTypes,
java.lang.Object[] args)
Evaluates the expression, returning an object.
|
boolean |
isConstant()
Returns true if the expression is constant.
|
boolean |
isLiteralText()
Returns true if the expression is literal text
|
boolean |
isReadOnly(ELContext env)
Returns true if the expression is read-only.
|
boolean |
print(JspWriter out,
ELContext env,
boolean escapeXml)
Evaluates directly to the output.
|
boolean |
print(WriteStream out,
ELContext env,
boolean escapeXml)
Evaluates directly to the output.
|
void |
printCreate(WriteStream os)
Generates the code to regenerate the expression.
|
void |
setValue(ELContext env,
java.lang.Object value)
Evaluates the expression, setting an object.
|
java.lang.String |
toString() |
coerceToType, equals, error, evalObject, hashCode, invocationError, isDouble, isDoubleString, printEscaped, printEscapedString, setProperty, toBigDecimal, toBigInteger, toBoolean, toCharacter, toClass, toDouble, toEnum, toLong, toStream, toStream, toStream, toStreamEscaped, toStreamEscaped, toStreamEscaped, toString, toString, toString, toString, toString, toStringWithNullpublic CandiExpr(Expr expr)
public boolean isConstant()
ExprisConstant in class Exprpublic boolean isReadOnly(ELContext env)
ExprisReadOnly in class Exprpublic boolean isLiteralText()
ExprisLiteralText in class Exprpublic Expr createField(Expr field)
ExprcreateField in class Exprfield - the expression for the field.public Expr createField(java.lang.String field)
ExprcreateField in class Exprfield - the string reference for the field.public Expr createMethod(Expr[] args)
Exprobj.method
expressioncreateMethod in class Exprargs - the arguments for the methodpublic java.lang.Object getValue(ELContext env)
throws ELException
Exprpublic MethodInfo getMethodInfo(ELContext env,
java.lang.Class<?> returnType,
java.lang.Class<?>[] argTypes)
throws ELException
ExprgetMethodInfo in class Exprenv - the variable environmentELExceptionpublic java.lang.Object invoke(ELContext env,
java.lang.Class<?>[] argTypes,
java.lang.Object[] args)
throws ELException
Exprpublic boolean evalBoolean(ELContext env)
throws ELException
ExprevalBoolean in class Exprenv - the variable environmentELExceptionpublic double evalDouble(ELContext env)
throws ELException
ExprevalDouble in class Exprenv - the variable environmentELExceptionpublic long evalLong(ELContext env)
throws ELException
Exprpublic java.lang.String evalString(ELContext env)
throws ELException
ExprevalString in class Exprenv - the variable environmentELExceptionpublic java.lang.String evalStringWithNull(ELContext env)
throws ELException
ExprevalStringWithNull in class Exprenv - the variable environmentELExceptionpublic char evalCharacter(ELContext env)
throws ELException
ExprevalCharacter in class Exprenv - the variable environmentELExceptionpublic long evalPeriod(ELContext env)
throws ELException
ExprevalPeriod in class Exprenv - the variable environmentELExceptionpublic java.math.BigInteger evalBigInteger(ELContext env)
throws ELException
ExprevalBigInteger in class Exprenv - the variable environmentELExceptionpublic java.math.BigDecimal evalBigDecimal(ELContext env)
throws ELException
ExprevalBigDecimal in class Exprenv - the variable environmentELExceptionpublic void setValue(ELContext env,
java.lang.Object value)
throws PropertyNotFoundException,
PropertyNotWritableException,
ELException
Exprpublic boolean print(WriteStream out, ELContext env, boolean escapeXml) throws java.io.IOException, ELException
Exprpublic boolean print(JspWriter out,
ELContext env,
boolean escapeXml)
throws java.io.IOException,
ELException
Exprpublic void printCreate(WriteStream os) throws java.io.IOException
ExprprintCreate in class Expros - the stream to the *.java pagejava.io.IOExceptionpublic java.lang.String getExpressionString()
getExpressionString in class Exprpublic java.lang.Class<?> getExpectedType()
getExpectedType in class Exprpublic java.lang.Class<?> getType(ELContext context)
throws PropertyNotFoundException,
ELException