|
||||||||||
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.el.PathExpr
public class PathExpr
Represents a field reference that may also be a dotted property, e.g. smtp.mail.host.
Field Summary |
---|
Fields inherited from class com.caucho.el.Expr |
---|
L, log |
Constructor Summary | |
---|---|
PathExpr(Expr expr,
java.lang.String path)
Creates a new path expression. |
Method Summary | |
---|---|
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 |
boolean |
equals(java.lang.Object o)
Returns true for equal strings. |
MethodInfo |
getMethodInfo(ELContext env,
java.lang.Class<?> retType,
java.lang.Class<?>[] argTypes)
Returns the method info. |
java.lang.Class<?> |
getType(ELContext env)
Evaluates the expression as applicable to the provided context, and returns the most general type that can be accepted by the setValue(javax.el.ELContext, java.lang.Object) method. |
java.lang.Object |
getValue(ELContext env)
Evaluate the expression as an object. |
ValueReference |
getValueReference(ELContext context)
|
java.lang.Object |
invoke(ELContext env,
java.lang.Class<?>[] argTypes,
java.lang.Object[] args)
Evaluates the expression, returning an object. |
boolean |
isReadOnly(ELContext env)
Evaluate the expression as an object. |
void |
printCreate(WriteStream os)
Prints the code to create an LongLiteral. |
void |
setValue(ELContext env,
java.lang.Object value)
Evaluate the expression as an object. |
java.lang.String |
toString()
Returns a readable representation of the expr. |
Methods inherited from class com.caucho.el.Expr |
---|
coerceToType, createField, error, evalBigDecimal, evalBigInteger, evalBoolean, evalCharacter, evalDouble, evalLong, evalObject, evalPeriod, evalString, evalStringWithNull, getExpectedType, getExpressionString, hashCode, invocationError, isConstant, isDouble, isDoubleString, isLiteralText, print, print, printEscaped, printEscapedString, setProperty, toBigDecimal, toBigInteger, toBoolean, toCharacter, toClass, toDouble, toEnum, toLong, toStream, toStream, toStream, toStreamEscaped, toStreamEscaped, toStreamEscaped, toString, toString, toString, toString, toString, toStringWithNull |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public PathExpr(Expr expr, java.lang.String path)
expr
- the underlying expressionpath
- the property name to use if nullMethod Detail |
---|
public Expr createField(java.lang.String field)
createField
in class Expr
field
- the string reference for the field.public Expr createMethod(Expr[] args)
obj.method
expression
createMethod
in class Expr
args
- the arguments for the methodpublic java.lang.Class<?> getType(ELContext env) throws PropertyNotFoundException, ELException
getType
in class Expr
env
-
PropertyNotFoundException
ELException
public java.lang.Object getValue(ELContext env) throws ELException
getValue
in class Expr
env
- the variable environment
ELException
public boolean isReadOnly(ELContext env) throws ELException
isReadOnly
in class Expr
env
- the variable environment
ELException
public void setValue(ELContext env, java.lang.Object value) throws ELException
setValue
in class Expr
env
- the variable environment
ELException
public ValueReference getValueReference(ELContext context)
getValueReference
in class ValueExpression
public MethodInfo getMethodInfo(ELContext env, java.lang.Class<?> retType, java.lang.Class<?>[] argTypes) throws ELException
getMethodInfo
in class Expr
env
- the variable environment
ELException
public java.lang.Object invoke(ELContext env, java.lang.Class<?>[] argTypes, java.lang.Object[] args) throws ELException
invoke
in class Expr
env
- the variable environment
ELException
public void printCreate(WriteStream os) throws java.io.IOException
printCreate
in class Expr
os
- stream to the generated *.java code
java.io.IOException
public boolean equals(java.lang.Object o)
equals
in class Expr
public java.lang.String toString()
toString
in class Expr
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |