Class Macro
- java.lang.Object
-
- com.vladsch.flexmark.util.ast.Node
-
- com.vladsch.flexmark.ext.xwiki.macros.Macro
-
public class Macro extends Node
A macros node
-
-
Field Summary
Fields Modifier and Type Field Description protected BasedSequenceattributeTextprotected BasedSequenceclosingMarkerprotected BasedSequencenameprotected BasedSequenceopeningMarker-
Fields inherited from class com.vladsch.flexmark.util.ast.Node
AST_ADAPTER, EMPTY_SEGMENTS, SPLICE
-
-
Constructor Summary
Constructors Constructor Description Macro()Macro(BasedSequence chars)Macro(BasedSequence openingMarker, BasedSequence name, BasedSequence closingMarker)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetAstExtra(@NotNull java.lang.StringBuilder out)java.util.Map<java.lang.String,java.lang.String>getAttributes()BasedSequencegetAttributeText()BasedSequencegetClosingMarker()BasedSequencegetMacroContentChars()BasedSequencegetName()BasedSequencegetOpeningMarker()@NotNull BasedSequence[]getSegments()booleanisBlockMacro()booleanisClosedTag()voidsetAttributeText(BasedSequence attributeText)voidsetClosingMarker(BasedSequence closingMarker)voidsetName(BasedSequence name)voidsetOpeningMarker(BasedSequence openingMarker)-
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, getParent, 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, setParent, spanningChars, startOfLine, takeChildren, toAstString, toSegmentSpan, toString, toStringAttributes, unlink
-
-
-
-
Field Detail
-
openingMarker
protected BasedSequence openingMarker
-
name
protected BasedSequence name
-
attributeText
protected BasedSequence attributeText
-
closingMarker
protected BasedSequence closingMarker
-
-
Constructor Detail
-
Macro
public Macro()
-
Macro
public Macro(BasedSequence chars)
-
Macro
public Macro(BasedSequence openingMarker, BasedSequence name, BasedSequence closingMarker)
-
-
Method Detail
-
getSegments
@NotNull public @NotNull BasedSequence[] getSegments()
- Specified by:
getSegmentsin classNode
-
getAstExtra
public void getAstExtra(@NotNull @NotNull java.lang.StringBuilder out)- Overrides:
getAstExtrain classNode
-
getOpeningMarker
public BasedSequence getOpeningMarker()
-
setOpeningMarker
public void setOpeningMarker(BasedSequence openingMarker)
-
getName
public BasedSequence getName()
-
setName
public void setName(BasedSequence name)
-
getClosingMarker
public BasedSequence getClosingMarker()
-
setClosingMarker
public void setClosingMarker(BasedSequence closingMarker)
-
getAttributeText
public BasedSequence getAttributeText()
-
setAttributeText
public void setAttributeText(BasedSequence attributeText)
-
isBlockMacro
public boolean isBlockMacro()
-
getAttributes
public java.util.Map<java.lang.String,java.lang.String> getAttributes()
-
getMacroContentChars
public BasedSequence getMacroContentChars()
-
isClosedTag
public boolean isClosedTag()
-
-