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 StringBuilder
protected StringBuilder
protected int
protected final boolean
protected int
static final String
static final String
static final String
static final String
static final String
static final String
protected int
protected final List
<SpecExample> protected StringBuilder
protected final @NotNull InputStream
protected int
protected int
static final String
static final Pattern
static final String
protected String
protected final @NotNull ResourceLocation
protected String
static final String
protected static final Pattern
static final String
protected final String[]
protected StringBuilder
protected SpecReader.State
-
Constructor Summary
ConstructorsConstructorDescriptionSpecReader
(@NotNull InputStream stream, @NotNull ResourceLocation location, boolean compoundSections) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addSpecExample
(@NotNull SpecExample example) protected void
addSpecLine
(String line, boolean isSpecExampleOpen) static @NotNull SpecReader
create
(@NotNull ResourceLocation location, boolean compoundSections) static <S extends SpecReader>
Screate
(@NotNull ResourceLocation location, @NotNull SpecReaderFactory<S> readerFactory) static @NotNull SpecReader
createAndReadExamples
(@NotNull ResourceLocation location, boolean compoundSections) static <S extends SpecReader>
ScreateAndReadExamples
(@NotNull ResourceLocation location, @NotNull SpecReaderFactory<S> readerFactory) @NotNull List
<SpecExample> @NotNull String
@NotNull ResourceLocation
protected void
processLine
(String line) void
protected 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()
-