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, reducepublic ConstantClass(Class<?> type)
type - the class to representpublic Object eval(LocalRenderContext ctx)
Expressionctx - the current rendering contextpublic Class<?> getType()
ExpressionCopyright © 2018. All rights reserved.