|
||||||||||
| 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.DoubleLiteral
public class DoubleLiteral
Represents a double literal expression.
| Field Summary |
|---|
| Fields inherited from class com.caucho.el.Expr |
|---|
L, log |
| Constructor Summary | |
|---|---|
DoubleLiteral(double value)
Create a new double literal. |
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object o)
Returns true for equal longs. |
double |
evalDouble(ELContext env)
Evaluate the expression as an object as a double |
long |
evalLong(ELContext env)
Evaluate the expression as an object as a long. |
java.lang.Object |
getValue(ELContext env)
Evaluate the expression as an object. |
boolean |
isConstant()
Returns true if the expression is constant. |
boolean |
print(JspWriter out,
ELContext env,
boolean escapeXml)
Evaluates directly to the output. |
void |
printCreate(WriteStream os)
Prints the *.java code to create an DoubleLiteral. |
java.lang.String |
toString()
Returns a readable representation of the expr. |
| Methods inherited from class com.caucho.el.Expr |
|---|
coerceToType, createField, createField, createMethod, error, evalBigDecimal, evalBigInteger, evalBoolean, evalCharacter, evalObject, evalPeriod, evalString, evalStringWithNull, getExpectedType, getExpressionString, getMethodInfo, getType, hashCode, invocationError, invoke, isDouble, isDoubleString, isLiteralText, isReadOnly, print, printEscaped, printEscapedString, setProperty, setValue, toBigDecimal, toBigInteger, toBoolean, toCharacter, toDouble, 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 DoubleLiteral(double value)
| Method Detail |
|---|
public boolean isConstant()
isConstant in class Expr
public java.lang.Object getValue(ELContext env)
throws ELException
getValue in class Exprenv - the variable environment
ELException
public long evalLong(ELContext env)
throws ELException
evalLong in class Exprenv - the variable environment
ELException
public double evalDouble(ELContext env)
throws ELException
evalDouble in class Exprenv - the variable environment
ELException
public boolean print(JspWriter out,
ELContext env,
boolean escapeXml)
throws java.io.IOException,
ELException
print in class Exprout - the output writerenv - the variable environmentescapeXml - 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 generated *.java
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 | |||||||||