Package com.vladsch.flexmark.test.util
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 Summary
Fields Modifier and Type Field Description private @Nullable NodemyDocumentprivate @Nullable NodemyIncludedDocumentprivate @NotNull IParsemyParserprivate @NotNull IRendermyRender-
Fields inherited from class com.vladsch.flexmark.test.util.SpecExampleRendererBase
myExample, myIncludeExampleInfo, myOptions
-
Fields inherited from interface com.vladsch.flexmark.test.util.SpecExampleRenderer
NULL
-
-
Constructor Summary
Constructors Constructor Description FlexmarkSpecExampleRenderer(@NotNull SpecExample example, @Nullable DataHolder options, @NotNull IParse parser, @NotNull IRender render)FlexmarkSpecExampleRenderer(@NotNull SpecExample example, @Nullable DataHolder options, @NotNull IParse parser, @NotNull IRender render, boolean includeExampleCoord)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidadjustParserForInclusion()voidfinalizeDocument()voidfinalizeRender()@NotNull NodegetDocument()protected @NotNull NodegetIncludedDocument()@NotNull IParsegetParser()@NotNull IRendergetRenderer()voidincludeDocument(@NotNull java.lang.String includedText)voidparse(java.lang.CharSequence input)protected @NotNull java.lang.StringrenderAst()Override to customizeprotected @NotNull java.lang.StringrenderHtml()Override to customizevoidsetParser(@NotNull IParse parser)voidsetRender(@NotNull IRender render)-
Methods inherited from class com.vladsch.flexmark.test.util.SpecExampleRendererBase
getAst, getExample, getHtml, getOptions, includeExampleInfo, isFinalized
-
-
-
-
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:
renderHtmlin classSpecExampleRendererBase- 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:
renderAstin classSpecExampleRendererBase- Returns:
- HTML string, will be cached after document is finalized to allow for timing collection iterations,
-
finalizeRender
public void finalizeRender()
- Specified by:
finalizeRenderin interfaceSpecExampleRenderer- Overrides:
finalizeRenderin classSpecExampleRendererBase
-
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()
-
-