Class ExtensionRegistry
java.lang.Object
io.pebbletemplates.pebble.extension.ExtensionRegistry
Storage for the extensions and the components retrieved from the various extensions.
Created by mitch_000 on 2015-11-28.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<AttributeResolver> private final Map
<String, BinaryOperator> Binary operators used during the lexing phase.Filters used during the evaluation phase.Functions used during the evaluation phase.Global variables available during the evaluation phase.private final List
<NodeVisitorFactory> Node visitors available during the parsing phase.Tests used during the evaluation phase.private final Map
<String, TokenParser> Token parsers used during the parsing phase.private final Map
<String, UnaryOperator> Unary operators used during the lexing phase. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addExtension
(Extension extension) private void
addExtension
(Extension extension, boolean operatorOverriding) void
addOperatorOverridingExtension
(Extension extension) getFunction
(String name)
-
Field Details
-
unaryOperators
Unary operators used during the lexing phase. -
binaryOperators
Binary operators used during the lexing phase. -
tokenParsers
Token parsers used during the parsing phase. -
nodeVisitors
Node visitors available during the parsing phase. -
filters
Filters used during the evaluation phase. -
tests
Tests used during the evaluation phase. -
functions
Functions used during the evaluation phase. -
globalVariables
Global variables available during the evaluation phase. -
attributeResolver
-
-
Constructor Details
-
ExtensionRegistry
public ExtensionRegistry() -
ExtensionRegistry
-
-
Method Details
-
addOperatorOverridingExtension
-
addExtension
-
addExtension
-
getFilter
-
getTest
-
getFunction
-
getBinaryOperators
-
getUnaryOperators
-
getNodeVisitors
-
getGlobalVariables
-
getTokenParsers
-
getAttributeResolver
-