com.lyncode.jtwig.tree.expressions
Class Constant<T>
java.lang.Object
com.lyncode.jtwig.tree.expressions.Constant<T>
- All Implemented Interfaces:
- Expression
public class Constant<T>
- extends Object
- implements Expression
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constant
public Constant(T value)
getValue
public T getValue()
isInstanceOf
public boolean isInstanceOf(Class<?> clazzToTest)
as
public <S> S as(Class<S> type)
isNull
public boolean isNull()
calculate
public Object calculate(JtwigContext context)
throws CalculateException
- Specified by:
calculate in interface Expression
- Throws:
CalculateException
Copyright © 2014. All Rights Reserved.