Class AdmonitionBlock
java.lang.Object
com.vladsch.flexmark.util.ast.Node
com.vladsch.flexmark.util.ast.ContentNode
com.vladsch.flexmark.util.ast.Block
com.vladsch.flexmark.ext.admonition.AdmonitionBlock
- All Implemented Interfaces:
ParagraphContainer
,Content
An Admonition block node
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BasedSequence
private BasedSequence
protected BasedSequence
protected BasedSequence
protected BasedSequence
Fields inherited from class com.vladsch.flexmark.util.ast.ContentNode
lineSegments
Fields inherited from class com.vladsch.flexmark.util.ast.Node
AST_ADAPTER, EMPTY_SEGMENTS, SPLICE
-
Constructor Summary
ConstructorsConstructorDescriptionAdmonitionBlock
(BasedSequence chars) AdmonitionBlock
(BasedSequence chars, BasedSequence openingMarker, BasedSequence info, List<BasedSequence> segments) -
Method Summary
Modifier and TypeMethodDescriptionvoid
getAstExtra
(@NotNull StringBuilder out) getInfo()
@NotNull BasedSequence[]
@NotNull BasedSequence[]
Get the segments making up the node's characters.getTitle()
boolean
boolean
void
setInfo
(BasedSequence info) void
setOpeningMarker
(BasedSequence openingMarker) void
setTitle
(BasedSequence title) void
setTitleChars
(BasedSequence titleChars) void
setTitleClosingMarker
(BasedSequence titleClosingMarker) void
setTitleOpeningMarker
(BasedSequence titleOpeningMarker) Methods inherited from class com.vladsch.flexmark.util.ast.ContentNode
getContentChars, getContentChars, getContentLines, getContentLines, getLineChars, getLineCount, getSpanningChars, setContent, setContent, setContent, setContentLine, setContentLines
Methods inherited from class com.vladsch.flexmark.util.ast.Node
appendChain, appendChild, astChars, astExtraChars, astString, baseSubSequence, baseSubSequence, countAncestorsOfType, countDirectAncestorsOfType, delimitedSegmentSpan, delimitedSegmentSpanChars, endOfLine, extractChainTo, extractToFirstInChain, getAncestorOfType, 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, 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, unlink
-
Field Details
-
openingMarker
-
info
-
titleOpeningMarker
-
title
-
titleClosingMarker
-
-
Constructor Details
-
AdmonitionBlock
public AdmonitionBlock() -
AdmonitionBlock
-
AdmonitionBlock
public AdmonitionBlock(BasedSequence chars, BasedSequence openingMarker, BasedSequence info, List<BasedSequence> segments)
-
-
Method Details
-
getSegments
- Specified by:
getSegments
in classNode
-
getSegmentsForChars
Description copied from class:Node
Get the segments making up the node's characters.Used to get segments after the some of the node's elements were modified
- Overrides:
getSegmentsForChars
in classNode
- Returns:
- array of segments
-
getAstExtra
- Overrides:
getAstExtra
in classNode
-
getOpeningMarker
-
setOpeningMarker
-
setInfo
-
getInfo
-
getTitle
-
getTitleOpeningMarker
-
setTitleOpeningMarker
-
setTitle
-
getTitleClosingMarker
-
setTitleClosingMarker
-
getTitleChars
-
setTitleChars
-
isParagraphEndWrappingDisabled
- Specified by:
isParagraphEndWrappingDisabled
in interfaceParagraphContainer
-
isParagraphStartWrappingDisabled
- Specified by:
isParagraphStartWrappingDisabled
in interfaceParagraphContainer
-