Class ExtensionRegistry

java.lang.Object
io.pebbletemplates.pebble.extension.ExtensionRegistry

public class ExtensionRegistry extends Object
Storage for the extensions and the components retrieved from the various extensions.

Created by mitch_000 on 2015-11-28.

  • Field Details

    • unaryOperators

      private final Map<String,UnaryOperator> unaryOperators
      Unary operators used during the lexing phase.
    • binaryOperators

      private final Map<String,BinaryOperator> binaryOperators
      Binary operators used during the lexing phase.
    • tokenParsers

      private final Map<String,TokenParser> tokenParsers
      Token parsers used during the parsing phase.
    • nodeVisitors

      private final List<NodeVisitorFactory> nodeVisitors
      Node visitors available during the parsing phase.
    • filters

      private final Map<String,Filter> filters
      Filters used during the evaluation phase.
    • tests

      private final Map<String,Test> tests
      Tests used during the evaluation phase.
    • functions

      private final Map<String,Function> functions
      Functions used during the evaluation phase.
    • globalVariables

      private final Map<String,Object> globalVariables
      Global variables available during the evaluation phase.
    • attributeResolver

      private final List<AttributeResolver> attributeResolver
  • Constructor Details

    • ExtensionRegistry

      public ExtensionRegistry()
    • ExtensionRegistry

      public ExtensionRegistry(Collection<? extends Extension> extensions)
  • Method Details