Package io.pebbletemplates.pebble.node
Class ArgumentsNode
java.lang.Object
io.pebbletemplates.pebble.node.ArgumentsNode
- All Implemented Interfaces:
Node
-
Constructor Summary
ConstructorsConstructorDescriptionArgumentsNode
(List<PositionalArgumentNode> positionalArgs, List<NamedArgumentNode> namedArgs, int lineNumber) -
Method Summary
Modifier and TypeMethodDescriptionvoid
accept
(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()
-
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
-