Class ReferencePreProcessorFactory

java.lang.Object
com.vladsch.flexmark.parser.core.ReferencePreProcessorFactory
All Implemented Interfaces:
ParagraphPreProcessorFactory, Dependent, Function<ParserState,ParagraphPreProcessor>

public class ReferencePreProcessorFactory extends Object implements ParagraphPreProcessorFactory
  • Constructor Details

    • ReferencePreProcessorFactory

      public ReferencePreProcessorFactory()
  • Method Details

    • affectsGlobalScope

      public 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.
    • getAfterDependents

      @Nullable public @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.
    • apply

      public ParagraphPreProcessor apply(ParserState state)
      Description copied from interface: ParagraphPreProcessorFactory
      Create a paragraph pre processor for the document
      Specified by:
      apply in interface Function<ParserState,ParagraphPreProcessor>
      Specified by:
      apply in interface ParagraphPreProcessorFactory
      Parameters:
      state - parser state, document blocks have already been parsed at this stage
      Returns:
      block pre-processor