Package com.vladsch.flexmark.ast
Class FencedCodeBlock
- java.lang.Object
-
- com.vladsch.flexmark.util.ast.Node
-
- com.vladsch.flexmark.util.ast.ContentNode
-
- com.vladsch.flexmark.util.ast.Block
-
- com.vladsch.flexmark.ast.FencedCodeBlock
-
- All Implemented Interfaces:
com.vladsch.flexmark.util.ast.Content
,com.vladsch.flexmark.util.ast.DoNotDecorate
public class FencedCodeBlock extends com.vladsch.flexmark.util.ast.Block implements com.vladsch.flexmark.util.ast.DoNotDecorate
-
-
Constructor Summary
Constructors Constructor Description FencedCodeBlock()
FencedCodeBlock(com.vladsch.flexmark.util.sequence.BasedSequence chars)
FencedCodeBlock(com.vladsch.flexmark.util.sequence.BasedSequence chars, com.vladsch.flexmark.util.sequence.BasedSequence openingMarker, com.vladsch.flexmark.util.sequence.BasedSequence info, List<com.vladsch.flexmark.util.sequence.BasedSequence> segments, com.vladsch.flexmark.util.sequence.BasedSequence closingMarker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
getAstExtra(@NotNull StringBuilder out)
com.vladsch.flexmark.util.sequence.BasedSequence
getAttributes()
com.vladsch.flexmark.util.sequence.BasedSequence
getClosingFence()
com.vladsch.flexmark.util.sequence.BasedSequence
getClosingMarker()
int
getFenceIndent()
int
getFenceLength()
com.vladsch.flexmark.util.sequence.BasedSequence
getInfo()
com.vladsch.flexmark.util.sequence.BasedSequence
getInfoDelimitedByAny(com.vladsch.flexmark.util.misc.CharPredicate delimiters)
com.vladsch.flexmark.util.sequence.BasedSequence
getOpeningFence()
com.vladsch.flexmark.util.sequence.BasedSequence
getOpeningMarker()
@NotNull com.vladsch.flexmark.util.sequence.BasedSequence[]
getSegments()
void
setAttributes(com.vladsch.flexmark.util.sequence.BasedSequence attributes)
void
setClosingMarker(com.vladsch.flexmark.util.sequence.BasedSequence closingMarker)
void
setFenceIndent(int fenceIndent)
void
setInfo(com.vladsch.flexmark.util.sequence.BasedSequence info)
void
setOpeningMarker(com.vladsch.flexmark.util.sequence.BasedSequence openingMarker)
-
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, 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, unlink
-
-
-
-
Constructor Detail
-
FencedCodeBlock
public FencedCodeBlock()
-
FencedCodeBlock
public FencedCodeBlock(com.vladsch.flexmark.util.sequence.BasedSequence chars)
-
FencedCodeBlock
public FencedCodeBlock(com.vladsch.flexmark.util.sequence.BasedSequence chars, com.vladsch.flexmark.util.sequence.BasedSequence openingMarker, com.vladsch.flexmark.util.sequence.BasedSequence info, List<com.vladsch.flexmark.util.sequence.BasedSequence> segments, com.vladsch.flexmark.util.sequence.BasedSequence closingMarker)
-
-
Method Detail
-
getAstExtra
public void getAstExtra(@NotNull @NotNull StringBuilder out)
- Overrides:
getAstExtra
in classcom.vladsch.flexmark.util.ast.Node
-
getSegments
@NotNull public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence[] getSegments()
- Specified by:
getSegments
in classcom.vladsch.flexmark.util.ast.Node
-
getOpeningMarker
public com.vladsch.flexmark.util.sequence.BasedSequence getOpeningMarker()
-
setOpeningMarker
public void setOpeningMarker(com.vladsch.flexmark.util.sequence.BasedSequence openingMarker)
-
setInfo
public void setInfo(com.vladsch.flexmark.util.sequence.BasedSequence info)
-
getClosingMarker
public com.vladsch.flexmark.util.sequence.BasedSequence getClosingMarker()
-
setClosingMarker
public void setClosingMarker(com.vladsch.flexmark.util.sequence.BasedSequence closingMarker)
-
getOpeningFence
public com.vladsch.flexmark.util.sequence.BasedSequence getOpeningFence()
-
getInfo
public com.vladsch.flexmark.util.sequence.BasedSequence getInfo()
- Returns:
- the sequence for the info part of the node
- See Also:
- CommonMark spec
-
getAttributes
public com.vladsch.flexmark.util.sequence.BasedSequence getAttributes()
-
setAttributes
public void setAttributes(com.vladsch.flexmark.util.sequence.BasedSequence attributes)
-
getInfoDelimitedByAny
public com.vladsch.flexmark.util.sequence.BasedSequence getInfoDelimitedByAny(com.vladsch.flexmark.util.misc.CharPredicate delimiters)
-
getClosingFence
public com.vladsch.flexmark.util.sequence.BasedSequence getClosingFence()
-
getFenceLength
public int getFenceLength()
-
getFenceIndent
public int getFenceIndent()
-
setFenceIndent
public void setFenceIndent(int fenceIndent)
-
-