Class AttributeNode
java.lang.Object
com.vladsch.flexmark.util.ast.Node
com.vladsch.flexmark.ext.attributes.AttributeNode
- All Implemented Interfaces:
DoNotDecorate
An Attribute node representing a single attribute name and value in attributes node
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BasedSequenceprotected BasedSequenceprotected BasedSequenceprotected BasedSequenceprotected BasedSequenceFields inherited from class Node
AST_ADAPTER, EMPTY_SEGMENTS, SPLICE -
Constructor Summary
ConstructorsConstructorDescriptionAttributeNode(@Nullable BasedSequence name, @Nullable BasedSequence attributeSeparator, @Nullable BasedSequence openingMarker, @Nullable BasedSequence value, @Nullable BasedSequence closingMarker) AttributeNode(BasedSequence chars) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAstExtra(@NotNull StringBuilder out) getName()@NotNull BasedSequence[]getValue()booleanisClass()booleanisId()booleanstatic booleanisImplicitName(CharSequence text) voidsetAttributeSeparator(BasedSequence attributeSeparator) voidsetClosingMarker(BasedSequence closingMarker) voidsetName(BasedSequence name) voidsetOpeningMarker(BasedSequence openingMarker) voidsetValue(BasedSequence value) Methods 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, 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 Details
-
name
-
attributeSeparator
-
openingMarker
-
value
-
closingMarker
-
-
Constructor Details
-
AttributeNode
public AttributeNode() -
AttributeNode
-
AttributeNode
public AttributeNode(@Nullable @Nullable BasedSequence name, @Nullable @Nullable BasedSequence attributeSeparator, @Nullable @Nullable BasedSequence openingMarker, @Nullable @Nullable BasedSequence value, @Nullable @Nullable BasedSequence closingMarker)
-
-
Method Details
-
getSegments
- Specified by:
getSegmentsin classNode
-
getAstExtra
- Overrides:
getAstExtrain classNode
-
isImplicitName
-
isImplicitName
public boolean isImplicitName() -
isClass
public boolean isClass() -
isId
public boolean isId() -
getName
-
setName
-
getAttributeSeparator
-
setAttributeSeparator
-
getValue
-
setValue
-
getOpeningMarker
-
setOpeningMarker
-
getClosingMarker
-
setClosingMarker
-