|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.el.Expression
javax.el.ValueExpression
com.caucho.el.Expr
com.caucho.config.el.CandiExpr
public class CandiExpr
Variable resolution for webbeans variables
| Field Summary |
|---|
| Fields inherited from class com.caucho.el.Expr |
|---|
L, log |
| Constructor Summary | |
|---|---|
CandiExpr(Expr expr)
|
|
| Method Summary | |
|---|---|
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()
|
| Methods inherited from class com.caucho.el.Expr |
|---|
coerceToType, equals, error, evalObject, hashCode, invocationError, isDouble, isDoubleString, printEscaped, printEscapedString, setProperty, toBigDecimal, toBigInteger, toBoolean, toCharacter, toDouble, toEnum, toLong, toStream, toStream, toStream, toStreamEscaped, toStreamEscaped, toStreamEscaped, toString, toString, toString, toString, toString, toStringWithNull |
| Methods inherited from class javax.el.ValueExpression |
|---|
getValueReference |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public CandiExpr(Expr expr)
| Method Detail |
|---|
public boolean isConstant()
Expr
isConstant in class Exprpublic boolean isReadOnly(ELContext env)
Expr
isReadOnly in class Exprpublic boolean isLiteralText()
Expr
isLiteralText in class Exprpublic Expr createField(Expr field)
Expr
createField in class Exprfield - the expression for the field.public Expr createField(java.lang.String field)
Expr
createField in class Exprfield - the string reference for the field.public Expr createMethod(Expr[] args)
Exprobj.method
expression
createMethod in class Exprargs - the arguments for the method
public java.lang.Object getValue(ELContext env)
throws ELException
Expr
getValue in class Exprenv - the variable environment
ELException
public MethodInfo getMethodInfo(ELContext env,
java.lang.Class<?> returnType,
java.lang.Class<?>[] argTypes)
throws ELException
Expr
getMethodInfo in class Exprenv - the variable environment
ELException
public java.lang.Object invoke(ELContext env,
java.lang.Class<?>[] argTypes,
java.lang.Object[] args)
throws ELException
Expr
invoke in class Exprenv - the variable environment
ELException
public boolean evalBoolean(ELContext env)
throws ELException
Expr
evalBoolean in class Exprenv - the variable environment
ELException
public double evalDouble(ELContext env)
throws ELException
Expr
evalDouble in class Exprenv - the variable environment
ELException
public long evalLong(ELContext env)
throws ELException
Expr
evalLong in class Exprenv - the variable environment
ELException
public java.lang.String evalString(ELContext env)
throws ELException
Expr
evalString in class Exprenv - the variable environment
ELException
public java.lang.String evalStringWithNull(ELContext env)
throws ELException
Expr
evalStringWithNull in class Exprenv - the variable environment
ELException
public char evalCharacter(ELContext env)
throws ELException
Expr
evalCharacter in class Exprenv - the variable environment
ELException
public long evalPeriod(ELContext env)
throws ELException
Expr
evalPeriod in class Exprenv - the variable environment
ELException
public java.math.BigInteger evalBigInteger(ELContext env)
throws ELException
Expr
evalBigInteger in class Exprenv - the variable environment
ELException
public java.math.BigDecimal evalBigDecimal(ELContext env)
throws ELException
Expr
evalBigDecimal in class Exprenv - the variable environment
ELException
public void setValue(ELContext env,
java.lang.Object value)
throws PropertyNotFoundException,
PropertyNotWritableException,
ELException
Expr
setValue in class Exprenv - the variable environment
PropertyNotFoundException
PropertyNotWritableException
ELException
public boolean print(WriteStream out,
ELContext env,
boolean escapeXml)
throws java.io.IOException,
ELException
Expr
print in class Exprout - the output writerenv - the variable environmentescapeXml - if true, escape reserved XML
java.io.IOException
ELException
public boolean print(JspWriter out,
ELContext env,
boolean escapeXml)
throws java.io.IOException,
ELException
Expr
print in class Exprout - the output writerenv - the variable environmentescapeXml - if true, escape reserved XML
java.io.IOException
ELException
public void printCreate(WriteStream os)
throws java.io.IOException
Expr
printCreate in class Expros - the stream to the *.java page
java.io.IOExceptionpublic java.lang.String getExpressionString()
getExpressionString in class Exprpublic java.lang.Class<?> getExpectedType()
getExpectedType in class Expr
public java.lang.Class<?> getType(ELContext context)
throws PropertyNotFoundException,
ELException
getType in class ExprPropertyNotFoundException
ELExceptionpublic java.lang.String toString()
toString in class Expr
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||