Class SpecReader
java.lang.Object
com.vladsch.flexmark.test.util.spec.SpecReader
- Direct Known Subclasses:
DumpSpecReader
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected StringBuilderprotected StringBuilderprotected intprotected final booleanprotected intstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected intprotected final List<SpecExample> protected StringBuilderprotected final @NotNull InputStreamprotected intprotected intstatic final Stringstatic final Patternstatic final Stringprotected Stringprotected final @NotNull ResourceLocationprotected Stringstatic final Stringprotected static final Patternstatic final Stringprotected final String[]protected StringBuilderprotected SpecReader.State -
Constructor Summary
ConstructorsConstructorDescriptionSpecReader(@NotNull InputStream stream, @NotNull ResourceLocation location, boolean compoundSections) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddSpecExample(@NotNull SpecExample example) protected voidaddSpecLine(String line, boolean isSpecExampleOpen) static @NotNull SpecReadercreate(@NotNull ResourceLocation location, boolean compoundSections) static <S extends SpecReader>
Screate(@NotNull ResourceLocation location, @NotNull SpecReaderFactory<S> readerFactory) static @NotNull SpecReadercreateAndReadExamples(@NotNull ResourceLocation location, boolean compoundSections) static <S extends SpecReader>
ScreateAndReadExamples(@NotNull ResourceLocation location, @NotNull SpecReaderFactory<S> readerFactory) @NotNull List<SpecExample> @NotNull String@NotNull ResourceLocationprotected voidprocessLine(String line) voidprotected void
-
Field Details
-
EXAMPLE_KEYWORD
- See Also:
-
EXAMPLE_BREAK
- See Also:
-
EXAMPLE_START
- See Also:
-
EXAMPLE_START_NBSP
- See Also:
-
EXAMPLE_TEST_BREAK
- See Also:
-
EXAMPLE_TEST_START
- See Also:
-
OPTIONS_KEYWORD
- See Also:
-
OPTIONS_STRING
- See Also:
-
OPTIONS_PATTERN
-
SECTION_BREAK
- See Also:
-
SECTION_TEST_BREAK
- See Also:
-
SECTION_PATTERN
-
inputStream
-
resourceLocation
-
compoundSections
protected final boolean compoundSections -
examples
-
sections
-
lastSectionLevel
protected int lastSectionLevel -
state
-
section
-
optionsSet
-
source
-
html
-
ast
-
comment
-
exampleNumber
protected int exampleNumber -
lineNumber
protected int lineNumber -
contentLineNumber
protected int contentLineNumber -
commentLineNumber
protected int commentLineNumber
-
-
Constructor Details
-
SpecReader
public SpecReader(@NotNull @NotNull InputStream stream, @NotNull @NotNull ResourceLocation location, boolean compoundSections)
-
-
Method Details
-
getFileUrl
-
getResourceLocation
-
getExamples
-
getExamplesSourceAsString
-
create
@NotNull public static @NotNull SpecReader create(@NotNull @NotNull ResourceLocation location, boolean compoundSections) -
create
@NotNull public static <S extends SpecReader> S create(@NotNull @NotNull ResourceLocation location, @NotNull @NotNull SpecReaderFactory<S> readerFactory) -
createAndReadExamples
@NotNull public static @NotNull SpecReader createAndReadExamples(@NotNull @NotNull ResourceLocation location, boolean compoundSections) -
createAndReadExamples
@NotNull public static <S extends SpecReader> S createAndReadExamples(@NotNull @NotNull ResourceLocation location, @NotNull @NotNull SpecReaderFactory<S> readerFactory) -
readExamples
public void readExamples() -
addSpecLine
-
addSpecExample
-
processLine
-
resetContents
protected void resetContents()
-