Class IParseBase
java.lang.Object
com.vladsch.flexmark.test.util.spec.IParseBase
- All Implemented Interfaces:
IParse
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable DataHolder
Get Options for parsing@NotNull Node
Parse the specified input text into a tree of nodes.@NotNull Node
parseReader
(@NotNull Reader input) Parse the specified reader into a tree of nodes.boolean
transferReferences
(@NotNull Document document, @NotNull Document included, Boolean onlyIfUndefined) Transfer reference definition between documents
-
Field Details
-
myOptions
-
-
Constructor Details
-
IParseBase
public IParseBase() -
IParseBase
-
-
Method Details
-
parse
Description copied from interface:IParse
Parse the specified input text into a tree of nodes.Note that this method is thread-safe (a new parser state is used for each invocation).
-
transferReferences
public boolean transferReferences(@NotNull @NotNull Document document, @NotNull @NotNull Document included, Boolean onlyIfUndefined) Description copied from interface:IParse
Transfer reference definition between documents- Specified by:
transferReferences
in interfaceIParse
- Parameters:
document
- destination documentincluded
- source documentonlyIfUndefined
- true if only should transfer references not already defined in the destination document, false to transfer all, null to use repository's KEEP_TYPE to make the determination (if KEEP_FIRST then only transfer if undefined,- Returns:
- true if any references were transferred
-
parseReader
Description copied from interface:IParse
Parse the specified reader into a tree of nodes. The caller is responsible for closing the reader.Note that this method is thread-safe (a new parser state is used for each invocation).
- Specified by:
parseReader
in interfaceIParse
- Parameters:
input
- the reader to parse- Returns:
- the root node
- Throws:
IOException
- when reading throws an exception
-
getOptions
Description copied from interface:IParse
Get Options for parsing- Specified by:
getOptions
in interfaceIParse
- Returns:
- DataHolder for options
-