Class IParseBase
- java.lang.Object
-
- com.vladsch.flexmark.test.util.spec.IParseBase
-
-
Field Summary
Fields Modifier and Type Field Description private DataHoldermyOptions
-
Constructor Summary
Constructors Constructor Description IParseBase()IParseBase(DataHolder options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable DataHoldergetOptions()Get Options for parsing@NotNull Nodeparse(@NotNull java.lang.String input)Parse the specified input text into a tree of nodes.@NotNull NodeparseReader(@NotNull java.io.Reader input)Parse the specified reader into a tree of nodes.booleantransferReferences(@NotNull Document document, @NotNull Document included, java.lang.Boolean onlyIfUndefined)Transfer reference definition between documents
-
-
-
Field Detail
-
myOptions
private final DataHolder myOptions
-
-
Constructor Detail
-
IParseBase
public IParseBase()
-
IParseBase
public IParseBase(DataHolder options)
-
-
Method Detail
-
parse
@NotNull public @NotNull Node parse(@NotNull @NotNull java.lang.String input)
Description copied from interface:IParseParse 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, java.lang.Boolean onlyIfUndefined)Description copied from interface:IParseTransfer reference definition between documents- Specified by:
transferReferencesin 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
@NotNull public @NotNull Node parseReader(@NotNull @NotNull java.io.Reader input) throws java.io.IOException
Description copied from interface:IParseParse 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:
parseReaderin interfaceIParse- Parameters:
input- the reader to parse- Returns:
- the root node
- Throws:
java.io.IOException- when reading throws an exception
-
getOptions
@Nullable public @Nullable DataHolder getOptions()
Description copied from interface:IParseGet Options for parsing- Specified by:
getOptionsin interfaceIParse- Returns:
- DataHolder for options
-
-