com.lyncode.jtwig.tree.expressions
Class FunctionElement
java.lang.Object
com.lyncode.jtwig.tree.expressions.FunctionElement
- All Implemented Interfaces:
- Element, Expression
public class FunctionElement
- extends Object
- implements Element, Expression
FunctionElement
public FunctionElement(String name,
Expression argument)
FunctionElement
public FunctionElement(String name)
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.