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 BasedSequenceprivate BasedSequenceprotected BasedSequenceprotected BasedSequenceprotected BasedSequenceFields inherited from class ContentNode
lineSegmentsFields inherited from class 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 TypeMethodDescriptionvoidgetAstExtra(@NotNull StringBuilder out) getInfo()@NotNull BasedSequence[]@NotNull BasedSequence[]Get the segments making up the node's characters.getTitle()booleanbooleanvoidsetInfo(BasedSequence info) voidsetOpeningMarker(BasedSequence openingMarker) voidsetTitle(BasedSequence title) voidsetTitleChars(BasedSequence titleChars) voidsetTitleClosingMarker(BasedSequence titleClosingMarker) voidsetTitleOpeningMarker(BasedSequence titleOpeningMarker) Methods inherited from class ContentNode
getContentChars, getContentChars, getContentLines, getContentLines, getLineChars, getLineCount, getSpanningChars, setContent, setContent, setContent, setContentLine, setContentLinesMethods inherited from class 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:
getSegmentsin classNode
-
getSegmentsForChars
Description copied from class:NodeGet the segments making up the node's characters.Used to get segments after the some of the node's elements were modified
- Overrides:
getSegmentsForCharsin classNode- Returns:
- array of segments
-
getAstExtra
- Overrides:
getAstExtrain classNode
-
getOpeningMarker
-
setOpeningMarker
-
setInfo
-
getInfo
-
getTitle
-
getTitleOpeningMarker
-
setTitleOpeningMarker
-
setTitle
-
getTitleClosingMarker
-
setTitleClosingMarker
-
getTitleChars
-
setTitleChars
-
isParagraphEndWrappingDisabled
- Specified by:
isParagraphEndWrappingDisabledin interfaceParagraphContainer
-
isParagraphStartWrappingDisabled
- Specified by:
isParagraphStartWrappingDisabledin interfaceParagraphContainer
-