Top Fields Constructors Methods
com.vladsch.flexmark.util.ast

public abstract Class Node

extends Object
Class Inheritance
Known Direct Subclasses
com.vladsch.flexmark.util.ast.ContentNode
Imports
com.vladsch.flexmark.util.collection.iteration.ReversiblePeekingIterable, .ReversiblePeekingIterator, com.vladsch.flexmark.util.misc.Pair, .Utils, com.vladsch.flexmark.util.sequence.BasedSequence, .Range, .SegmentedSequence, com.vladsch.flexmark.util.sequence.builder.SequenceBuilder, com.vladsch.flexmark.util.visitor.AstNode, org.jetbrains.annotations.NotNull, .Nullable, java.util.Arrays

Field Summary

Modifier and TypeField and Description
public static final AstNode<Node>
private @NotNull BasedSequence
public static final BasedSequence[]
pack-priv @Nullable Node
private @Nullable Node
pack-priv @Nullable Node
private @Nullable Node
private @Nullable Node
public static final String

Constructor Summary

AccessConstructor and Description
public
Node()

public

Method Summary

Modifier and TypeMethod and Description
public void
appendChain(@NotNull Node
first child in chain
firstNode
)

Append all from child to end of chain to this node

public void
public static void
public void
public void
astString(@NotNull StringBuilder out, boolean withExtra)

public BasedSequence
baseSubSequence(int startIndex, int endIndex)

public BasedSequence
baseSubSequence(int startIndex)

public int
public int
public static void
public static void
public int
endOfLine(int index)

public void
public void
public @Nullable Node
public void
public BasedSequence
public @NotNull Node
public @NotNull BasedSequence
public @NotNull BasedSequence

Returns:

concatenated string of all segments
getCharsFromSegments
()

Get the char sequence from segments making up the node's characters.

public BasedSequence
public @NotNull ReversiblePeekingIterator<Node>
public @Nullable Node
getChildOfType(@NotNull Class<?>... classes)

public @NotNull ReversiblePeekingIterable<Node>
public @NotNull ReversiblePeekingIterable<Node>
public @NotNull Document
public BasedSequence
public BasedSequence
public int
public int
public int
public BasedSequence
public @Nullable Node
public @Nullable Node
public @Nullable Node
public @NotNull Node
public @Nullable Node
public @Nullable Node

Returns:

return a child block that can contain the parent's last blank line
getLastBlankLineChild
()

Overridden by ListBlock and any others whose children propagate their blank line to parent

public @Nullable Node
public @Nullable Node
public @Nullable Node
public @NotNull Node
public static @NotNull BasedSequence
public Pair<Integer, Integer>
public int
public @Nullable Node
public @Nullable Node
getNextAny(@NotNull Class<?>... classes)

public @Nullable Node
getNextAnyNot(@NotNull Class<?>... classes)

public @NotNull String
public static int
public int
public @Nullable Node
public @Nullable Node
public @Nullable Node
public @Nullable Node
getPreviousAny(@NotNull Class<?>... classes)

public @Nullable Node
public @NotNull ReversiblePeekingIterator<Node>
public @NotNull ReversiblePeekingIterable<Node>
public @NotNull ReversiblePeekingIterable<Node>
public abstract @NotNull BasedSequence[]
public @NotNull BasedSequence[]

Returns:

array of segments
getSegmentsForChars
()

Get the segments making up the node's characters.

public Range
public int
public int
public int
public int
public static @NotNull BasedSequence
public boolean
public boolean
hasOrMoreChildren(int childCount)

public void
public void
insertBefore(Node sibling)

public void
insertChainAfter(@NotNull Node
first child in chain
firstNode
)

Append all from child to end of chain to this node

public void
insertChainBefore(@NotNull Node
first child in chain
firstNode
)

Append all from child to end of chain to this node

public boolean
public Pair<Integer, Integer>
lineColumnAtIndex(int index)

public Pair<Integer, Integer>
public void
public void
public void
public static void
segmentSpan(@NotNull StringBuilder out, int startOffset, int endOffset, @Nullable String name)

public static void
public static void
segmentSpanChars(@NotNull StringBuilder out, int startOffset, int endOffset, @Nullable String name, @NotNull String chars)

public static void
segmentSpanChars(@NotNull StringBuilder out, int startOffset, int endOffset, @Nullable String name, @NotNull String chars1, @NotNull String splice, @NotNull String chars2)

public static void
public static void
public void
public void
public void
public void
setCharsFromSegments()

Set the node's char string from segments making up the node's characters.

protected void
public static @NotNull BasedSequence
public int
startOfLine(int index)

public void
public @NotNull String
toAstString(boolean withExtra)

public static @NotNull String
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

protected @NotNull String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait