Class FunctionOrMacroInvocationExpression
java.lang.Object
io.pebbletemplates.pebble.node.expression.FunctionOrMacroInvocationExpression
- All Implemented Interfaces:
Expression<Object>,Node
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArgumentsNodeprivate final Stringprivate final int -
Constructor Summary
ConstructorsConstructorDescriptionFunctionOrMacroInvocationExpression(String functionName, ArgumentsNode arguments, int lineNumber) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(NodeVisitor visitor) private ObjectapplyFunction(PebbleTemplateImpl self, EvaluationContextImpl context, Function function, ArgumentsNode args) evaluate(PebbleTemplateImpl self, EvaluationContextImpl context) intReturns the line number on which the expression is defined on.toString()
-
Field Details
-
functionName
-
args
-
lineNumber
private final int lineNumber
-
-
Constructor Details
-
FunctionOrMacroInvocationExpression
public FunctionOrMacroInvocationExpression(String functionName, ArgumentsNode arguments, int lineNumber)
-
-
Method Details
-
evaluate
- Specified by:
evaluatein interfaceExpression<Object>
-
applyFunction
private Object applyFunction(PebbleTemplateImpl self, EvaluationContextImpl context, Function function, ArgumentsNode args) -
accept
-
getFunctionName
-
getArguments
-
getLineNumber
public int getLineNumber()Description copied from interface:ExpressionReturns the line number on which the expression is defined on.- Specified by:
getLineNumberin interfaceExpression<Object>- Returns:
- the line number on which the expression is defined on.
-
toString
-