public class InterpolateExpr extends Expr
Constructor and Description |
---|
InterpolateExpr(Expr left,
Expr right)
Create a new interpolation expression.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Returns true for equal strings.
|
java.lang.String |
evalString(ELContext env)
Evaluate the expression as an object.
|
java.lang.Object |
getValue(ELContext env)
Evaluate the expression as an object.
|
boolean |
isConstant()
Returns true if this is a constant expression.
|
boolean |
print(WriteStream out,
ELContext env,
boolean escapeXml)
Prints the interpolated value directly to the output.
|
void |
printCreate(WriteStream os)
Prints the code to create an LongLiteral.
|
java.lang.String |
toString() |
coerceToType, createField, createField, createMethod, error, evalBigDecimal, evalBigInteger, evalBoolean, evalCharacter, evalDouble, evalLong, evalObject, evalPeriod, evalStringWithNull, getExpectedType, getExpressionString, getMethodInfo, getType, hashCode, invocationError, invoke, isDouble, isDoubleString, isLiteralText, isReadOnly, print, printEscaped, printEscapedString, setProperty, setValue, toBigDecimal, toBigInteger, toBoolean, toCharacter, toClass, toDouble, toEnum, toLong, toStream, toStream, toStream, toStreamEscaped, toStreamEscaped, toStreamEscaped, toString, toString, toString, toString, toString, toStringWithNull
getValueReference
public boolean isConstant()
isConstant
in class Expr
public java.lang.Object getValue(ELContext env) throws ELException
getValue
in class Expr
env
- the variable environmentELException
public java.lang.String evalString(ELContext env) throws ELException
evalString
in class Expr
env
- the variable environmentELException
public boolean print(WriteStream out, ELContext env, boolean escapeXml) throws java.io.IOException, ELException
print
in class Expr
out
- the output streamenv
- the variable environmentescapeXml
- if true, then escape the outputjava.io.IOException
ELException
public void printCreate(WriteStream os) throws java.io.IOException
printCreate
in class Expr
os
- the stream to the *.java pagejava.io.IOException