Class ArgumentsNode
java.lang.Object
io.pebbletemplates.pebble.node.ArgumentsNode
- All Implemented Interfaces:
Node
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final intprivate final List<NamedArgumentNode> private final List<PositionalArgumentNode> -
Constructor Summary
ConstructorsConstructorDescriptionArgumentsNode(List<PositionalArgumentNode> positionalArgs, List<NamedArgumentNode> namedArgs, int lineNumber) -
Method Summary
Modifier and TypeMethodDescriptionvoidaccept(NodeVisitor visitor) getArgumentMap(PebbleTemplateImpl self, EvaluationContextImpl context, NamedArguments invocableWithNamedArguments) Using hints from the filter/function/test/macro it will convert an ArgumentMap (which holds both positional and named arguments) into a regular Map that the filter/function/test/macro is expecting.toString()
-
Field Details
-
namedArgs
-
positionalArgs
-
lineNumber
private final int lineNumber
-
-
Constructor Details
-
ArgumentsNode
public ArgumentsNode(List<PositionalArgumentNode> positionalArgs, List<NamedArgumentNode> namedArgs, int lineNumber)
-
-
Method Details
-
accept
-
getNamedArgs
-
getPositionalArgs
-
getArgumentMap
public Map<String,Object> getArgumentMap(PebbleTemplateImpl self, EvaluationContextImpl context, NamedArguments invocableWithNamedArguments) Using hints from the filter/function/test/macro it will convert an ArgumentMap (which holds both positional and named arguments) into a regular Map that the filter/function/test/macro is expecting.- Parameters:
self- The template implementationcontext- The evaluation contextinvocableWithNamedArguments- The named arguments object- Returns:
- Returns a map representaion of the arguments
-
toString
-