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 BasedSequence
protected BasedSequence
protected BasedSequence
protected BasedSequence
protected BasedSequence
Fields inherited from class com.vladsch.flexmark.util.ast.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 TypeMethodDescriptionvoid
getAstExtra
(@NotNull StringBuilder out) getName()
@NotNull BasedSequence[]
getValue()
boolean
isClass()
boolean
isId()
boolean
static boolean
isImplicitName
(CharSequence text) void
setAttributeSeparator
(BasedSequence attributeSeparator) void
setClosingMarker
(BasedSequence closingMarker) void
setName
(BasedSequence name) void
setOpeningMarker
(BasedSequence openingMarker) void
setValue
(BasedSequence value) 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 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:
getSegments
in classNode
-
getAstExtra
- Overrides:
getAstExtra
in classNode
-
isImplicitName
-
isImplicitName
public boolean isImplicitName() -
isClass
public boolean isClass() -
isId
public boolean isId() -
getName
-
setName
-
getAttributeSeparator
-
setAttributeSeparator
-
getValue
-
setValue
-
getOpeningMarker
-
setOpeningMarker
-
getClosingMarker
-
setClosingMarker
-