Package com.vladsch.flexmark.test.util
Class SpecExampleRendererBase
java.lang.Object
com.vladsch.flexmark.test.util.SpecExampleRendererBase
- All Implemented Interfaces:
SpecExampleRenderer
- Direct Known Subclasses:
FlexmarkSpecExampleRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final @NotNull SpecExample
protected final boolean
private boolean
protected final @NotNull DataHolder
private @Nullable String
private @Nullable String
Fields inherited from interface com.vladsch.flexmark.test.util.SpecExampleRenderer
NULL
-
Constructor Summary
ConstructorsConstructorDescriptionSpecExampleRendererBase
(@NotNull SpecExample example, @Nullable DataHolder options) SpecExampleRendererBase
(@NotNull SpecExample example, @Nullable DataHolder options, boolean includeExampleInfo) -
Method Summary
Modifier and TypeMethodDescriptionvoid
final @NotNull String
getAst()
@NotNull SpecExample
final @NotNull String
getHtml()
@NotNull DataHolder
boolean
boolean
protected abstract @NotNull String
protected abstract @NotNull String
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.vladsch.flexmark.test.util.SpecExampleRenderer
finalizeDocument, includeDocument, parse
-
Field Details
-
myExample
-
myOptions
-
myIncludeExampleInfo
protected final boolean myIncludeExampleInfo -
myIsFinalized
private boolean myIsFinalized -
myRenderedHtml
-
myRenderedAst
-
-
Constructor Details
-
SpecExampleRendererBase
public SpecExampleRendererBase(@NotNull @NotNull SpecExample example, @Nullable @Nullable DataHolder options) -
SpecExampleRendererBase
public SpecExampleRendererBase(@NotNull @NotNull SpecExample example, @Nullable @Nullable DataHolder options, boolean includeExampleInfo)
-
-
Method Details
-
isFinalized
public boolean isFinalized() -
getHtml
- Specified by:
getHtml
in interfaceSpecExampleRenderer
-
getAst
- Specified by:
getAst
in interfaceSpecExampleRenderer
-
renderHtml
-
renderAst
-
finalizeRender
public void finalizeRender()- Specified by:
finalizeRender
in interfaceSpecExampleRenderer
-
includeExampleInfo
public boolean includeExampleInfo()- Specified by:
includeExampleInfo
in interfaceSpecExampleRenderer
-
getExample
- Specified by:
getExample
in interfaceSpecExampleRenderer
-
getOptions
- Specified by:
getOptions
in interfaceSpecExampleRenderer
-