Class ArgumentsNode

java.lang.Object
io.pebbletemplates.pebble.node.ArgumentsNode
All Implemented Interfaces:
Node

public class ArgumentsNode extends Object implements Node
  • Constructor Details

  • Method Details

    • accept

      public void accept(NodeVisitor visitor)
      Specified by:
      accept in interface Node
    • getNamedArgs

      public List<NamedArgumentNode> getNamedArgs()
    • getPositionalArgs

      public List<PositionalArgumentNode> 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 implementation
      context - The evaluation context
      invocableWithNamedArguments - The named arguments object
      Returns:
      Returns a map representaion of the arguments
    • toString

      public String toString()
      Overrides:
      toString in class Object