public class ConstantClass extends ConstantExpression
Constructor and Description |
---|
ConstantClass(Class<?> type)
Creates a new instance representing the given class.
|
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 ConstantClass(Class<?> type)
type
- the class to representpublic Object eval(LocalRenderContext ctx)
Expression
ctx
- the current rendering contextpublic Class<?> getType()
Expression
Copyright © 2018. All rights reserved.