In package com.eden.orchid.impl.compilers.pebble.tag

public abstract class BaseTagParser extends Object

public abstract

Fields

Provider contextProvider final

String name final

Constructors

BaseTagParser(Provider<T> contextProvider, String name) public

Parameters:
  • Provider contextProvider
  • String name

Methods

RenderableNode parse(Token token, Parser parser) abstract public

Parameters:
  • Token token
  • Parser parser
void render(PebbleTemplateImpl self, Writer writer, EvaluationContextImpl context) abstract public

Parameters:
  • PebbleTemplateImpl self
  • Writer writer
  • EvaluationContextImpl context
Map<K, V> parseParams(String parameters, Class<T> paramsClass, TokenStream stream, Parser parser) protected

Parameters:
  • String parameters
  • Class paramsClass
  • TokenStream stream
  • Parser parser
Map<K, V> evaluateParams(Map<K, V> paramExpressionMap, PebbleTemplateImpl self, EvaluationContextImpl context) protected

Parameters:
  • Map paramExpressionMap
  • PebbleTemplateImpl self
  • EvaluationContextImpl context
void isParameterEnd(TokenStream stream) protected

Parameters:
  • TokenStream stream
List<E> parseBodyFilters(TokenStream stream, Parser parser) protected

Parameters:
  • TokenStream stream
  • Parser parser
Expression<T> parseBody(List<E> filterInvocationExpressions, String bodyTagName, TokenStream stream, Parser parser) protected

Parameters:
  • List filterInvocationExpressions
  • String bodyTagName
  • TokenStream stream
  • Parser parser
void renderTagContent(PebbleTemplateImpl self, Writer writer, EvaluationContextImpl context, Map<K, V> templateArgs, Consumer<T> onError) protected

Parameters:
  • PebbleTemplateImpl self
  • Writer writer
  • EvaluationContextImpl context
  • Map templateArgs
  • Consumer onError
Consumer<T> unchecked(BaseTagParser.CheckedFunction<I> f) static protected

Type Parameters:
Type Parameters
Parameters: