| com.caucho.el.Expr com.caucho.el.StringLiteral
StringLiteral | public class StringLiteral extends Expr (Code) | | Represents a string literal expression
|
Method Summary | |
public boolean | equals(Object o) Returns true for equal strings. | public String | evalString(ELContext env) | public MethodInfo | getMethodInfo(ELContext env, Class> returnType, Class>[] argTypes) Evaluates the expression, returning an object. | public String | getValue() Returns the value of the literal. | public Object | getValue(ELContext env) Evaluate the expr as an object. | 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 boolean | isLiteralText() | public boolean | print(WriteStream out, ELContext env, boolean isEscape) Evalutes directly to the output. | public void | printCreate(WriteStream os) Prints the code to create an LongLiteral. | public String | toString() Returns a printable version. |
equals | public boolean equals(Object o)(Code) | | Returns true for equal strings.
|
evalString | public String evalString(ELContext env) throws ELException(Code) | | Evaluate the expr as a string
Parameters: env - the variable environment |
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 |
getValue | public String getValue()(Code) | | Returns the value of the literal.
|
getValue | public Object getValue(ELContext env) throws ELException(Code) | | Evaluate the expr as an object.
Parameters: env - the variable environment |
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.
|
isLiteralText | public boolean isLiteralText()(Code) | | Returns true if the expression is literal text
|
print | public boolean print(WriteStream out, ELContext env, boolean isEscape) throws IOException, ELException(Code) | | Evalutes directly to the output.
|
printCreate | public void printCreate(WriteStream os) throws IOException(Code) | | Prints the code to create an LongLiteral.
|
toString | public String toString()(Code) | | Returns a printable version.
|
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)
|
|
|