com.lyncode.jtwig.tree.expressions
Class FunctionElement

java.lang.Object
  extended by com.lyncode.jtwig.tree.expressions.FunctionElement
All Implemented Interfaces:
Element, Expression

public class FunctionElement
extends Object
implements Element, Expression


Constructor Summary
FunctionElement(String name)
           
FunctionElement(String name, Expression argument)
           
 
Method Summary
 boolean add(Expression argument)
           
 Object calculate(JtwigContext context)
           
 ValueList getArguments()
           
 String getName()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

FunctionElement

public FunctionElement(String name,
                       Expression argument)

FunctionElement

public FunctionElement(String name)
Method Detail

add

public boolean add(Expression argument)

getName

public String getName()

getArguments

public ValueList getArguments()

toString

public String toString()
Overrides:
toString in class Object

calculate

public Object calculate(JtwigContext context)
                 throws CalculateException
Specified by:
calculate in interface Expression
Throws:
CalculateException


Copyright © 2014. All Rights Reserved.