|
||||||||||
| 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.StringLiteral
public class StringLiteral
Represents a string literal expression
| Field Summary |
|---|
| Fields inherited from class com.caucho.el.Expr |
|---|
L, log |
| Constructor Summary | |
|---|---|
StringLiteral(java.lang.String value)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true for equal strings. |
java.lang.String |
evalString(ELContext env)
Evaluate the expr as a string |
MethodInfo |
getMethodInfo(ELContext env,
java.lang.Class<?> returnType,
java.lang.Class<?>[] argTypes)
Evaluates the expression, returning an object. |
java.lang.String |
getValue()
Returns the value of the literal. |
java.lang.Object |
getValue(ELContext env)
Evaluate the expr as 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 |
print(WriteStream out,
ELContext env,
boolean isEscape)
Evalutes directly to the output. |
void |
printCreate(WriteStream os)
Prints the code to create an LongLiteral. |
java.lang.String |
toString()
Returns a printable version. |
| Methods inherited from class com.caucho.el.Expr |
|---|
coerceToType, createField, createField, createMethod, error, evalBigDecimal, evalBigInteger, evalBoolean, evalCharacter, evalDouble, evalLong, evalObject, evalPeriod, evalStringWithNull, getExpectedType, getExpressionString, getType, hashCode, invocationError, isDouble, isDoubleString, isReadOnly, print, printEscaped, printEscapedString, setProperty, setValue, 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 StringLiteral(java.lang.String value)
| Method Detail |
|---|
public boolean isConstant()
isConstant in class Exprpublic boolean isLiteralText()
isLiteralText in class Expr
public MethodInfo getMethodInfo(ELContext env,
java.lang.Class<?> returnType,
java.lang.Class<?>[] argTypes)
throws ELException
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
invoke in class Exprenv - the variable environment
ELExceptionpublic java.lang.String getValue()
public java.lang.Object getValue(ELContext env)
throws ELException
getValue in class Exprenv - the variable environment
ELException
public java.lang.String evalString(ELContext env)
throws ELException
evalString in class Exprenv - the variable environment
ELException
public boolean print(WriteStream out,
ELContext env,
boolean isEscape)
throws java.io.IOException,
ELException
print in class Exprout - the output writerenv - the variable environmentisEscape - if true, escape reserved XML
java.io.IOException
ELException
public void printCreate(WriteStream os)
throws java.io.IOException
printCreate in class Expros - the stream to the *.java page
java.io.IOExceptionpublic boolean equals(java.lang.Object o)
equals in class Exprpublic java.lang.String toString()
toString in class Expr
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||