Class DelegatingNodeRendererFactoryWrapper

java.lang.Object
com.vladsch.flexmark.html.DelegatingNodeRendererFactoryWrapper
All Implemented Interfaces:
DelegatingNodeRendererFactory, NodeRendererFactory, Dependent, Function<DataHolder,NodeRenderer>

class DelegatingNodeRendererFactoryWrapper extends Object implements Function<DataHolder,NodeRenderer>, Dependent, DelegatingNodeRendererFactory
Factory for instantiating new node renderers with dependencies
  • Field Details

  • Constructor Details

  • Method Details

    • apply

      @NotNull public @NotNull NodeRenderer apply(@NotNull @NotNull DataHolder options)
      Description copied from interface: NodeRendererFactory
      Create a new node renderer for the specified rendering context.
      Specified by:
      apply in interface Function<DataHolder,NodeRenderer>
      Specified by:
      apply in interface NodeRendererFactory
      Parameters:
      options - the context for rendering (normally passed on to the node renderer)
      Returns:
      a node renderer
    • getFactory

      @NotNull public @NotNull NodeRendererFactory getFactory()
    • getDelegates

      @Nullable public @Nullable Set<Class<?>> getDelegates()
      Description copied from interface: DelegatingNodeRendererFactory
      List of renderer factories to which this factory's renderer may delegate rendering
      Specified by:
      getDelegates in interface DelegatingNodeRendererFactory
      Returns:
      list of renderer factories
    • getAfterDependents

      @Nullable public final @Nullable Set<Class<?>> getAfterDependents()
      Specified by:
      getAfterDependents in interface Dependent
      Returns:
      null or a list of dependents that must be executed before calling this one if any of the blocks in the list affect global state then these will be run on ALL blocks of the document before this preprocessor is called.
    • getBeforeDependents

      @Nullable public @Nullable Set<Class<?>> getBeforeDependents()
      Specified by:
      getBeforeDependents in interface Dependent
      Returns:
      null or a list of dependents that must be executed after calling this one if any of the blocks in the list affect global state then these will be run on ALL blocks of the document before this preprocessor is called.
    • affectsGlobalScope

      public final boolean affectsGlobalScope()
      Specified by:
      affectsGlobalScope in interface Dependent
      Returns:
      true if this dependent affects the global scope, which means that any that depend on it have to be run after this dependent has run against all elements. Otherwise, the dependent can run on an element after its dependents have processed an element. parsed.