| com.caucho.el.Expr
All known Subclasses: com.caucho.el.AbstractBooleanExpr, com.caucho.el.DoubleLiteral, com.caucho.el.IdExpr, com.caucho.el.DivExpr, com.caucho.el.StringLiteral, com.caucho.el.SubExpr, com.caucho.el.LongLiteral, com.caucho.el.FunctionExpr, com.caucho.el.MethodExpr, com.caucho.el.AddExpr, com.caucho.jsf.el.ImplicitObjectExpr, com.caucho.el.ArrayExpr, com.caucho.el.ConditionalExpr, com.caucho.el.NullLiteral, com.caucho.el.MinusExpr, com.caucho.el.PathExpr, com.caucho.el.StaticMethodExpr, com.caucho.el.MulExpr, com.caucho.jsp.el.ImplicitObjectExpr, com.caucho.el.UnaryExpr, com.caucho.el.ArrayResolverExpr, com.caucho.el.ModExpr, com.caucho.el.BinaryExpr, com.caucho.jsp.el.ImplicitFieldExpr, com.caucho.el.InterpolateExpr, com.caucho.el.ValueExpr,
Expr | abstract public class Expr extends ValueExpression (Code) | | Abstract implementation class for an expression.
|
Method Summary | |
public static Object | coerceToType(Object obj, Class> targetType) | public Expr | createField(Expr field) Creates a field reference using this expression as the base object. | public Expr | createField(String field) Creates a field reference using this expression as the base object. | public Expr | createMethod(Expr[] args) | public boolean | equals(Object o) | public static Object | error(Throwable e, ELContext env) | public BigDecimal | evalBigDecimal(ELContext env) Evaluate the expression, knowing the value should be a BigDecimal. | public BigInteger | evalBigInteger(ELContext env) Evaluate the expression, knowing the value should be a BigInteger. | public boolean | evalBoolean(ELContext env) Evaluate the expression, knowing the value should be a boolean. | public char | evalCharacter(ELContext env) | public double | evalDouble(ELContext env) Evaluate the expression, knowing the value should be a double. | public long | evalLong(ELContext env) | final public Object | evalObject(ELContext env) Evaluates the expression, returning an object. | public long | evalPeriod(ELContext env) | public String | evalString(ELContext env) | public String | evalStringWithNull(ELContext env) | public Class> | getExpectedType() | public String | getExpressionString() | public MethodInfo | getMethodInfo(ELContext env, Class> returnType, Class>[] argTypes) Evaluates the expression, returning an object. | public Class> | getType(ELContext context) | abstract public Object | getValue(ELContext env) Evaluates the expression, returning an object. | public int | hashCode() | public static Object | invocationError(Throwable e) | public Object | invoke(ELContext env, Class>[] argTypes, Object[] args) Evaluates the expression, returning an object. | public boolean | isConstant() Returns true if the expression is constant. | public static boolean | isDouble(Object o) Returns true for a double or double-equivalent. | protected static boolean | isDoubleString(Object obj) | public boolean | isLiteralText() | public boolean | isReadOnly(ELContext env) Returns true if the expression is read-only. | public boolean | print(WriteStream out, ELContext env, boolean escapeXml) Evaluates directly to the output. | public boolean | print(JspWriter out, ELContext env, boolean escapeXml) Evaluates directly to the output. | public void | printCreate(WriteStream os) Generates the code to regenerate the expression. | public static void | printEscaped(WriteStream os, ReadStream is) Write to the *.java stream escaping Java reserved characters. | public static void | printEscapedString(WriteStream os, String string) Write to the *.java stream escaping Java reserved characters. | public static void | setProperty(Object target, String property, Object value) | public void | setValue(ELContext env, Object value) Evaluates the expression, setting an object. | public static BigDecimal | toBigDecimal(Object value, ELContext env) Converts some unknown value to a big decimal
Parameters: value - the value to be converted. | public static BigInteger | toBigInteger(Object value, ELContext env) Converts some unknown value to a big integer
Parameters: value - the value to be converted. | public static boolean | toBoolean(Object value, ELContext env) Converts some unknown value to a boolean.
Parameters: value - the value to be converted. | public static char | toCharacter(Object value, ELContext env) Converts some unknown value to a string.
Parameters: value - the value to be converted. | public static double | toDouble(Object value, ELContext env) Converts some unknown value to a double.
Parameters: value - the value to be converted. | public static long | toLong(Object value, ELContext env) Converts some unknown value to a long.
Parameters: value - the value to be converted. | public static boolean | toStream(JspWriter out, Object value, boolean isEscaped) Write to the stream.
Parameters: out - the output stream Parameters: value - the value to be written. | public static void | toStream(WriteStream out, Object value) Write to the stream. | public static void | toStream(JspWriter out, Object value) Write to the stream. | public static void | toStreamEscaped(Writer out, Object value) Write to the stream. | public static void | toStreamEscaped(WriteStream out, Object value) Write to the stream escaping XML reserved characters. | public static void | toStreamEscaped(Writer out, Reader in) Write to the stream escaping XML reserved characters. | public static String | toString(Object value, ELContext env) Converts some unknown value to a string.
Parameters: value - the value to be converted. | public static String | toString(long value, ELContext env) Converts some unknown value to a string.
Parameters: value - the value to be converted. | public static String | toString(double value, ELContext env) Converts some unknown value to a string.
Parameters: value - the value to be converted. | public static String | toString(boolean value, ELContext env) Converts some unknown value to a string.
Parameters: value - the value to be converted. | public static String | toString(char value, ELContext env) Converts some unknown value to a string.
Parameters: value - the value to be converted. | abstract public String | toString() | public static String | toStringWithNull(Object value, ELContext env) Converts some unknown value to a string.
Parameters: value - the value to be converted. |
BOOLEAN | final static int BOOLEAN(Code) | | |
BOOLEAN_OBJ | final static int BOOLEAN_OBJ(Code) | | |
BYTE | final static int BYTE(Code) | | |
BYTE_OBJ | final static int BYTE_OBJ(Code) | | |
DOUBLE | final static int DOUBLE(Code) | | |
DOUBLE_OBJ | final static int DOUBLE_OBJ(Code) | | |
EMPTY | final static int EMPTY(Code) | | |
FLOAT | final static int FLOAT(Code) | | |
FLOAT_OBJ | final static int FLOAT_OBJ(Code) | | |
INT_OBJ | final static int INT_OBJ(Code) | | |
L | final protected static L10N L(Code) | | |
LONG | final static int LONG(Code) | | |
LONG_OBJ | final static int LONG_OBJ(Code) | | |
MINUS | final static int MINUS(Code) | | |
OBJECT | final static int OBJECT(Code) | | |
SHORT | final static int SHORT(Code) | | |
SHORT_OBJ | final static int SHORT_OBJ(Code) | | |
STRING | final static int STRING(Code) | | |
_typeMap | final static IntMap _typeMap(Code) | | |
createField | public Expr createField(Expr field)(Code) | | Creates a field reference using this expression as the base object.
Parameters: field - the expression for the field. |
createField | public Expr createField(String field)(Code) | | Creates a field reference using this expression as the base object.
Parameters: field - the string reference for the field. |
createMethod | public Expr createMethod(Expr[] args)(Code) | | Creates a method call using this as the obj.method
expression
Parameters: args - the arguments for the method |
error | public static Object error(Throwable e, ELContext env) throws ELException(Code) | | Returns an error object
|
evalBigDecimal | public BigDecimal evalBigDecimal(ELContext env) throws ELException(Code) | | Evaluate the expression, knowing the value should be a BigDecimal.
Parameters: env - the variable environment the value of the expression as a BigDecimal |
evalBigInteger | public BigInteger evalBigInteger(ELContext env) throws ELException(Code) | | Evaluate the expression, knowing the value should be a BigInteger.
Parameters: env - the variable environment the value of the expression as a BigInteger |
evalBoolean | public boolean evalBoolean(ELContext env) throws ELException(Code) | | Evaluate the expression, knowing the value should be a boolean.
Parameters: env - the variable environment the value of the expression as a boolean |
evalCharacter | public char evalCharacter(ELContext env) throws ELException(Code) | | Evaluate the expression, knowing the value should be a string
Parameters: env - the variable environment the value of the expression as a string |
evalDouble | public double evalDouble(ELContext env) throws ELException(Code) | | Evaluate the expression, knowing the value should be a double.
Parameters: env - the variable environment the value of the expression as a double |
evalLong | public long evalLong(ELContext env) throws ELException(Code) | | Evaluate the expression, knowing the value should be a long
Parameters: env - the variable environment the value of the expression as a double |
evalObject | final public Object evalObject(ELContext env) throws ELException(Code) | | Evaluates the expression, returning an object.
Parameters: env - the variable environment the value of the expression as an object |
evalPeriod | public long evalPeriod(ELContext env) throws ELException(Code) | | Evaluate the expression, knowing the value should be a period
Parameters: env - the variable environment the value of the expression as a period |
evalString | public String evalString(ELContext env) throws ELException(Code) | | Evaluate the expression, knowing the value should be a string
Parameters: env - the variable environment the value of the expression as a string |
evalStringWithNull | public String evalStringWithNull(ELContext env) throws ELException(Code) | | Evaluate the expression, knowing the value should be a string
Parameters: env - the variable environment the value of the expression as a string |
getExpressionString | public String getExpressionString()(Code) | | |
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 context) throws PropertyNotFoundException, ELException(Code) | | |
getValue | abstract public Object getValue(ELContext env) throws ELException(Code) | | Evaluates the expression, returning an object.
Parameters: env - the variable environment the value of the expression as an object |
hashCode | public int hashCode()(Code) | | |
invocationError | public static Object invocationError(Throwable e) throws ELException(Code) | | Returns an error 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 |
isConstant | public boolean isConstant()(Code) | | Returns true if the expression is constant.
|
isDouble | public static boolean isDouble(Object o)(Code) | | Returns true for a double or double-equivalent.
|
isDoubleString | protected static boolean isDoubleString(Object obj)(Code) | | |
isLiteralText | public boolean isLiteralText()(Code) | | Returns true if the expression is literal text
|
isReadOnly | public boolean isReadOnly(ELContext env)(Code) | | Returns true if the expression is read-only.
|
print | public boolean print(WriteStream out, ELContext env, boolean escapeXml) throws IOException, ELException(Code) | | Evaluates directly to the output. The method returns true
if the default value should be printed instead.
Parameters: out - the output writer Parameters: env - the variable environment Parameters: escapeXml - if true, escape reserved XML true if the object is null, otherwise false |
print | public boolean print(JspWriter out, ELContext env, boolean escapeXml) throws IOException, ELException(Code) | | Evaluates directly to the output. The method returns true
if the default value should be printed instead.
Parameters: out - the output writer Parameters: env - the variable environment Parameters: escapeXml - if true, escape reserved XML true if the object is null, otherwise false |
printCreate | public void printCreate(WriteStream os) throws IOException(Code) | | Generates the code to regenerate the expression.
Parameters: os - the stream to the *.java page |
printEscaped | public static void printEscaped(WriteStream os, ReadStream is) throws IOException(Code) | | Write to the *.java stream escaping Java reserved characters.
Parameters: out - the output stream to the *.java code. Parameters: value - the value to be converted. |
printEscapedString | public static void printEscapedString(WriteStream os, String string) throws IOException(Code) | | Write to the *.java stream escaping Java reserved characters.
Parameters: out - the output stream to the *.java code. Parameters: value - the value to be converted. |
setValue | public void setValue(ELContext env, Object value) throws PropertyNotFoundException, PropertyNotWritableException, ELException(Code) | | Evaluates the expression, setting an object.
Parameters: env - the variable environment the value of the expression as an object |
toBigDecimal | public static BigDecimal toBigDecimal(Object value, ELContext env) throws ELException(Code) | | Converts some unknown value to a big decimal
Parameters: value - the value to be converted. the BigDecimal-converted value. |
toBigInteger | public static BigInteger toBigInteger(Object value, ELContext env) throws ELException(Code) | | Converts some unknown value to a big integer
Parameters: value - the value to be converted. the BigInteger-converted value. |
toBoolean | public static boolean toBoolean(Object value, ELContext env) throws ELException(Code) | | Converts some unknown value to a boolean.
Parameters: value - the value to be converted. the boolean-converted value. |
toCharacter | public static char toCharacter(Object value, ELContext env) throws ELException(Code) | | Converts some unknown value to a string.
Parameters: value - the value to be converted. the string-converted value. |
toDouble | public static double toDouble(Object value, ELContext env) throws ELException(Code) | | Converts some unknown value to a double.
Parameters: value - the value to be converted. the double-converted value. |
toLong | public static long toLong(Object value, ELContext env) throws ELException(Code) | | Converts some unknown value to a long.
Parameters: value - the value to be converted. the long-converted value. |
toStream | public static boolean toStream(JspWriter out, Object value, boolean isEscaped) throws IOException(Code) | | Write to the stream.
Parameters: out - the output stream Parameters: value - the value to be written. true for null |
toStream | public static void toStream(WriteStream out, Object value) throws IOException(Code) | | Write to the stream.
Parameters: out - the output stream Parameters: value - the value to be written. |
toStream | public static void toStream(JspWriter out, Object value) throws IOException(Code) | | Write to the stream.
Parameters: out - the output stream Parameters: value - the value to be written. |
toStreamEscaped | public static void toStreamEscaped(Writer out, Object value) throws IOException(Code) | | Write to the stream.
Parameters: out - the output stream Parameters: value - the value to be written. |
toStreamEscaped | public static void toStreamEscaped(WriteStream out, Object value) throws IOException(Code) | | Write to the stream escaping XML reserved characters.
Parameters: out - the output stream. Parameters: value - the value to be converted. |
toStreamEscaped | public static void toStreamEscaped(Writer out, Reader in) throws IOException(Code) | | Write to the stream escaping XML reserved characters.
Parameters: out - the output stream. Parameters: value - the value to be converted. |
toString | public static String toString(Object value, ELContext env)(Code) | | Converts some unknown value to a string.
Parameters: value - the value to be converted. the string-converted value. |
toString | public static String toString(long value, ELContext env)(Code) | | Converts some unknown value to a string.
Parameters: value - the value to be converted. the string-converted value. |
toString | public static String toString(double value, ELContext env)(Code) | | Converts some unknown value to a string.
Parameters: value - the value to be converted. the string-converted value. |
toString | public static String toString(boolean value, ELContext env)(Code) | | Converts some unknown value to a string.
Parameters: value - the value to be converted. the string-converted value. |
toString | public static String toString(char value, ELContext env)(Code) | | Converts some unknown value to a string.
Parameters: value - the value to be converted. the string-converted value. |
toStringWithNull | public static String toStringWithNull(Object value, ELContext env)(Code) | | Converts some unknown value to a string.
Parameters: value - the value to be converted. the string-converted value. |
|
|