Class FlexmarkSpecExampleRenderer

java.lang.Object
com.vladsch.flexmark.test.util.SpecExampleRendererBase
com.vladsch.flexmark.test.util.FlexmarkSpecExampleRenderer
All Implemented Interfaces:
SpecExampleRenderer

public class FlexmarkSpecExampleRenderer extends SpecExampleRendererBase
  • Field Details

    • myIncludedDocument

      @Nullable private @Nullable Node myIncludedDocument
    • myDocument

      @Nullable private @Nullable Node myDocument
    • myParser

      @NotNull private @NotNull IParse myParser
    • myRender

      @NotNull private @NotNull IRender myRender
  • Constructor Details

    • FlexmarkSpecExampleRenderer

      public FlexmarkSpecExampleRenderer(@NotNull @NotNull SpecExample example, @Nullable @Nullable DataHolder options, @NotNull @NotNull IParse parser, @NotNull @NotNull IRender render)
    • FlexmarkSpecExampleRenderer

      public FlexmarkSpecExampleRenderer(@NotNull @NotNull SpecExample example, @Nullable @Nullable DataHolder options, @NotNull @NotNull IParse parser, @NotNull @NotNull IRender render, boolean includeExampleCoord)
  • Method Details

    • includeDocument

      public void includeDocument(@NotNull @NotNull String includedText)
    • getIncludedDocument

      @NotNull protected @NotNull Node getIncludedDocument()
    • parse

      public void parse(CharSequence input)
    • finalizeDocument

      public void finalizeDocument()
    • adjustParserForInclusion

      protected void adjustParserForInclusion()
    • getDocument

      @NotNull public @NotNull Node getDocument()
    • renderHtml

      @NotNull protected @NotNull String renderHtml()
      Override to customize
      Specified by:
      renderHtml in class SpecExampleRendererBase
      Returns:
      HTML string, will be cached after document is finalized to allow for timing collection iterations,
    • renderAst

      @NotNull protected @NotNull String renderAst()
      Override to customize
      Specified by:
      renderAst in class SpecExampleRendererBase
      Returns:
      HTML string, will be cached after document is finalized to allow for timing collection iterations,
    • finalizeRender

      public void finalizeRender()
      Specified by:
      finalizeRender in interface SpecExampleRenderer
      Overrides:
      finalizeRender in class SpecExampleRendererBase
    • getParser

      @NotNull public final @NotNull IParse getParser()
    • setParser

      public void setParser(@NotNull @NotNull IParse parser)
    • setRender

      public void setRender(@NotNull @NotNull IRender render)
    • getRenderer

      @NotNull public final @NotNull IRender getRenderer()