com.lyncode.jtwig.tree.expressions
Class Constant<T>

java.lang.Object
  extended by com.lyncode.jtwig.tree.expressions.Constant<T>
All Implemented Interfaces:
Expression

public class Constant<T>
extends Object
implements Expression


Constructor Summary
Constant(T value)
           
 
Method Summary
<S> S
as(Class<S> type)
           
 Object calculate(JtwigContext context)
           
 T getValue()
           
 boolean isInstanceOf(Class<?> clazzToTest)
           
 boolean isNull()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Constant

public Constant(T value)
Method Detail

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.