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, toStringWithNull
getValueReference
public CandiExpr(Expr expr)
public boolean isConstant()
Expr
isConstant
in class Expr
public boolean isReadOnly(ELContext env)
Expr
isReadOnly
in class Expr
public boolean isLiteralText()
Expr
isLiteralText
in class Expr
public Expr createField(Expr field)
Expr
createField
in class Expr
field
- the expression for the field.public Expr createField(java.lang.String field)
Expr
createField
in class Expr
field
- the string reference for the field.public Expr createMethod(Expr[] args)
Expr
obj.method
expressioncreateMethod
in class Expr
args
- the arguments for the methodpublic java.lang.Object getValue(ELContext env) throws ELException
Expr
getValue
in class Expr
env
- the variable environmentELException
public MethodInfo getMethodInfo(ELContext env, java.lang.Class<?> returnType, java.lang.Class<?>[] argTypes) throws ELException
Expr
getMethodInfo
in class Expr
env
- the variable environmentELException
public java.lang.Object invoke(ELContext env, java.lang.Class<?>[] argTypes, java.lang.Object[] args) throws ELException
Expr
invoke
in class Expr
env
- the variable environmentELException
public boolean evalBoolean(ELContext env) throws ELException
Expr
evalBoolean
in class Expr
env
- the variable environmentELException
public double evalDouble(ELContext env) throws ELException
Expr
evalDouble
in class Expr
env
- the variable environmentELException
public long evalLong(ELContext env) throws ELException
Expr
evalLong
in class Expr
env
- the variable environmentELException
public java.lang.String evalString(ELContext env) throws ELException
Expr
evalString
in class Expr
env
- the variable environmentELException
public java.lang.String evalStringWithNull(ELContext env) throws ELException
Expr
evalStringWithNull
in class Expr
env
- the variable environmentELException
public char evalCharacter(ELContext env) throws ELException
Expr
evalCharacter
in class Expr
env
- the variable environmentELException
public long evalPeriod(ELContext env) throws ELException
Expr
evalPeriod
in class Expr
env
- the variable environmentELException
public java.math.BigInteger evalBigInteger(ELContext env) throws ELException
Expr
evalBigInteger
in class Expr
env
- the variable environmentELException
public java.math.BigDecimal evalBigDecimal(ELContext env) throws ELException
Expr
evalBigDecimal
in class Expr
env
- the variable environmentELException
public void setValue(ELContext env, java.lang.Object value) throws PropertyNotFoundException, PropertyNotWritableException, ELException
Expr
setValue
in class Expr
env
- the variable environmentPropertyNotFoundException
PropertyNotWritableException
ELException
public boolean print(WriteStream out, ELContext env, boolean escapeXml) throws java.io.IOException, ELException
Expr
print
in class Expr
out
- the output writerenv
- the variable environmentescapeXml
- if true, escape reserved XMLjava.io.IOException
ELException
public boolean print(JspWriter out, ELContext env, boolean escapeXml) throws java.io.IOException, ELException
Expr
print
in class Expr
out
- the output writerenv
- the variable environmentescapeXml
- if true, escape reserved XMLjava.io.IOException
ELException
public void printCreate(WriteStream os) throws java.io.IOException
Expr
printCreate
in class Expr
os
- the stream to the *.java pagejava.io.IOException
public java.lang.String getExpressionString()
getExpressionString
in class Expr
public java.lang.Class<?> getExpectedType()
getExpectedType
in class Expr
public java.lang.Class<?> getType(ELContext context) throws PropertyNotFoundException, ELException
getType
in class Expr
PropertyNotFoundException
ELException