public class ConstantString extends ConstantExpression
Modifier and Type | Field and Description |
---|---|
static ConstantString |
EMPTY_STRING
Represents "" as expression.
|
Constructor and Description |
---|
ConstantString(String value)
Creates a new instance representing the given string.
|
Modifier and Type | Method and Description |
---|---|
Object |
eval(LocalRenderContext ctx)
Evaluates the expression into an object using the given context.
|
Class<?> |
getType()
Returns the Java class of the objects yielded by this expression.
|
String |
getValue()
Returns the string represented by this expression.
|
String |
toString() |
copy, isConstant, propagateVisitor, reduce
public static final ConstantString EMPTY_STRING
public ConstantString(String value)
value
- the string to representpublic Object eval(LocalRenderContext ctx)
Expression
ctx
- the current rendering contextpublic Class<?> getType()
Expression
public String getValue()
Copyright © 2018. All rights reserved.