Class FunctionOrMacroInvocationExpression
java.lang.Object
io.pebbletemplates.pebble.node.expression.FunctionOrMacroInvocationExpression
- All Implemented Interfaces:
Expression<Object>
,Node
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ArgumentsNode
private final String
private final int
-
Constructor Summary
ConstructorsConstructorDescriptionFunctionOrMacroInvocationExpression
(String functionName, ArgumentsNode arguments, int lineNumber) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(NodeVisitor visitor) private Object
applyFunction
(PebbleTemplateImpl self, EvaluationContextImpl context, Function function, ArgumentsNode args) evaluate
(PebbleTemplateImpl self, EvaluationContextImpl context) int
Returns 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:
evaluate
in 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:Expression
Returns the line number on which the expression is defined on.- Specified by:
getLineNumber
in interfaceExpression<Object>
- Returns:
- the line number on which the expression is defined on.
-
toString
-