| com.caucho.el.Expr com.caucho.el.ArrayResolverExpr
ArrayResolverExpr | public class ArrayResolverExpr extends Expr (Code) | | Represents an array reference:
a[b]
|
Method Summary | |
public Expr | createMethod(Expr[] args) Creates a method for constant arrays. | public boolean | equals(Object o) Returns true for equal strings. | public Expr | getExpr() Returns the base expression. | public Expr | getIndex() Returns the index expression. | public MethodInfo | getMethodInfo(ELContext env, Class> returnType, Class>[] argTypes) Evaluates the expression, returning an object. | public 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. | public Object | getValue(ELContext env) Evaluate the expression as an object. | public Object | invoke(ELContext env, Class>[] argTypes, Object[] args) Evaluates the expression, returning an object. | public boolean | isReadOnly(ELContext env) Returns the read-only value of the expression. | public void | printCreate(WriteStream os) Prints the code to create an LongLiteral. | public void | setValue(ELContext env, Object value) Evaluate the expression as an object. | public String | toString() Returns a readable representation of the expr. |
ArrayResolverExpr | public ArrayResolverExpr(Expr left, Expr right)(Code) | | Creates a new array expression.
Parameters: left - the object expression Parameters: right - the index expression. |
createMethod | public Expr createMethod(Expr[] args)(Code) | | Creates a method for constant arrays.
|
equals | public boolean equals(Object o)(Code) | | Returns true for equal strings.
|
getExpr | public Expr getExpr()(Code) | | Returns the base expression.
|
getIndex | public Expr getIndex()(Code) | | Returns the index expression.
|
getMethodInfo | public MethodInfo getMethodInfo(ELContext env, Class> returnType, Class>[] argTypes) throws ELException(Code) | | Evaluates the expression, returning an object.
Parameters: env - the variable environment the value of the expression as an object |
getType | public Class> getType(ELContext env) throws PropertyNotFoundException, ELException(Code) | | 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.
Parameters: env - throws: PropertyNotFoundException - throws: ELException - |
getValue | public Object getValue(ELContext env) throws ELException(Code) | | Evaluate the expression as an object.
Parameters: env - the variable environment the evaluated object |
invoke | public Object invoke(ELContext env, Class>[] argTypes, Object[] args) throws ELException(Code) | | Evaluates the expression, returning an object.
Parameters: env - the variable environment the value of the expression as an object |
isReadOnly | public boolean isReadOnly(ELContext env) throws ELException(Code) | | Returns the read-only value of the expression.
Parameters: env - the variable environment true if read-only |
printCreate | public void printCreate(WriteStream os) throws IOException(Code) | | Prints the code to create an LongLiteral.
Parameters: os - stream to the generated *.java code |
setValue | public void setValue(ELContext env, Object value) throws ELException(Code) | | Evaluate the expression as an object.
Parameters: env - the variable environment the evaluated object |
toString | public String toString()(Code) | | Returns a readable representation of the expr.
|
Methods inherited from com.caucho.el.Expr | public static Object coerceToType(Object obj, Class> targetType) throws ELException(Code)(Java Doc) public Expr createField(Expr field)(Code)(Java Doc) public Expr createField(String field)(Code)(Java Doc) public Expr createMethod(Expr[] args)(Code)(Java Doc) public boolean equals(Object o)(Code)(Java Doc) public static Object error(Throwable e, ELContext env) throws ELException(Code)(Java Doc) public BigDecimal evalBigDecimal(ELContext env) throws ELException(Code)(Java Doc) public BigInteger evalBigInteger(ELContext env) throws ELException(Code)(Java Doc) public boolean evalBoolean(ELContext env) throws ELException(Code)(Java Doc) public char evalCharacter(ELContext env) throws ELException(Code)(Java Doc) public double evalDouble(ELContext env) throws ELException(Code)(Java Doc) public long evalLong(ELContext env) throws ELException(Code)(Java Doc) final public Object evalObject(ELContext env) throws ELException(Code)(Java Doc) public long evalPeriod(ELContext env) throws ELException(Code)(Java Doc) public String evalString(ELContext env) throws ELException(Code)(Java Doc) public String evalStringWithNull(ELContext env) throws ELException(Code)(Java Doc) public Class> getExpectedType()(Code)(Java Doc) public String getExpressionString()(Code)(Java Doc) public MethodInfo getMethodInfo(ELContext env, Class> returnType, Class>[] argTypes) throws ELException(Code)(Java Doc) public Class> getType(ELContext context) throws PropertyNotFoundException, ELException(Code)(Java Doc) abstract public Object getValue(ELContext env) throws ELException(Code)(Java Doc) public int hashCode()(Code)(Java Doc) public static Object invocationError(Throwable e) throws ELException(Code)(Java Doc) public Object invoke(ELContext env, Class>[] argTypes, Object[] args) throws ELException(Code)(Java Doc) public boolean isConstant()(Code)(Java Doc) public static boolean isDouble(Object o)(Code)(Java Doc) protected static boolean isDoubleString(Object obj)(Code)(Java Doc) public boolean isLiteralText()(Code)(Java Doc) public boolean isReadOnly(ELContext env)(Code)(Java Doc) public boolean print(WriteStream out, ELContext env, boolean escapeXml) throws IOException, ELException(Code)(Java Doc) public boolean print(JspWriter out, ELContext env, boolean escapeXml) throws IOException, ELException(Code)(Java Doc) public void printCreate(WriteStream os) throws IOException(Code)(Java Doc) public static void printEscaped(WriteStream os, ReadStream is) throws IOException(Code)(Java Doc) public static void printEscapedString(WriteStream os, String string) throws IOException(Code)(Java Doc) public static void setProperty(Object target, String property, Object value) throws ELException, JspException(Code)(Java Doc) public void setValue(ELContext env, Object value) throws PropertyNotFoundException, PropertyNotWritableException, ELException(Code)(Java Doc) public static BigDecimal toBigDecimal(Object value, ELContext env) throws ELException(Code)(Java Doc) public static BigInteger toBigInteger(Object value, ELContext env) throws ELException(Code)(Java Doc) public static boolean toBoolean(Object value, ELContext env) throws ELException(Code)(Java Doc) public static char toCharacter(Object value, ELContext env) throws ELException(Code)(Java Doc) public static double toDouble(Object value, ELContext env) throws ELException(Code)(Java Doc) public static long toLong(Object value, ELContext env) throws ELException(Code)(Java Doc) public static boolean toStream(JspWriter out, Object value, boolean isEscaped) throws IOException(Code)(Java Doc) public static void toStream(WriteStream out, Object value) throws IOException(Code)(Java Doc) public static void toStream(JspWriter out, Object value) throws IOException(Code)(Java Doc) public static void toStreamEscaped(Writer out, Object value) throws IOException(Code)(Java Doc) public static void toStreamEscaped(WriteStream out, Object value) throws IOException(Code)(Java Doc) public static void toStreamEscaped(Writer out, Reader in) throws IOException(Code)(Java Doc) public static String toString(Object value, ELContext env)(Code)(Java Doc) public static String toString(long value, ELContext env)(Code)(Java Doc) public static String toString(double value, ELContext env)(Code)(Java Doc) public static String toString(boolean value, ELContext env)(Code)(Java Doc) public static String toString(char value, ELContext env)(Code)(Java Doc) abstract public String toString()(Code)(Java Doc) public static String toStringWithNull(Object value, ELContext env)(Code)(Java Doc)
|
|
|