| Modifier and Type | Field and Description |
|---|---|
static Document |
NULL |
lineSegmentsAST_ADAPTER, EMPTY_SEGMENTS, SPLICE| Constructor and Description |
|---|
Document(com.vladsch.flexmark.util.data.DataHolder options,
com.vladsch.flexmark.util.sequence.BasedSequence chars) |
| Modifier and Type | Method and Description |
|---|---|
@NotNull com.vladsch.flexmark.util.data.DataHolder |
aggregate() |
static @NotNull com.vladsch.flexmark.util.data.DataHolder |
aggregate(@Nullable com.vladsch.flexmark.util.data.DataHolder other,
@Nullable com.vladsch.flexmark.util.data.DataHolder overrides) |
static @NotNull com.vladsch.flexmark.util.data.DataHolder |
aggregateActions(@NotNull com.vladsch.flexmark.util.data.DataHolder other,
@NotNull com.vladsch.flexmark.util.data.DataHolder overrides) |
@NotNull com.vladsch.flexmark.util.data.MutableDataHolder |
clear() |
boolean |
contains(@NotNull com.vladsch.flexmark.util.data.DataKeyBase<?> key) |
@NotNull Map<? extends com.vladsch.flexmark.util.data.DataKeyBase<?>,Object> |
getAll() |
@NotNull Collection<? extends com.vladsch.flexmark.util.data.DataKeyBase<?>> |
getKeys() |
int |
getLineCount() |
int |
getLineNumber(int offset)
Get line number at offset
|
@Nullable Object |
getOrCompute(@NotNull com.vladsch.flexmark.util.data.DataKeyBase<?> key,
@NotNull com.vladsch.flexmark.util.data.DataValueFactory<?> factory) |
@NotNull com.vladsch.flexmark.util.sequence.BasedSequence[] |
getSegments() |
static com.vladsch.flexmark.util.data.MutableDataSet |
merge(com.vladsch.flexmark.util.data.DataHolder... dataHolders) |
@NotNull com.vladsch.flexmark.util.data.MutableDataSet |
remove(@NotNull com.vladsch.flexmark.util.data.DataKeyBase<?> key) |
<T> @NotNull com.vladsch.flexmark.util.data.MutableDataHolder |
set(@NotNull com.vladsch.flexmark.util.data.DataKey<T> key,
T value) |
<T> @NotNull com.vladsch.flexmark.util.data.MutableDataHolder |
set(@NotNull com.vladsch.flexmark.util.data.NullableDataKey<T> key,
T value) |
@NotNull com.vladsch.flexmark.util.data.MutableDataSet |
setAll(@NotNull com.vladsch.flexmark.util.data.DataHolder other) |
@NotNull com.vladsch.flexmark.util.data.MutableDataSet |
setFrom(@NotNull com.vladsch.flexmark.util.data.MutableDataSetter dataSetter) |
@NotNull com.vladsch.flexmark.util.data.MutableDataHolder |
setIn(@NotNull com.vladsch.flexmark.util.data.MutableDataHolder dataHolder) |
@NotNull com.vladsch.flexmark.util.data.MutableDataSet |
toDataSet() |
@NotNull com.vladsch.flexmark.util.data.DataSet |
toImmutable() |
@NotNull com.vladsch.flexmark.util.data.MutableDataSet |
toMutable() |
getContentChars, getContentChars, getContentLines, getContentLines, getLineChars, getSpanningChars, setContent, setContent, setContent, setContentLine, setContentLinesappendChain, appendChild, astChars, astExtraChars, astString, baseSubSequence, baseSubSequence, countAncestorsOfType, countDirectAncestorsOfType, delimitedSegmentSpan, delimitedSegmentSpanChars, endOfLine, extractChainTo, extractToFirstInChain, getAncestorOfType, getAstExtra, getBaseSequence, getBlankLineSibling, getChars, getCharsFromSegments, getChildChars, getChildIterator, getChildOfType, getChildren, getDescendants, getDocument, getEmptyPrefix, getEmptySuffix, getEndLineNumber, getEndOffset, getEndOfLine, getExactChildChars, getFirstChild, getFirstChildAny, getFirstChildAnyNot, getFirstInChain, getGrandParent, getLastBlankLineChild, getLastChild, getLastChildAny, getLastChildAnyNot, getLastInChain, getLeadSegment, getLineColumnAtEnd, getLineNumber, getNext, getNextAny, getNextAnyNot, getNodeName, getNodeOfTypeIndex, getNodeOfTypeIndex, getOldestAncestorOfTypeAfter, getPrevious, getPreviousAny, getPreviousAnyNot, getReversedChildIterator, getReversedChildren, getReversedDescendants, getSegmentsForChars, getSourceRange, getStartLineNumber, getStartOffset, getStartOfLine, getTextLength, getTrailSegment, hasChildren, hasOrMoreChildren, insertAfter, insertBefore, insertChainAfter, insertChainBefore, isOrDescendantOfType, lineColumnAtIndex, lineColumnAtStart, moveTrailingBlankLines, prependChild, removeChildren, segmentSpan, segmentSpan, segmentSpanChars, segmentSpanChars, segmentSpanChars, segmentSpanCharsToVisible, setChars, setCharsFromContent, setCharsFromContentOnly, setCharsFromSegments, spanningChars, startOfLine, takeChildren, toAstString, toSegmentSpan, toString, toStringAttributes, unlinkpublic static final Document NULL
public Document(com.vladsch.flexmark.util.data.DataHolder options,
com.vladsch.flexmark.util.sequence.BasedSequence chars)
@NotNull public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence[] getSegments()
getSegments in class Node@NotNull public @NotNull com.vladsch.flexmark.util.data.MutableDataHolder clear()
clear in interface com.vladsch.flexmark.util.data.MutableDataHolder@NotNull
public <T> @NotNull com.vladsch.flexmark.util.data.MutableDataHolder set(@NotNull
@NotNull com.vladsch.flexmark.util.data.DataKey<T> key,
@NotNull
T value)
set in interface com.vladsch.flexmark.util.data.MutableDataHolder@NotNull
public <T> @NotNull com.vladsch.flexmark.util.data.MutableDataHolder set(@NotNull
@NotNull com.vladsch.flexmark.util.data.NullableDataKey<T> key,
@Nullable
T value)
set in interface com.vladsch.flexmark.util.data.MutableDataHolder@NotNull
public @NotNull com.vladsch.flexmark.util.data.MutableDataSet setFrom(@NotNull
@NotNull com.vladsch.flexmark.util.data.MutableDataSetter dataSetter)
setFrom in interface com.vladsch.flexmark.util.data.MutableDataHolder@NotNull
public @NotNull com.vladsch.flexmark.util.data.MutableDataSet setAll(@NotNull
@NotNull com.vladsch.flexmark.util.data.DataHolder other)
setAll in interface com.vladsch.flexmark.util.data.MutableDataHolderpublic static com.vladsch.flexmark.util.data.MutableDataSet merge(com.vladsch.flexmark.util.data.DataHolder... dataHolders)
@NotNull
public @NotNull com.vladsch.flexmark.util.data.MutableDataHolder setIn(@NotNull
@NotNull com.vladsch.flexmark.util.data.MutableDataHolder dataHolder)
setIn in interface com.vladsch.flexmark.util.data.DataHoldersetIn in interface com.vladsch.flexmark.util.data.MutableDataHoldersetIn in interface com.vladsch.flexmark.util.data.MutableDataSetter@NotNull
public @NotNull com.vladsch.flexmark.util.data.MutableDataSet remove(@NotNull
@NotNull com.vladsch.flexmark.util.data.DataKeyBase<?> key)
remove in interface com.vladsch.flexmark.util.data.MutableDataHolder@Nullable public @Nullable Object getOrCompute(@NotNull @NotNull com.vladsch.flexmark.util.data.DataKeyBase<?> key, @NotNull @NotNull com.vladsch.flexmark.util.data.DataValueFactory<?> factory)
getOrCompute in interface com.vladsch.flexmark.util.data.DataHoldergetOrCompute in interface com.vladsch.flexmark.util.data.MutableDataHolder@NotNull public @NotNull com.vladsch.flexmark.util.data.MutableDataSet toMutable()
toMutable in interface com.vladsch.flexmark.util.data.DataHolder@NotNull public @NotNull com.vladsch.flexmark.util.data.DataSet toImmutable()
toImmutable in interface com.vladsch.flexmark.util.data.DataHolder@NotNull public @NotNull com.vladsch.flexmark.util.data.MutableDataSet toDataSet()
toDataSet in interface com.vladsch.flexmark.util.data.DataHolder@NotNull
public static @NotNull com.vladsch.flexmark.util.data.DataHolder aggregateActions(@NotNull
@NotNull com.vladsch.flexmark.util.data.DataHolder other,
@NotNull
@NotNull com.vladsch.flexmark.util.data.DataHolder overrides)
@NotNull public @NotNull com.vladsch.flexmark.util.data.DataHolder aggregate()
@NotNull
public static @NotNull com.vladsch.flexmark.util.data.DataHolder aggregate(@Nullable
@Nullable com.vladsch.flexmark.util.data.DataHolder other,
@Nullable
@Nullable com.vladsch.flexmark.util.data.DataHolder overrides)
@NotNull public @NotNull Map<? extends com.vladsch.flexmark.util.data.DataKeyBase<?>,Object> getAll()
getAll in interface com.vladsch.flexmark.util.data.DataHolder@NotNull public @NotNull Collection<? extends com.vladsch.flexmark.util.data.DataKeyBase<?>> getKeys()
getKeys in interface com.vladsch.flexmark.util.data.DataHolderpublic boolean contains(@NotNull
@NotNull com.vladsch.flexmark.util.data.DataKeyBase<?> key)
contains in interface com.vladsch.flexmark.util.data.DataHolderpublic int getLineCount()
getLineCount in interface ContentgetLineCount in class ContentNodepublic int getLineNumber(int offset)
Next line starts after the EOL sequence. offsets between \r and \n are considered part of the same line as offset before \r.
offset - offset in document textCopyright © 2020. All rights reserved.