public class ConstantEnum extends ConstantExpression
Constructor and Description |
---|
ConstantEnum(Class<?> type,
Object value)
Creates a new instance representing the given class and enum constant.
|
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 |
toString() |
copy, isConstant, propagateVisitor, reduce
public Object eval(LocalRenderContext ctx)
Expression
ctx
- the current rendering contextpublic Class<?> getType()
Expression
Copyright © 2018. All rights reserved.