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