Fork me on GitHub

ArgumentsNode

In package com.mitchellbosecke.pebble.node

public class ArgumentsNode extends Object implements Node

Constructors

public ArgumentsNode(List<PositionalArgumentNode> positionalArgs, List<NamedArgumentNode> namedArgs, int lineNumber)
Parameters:

Methods

public void accept(NodeVisitor visitor)
Parameters:
public List<NamedArgumentNode> getNamedArgs()
Parameters:
  • No parameters
public List<PositionalArgumentNode> getPositionalArgs()
Parameters:
  • No parameters
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:
public String toString()
Parameters:
  • No parameters