Class FlexmarkSpecExampleRenderer

    • Field Detail

      • 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 Detail

      • 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 Detail

      • includeDocument

        public void includeDocument​(@NotNull
                                    @NotNull java.lang.String includedText)
      • getIncludedDocument

        @NotNull
        protected @NotNull Node getIncludedDocument()
      • parse

        public void parse​(java.lang.CharSequence input)
      • finalizeDocument

        public void finalizeDocument()
      • adjustParserForInclusion

        protected void adjustParserForInclusion()
      • getDocument

        @NotNull
        public @NotNull Node getDocument()
      • renderHtml

        @NotNull
        protected @NotNull java.lang.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 java.lang.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,
      • 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()