Class AttributeNode
- java.lang.Object
-
- com.vladsch.flexmark.util.ast.Node
-
- com.vladsch.flexmark.ext.attributes.AttributeNode
-
- All Implemented Interfaces:
DoNotDecorate
public class AttributeNode extends Node implements DoNotDecorate
An Attribute node representing a single attribute name and value in attributes node
-
-
Field Summary
Fields Modifier and Type Field Description protected BasedSequenceattributeSeparatorprotected BasedSequenceclosingMarkerprotected BasedSequencenameprotected BasedSequenceopeningMarkerprotected BasedSequencevalue-
Fields inherited from class com.vladsch.flexmark.util.ast.Node
AST_ADAPTER, EMPTY_SEGMENTS, SPLICE
-
-
Constructor Summary
Constructors Constructor Description AttributeNode()AttributeNode(@Nullable BasedSequence name, @Nullable BasedSequence attributeSeparator, @Nullable BasedSequence openingMarker, @Nullable BasedSequence value, @Nullable BasedSequence closingMarker)AttributeNode(BasedSequence chars)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidgetAstExtra(@NotNull java.lang.StringBuilder out)BasedSequencegetAttributeSeparator()BasedSequencegetClosingMarker()BasedSequencegetName()BasedSequencegetOpeningMarker()@NotNull BasedSequence[]getSegments()BasedSequencegetValue()booleanisClass()booleanisId()booleanisImplicitName()static booleanisImplicitName(java.lang.CharSequence text)voidsetAttributeSeparator(BasedSequence attributeSeparator)voidsetClosingMarker(BasedSequence closingMarker)voidsetName(BasedSequence name)voidsetOpeningMarker(BasedSequence openingMarker)voidsetValue(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 Detail
-
name
protected BasedSequence name
-
attributeSeparator
protected BasedSequence attributeSeparator
-
openingMarker
protected BasedSequence openingMarker
-
value
protected BasedSequence value
-
closingMarker
protected BasedSequence closingMarker
-
-
Constructor Detail
-
AttributeNode
public AttributeNode()
-
AttributeNode
public AttributeNode(BasedSequence chars)
-
AttributeNode
public AttributeNode(@Nullable @Nullable BasedSequence name, @Nullable @Nullable BasedSequence attributeSeparator, @Nullable @Nullable BasedSequence openingMarker, @Nullable @Nullable BasedSequence value, @Nullable @Nullable 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
-
isImplicitName
public static boolean isImplicitName(java.lang.CharSequence text)
-
isImplicitName
public boolean isImplicitName()
-
isClass
public boolean isClass()
-
isId
public boolean isId()
-
getName
public BasedSequence getName()
-
setName
public void setName(BasedSequence name)
-
getAttributeSeparator
public BasedSequence getAttributeSeparator()
-
setAttributeSeparator
public void setAttributeSeparator(BasedSequence attributeSeparator)
-
getValue
public BasedSequence getValue()
-
setValue
public void setValue(BasedSequence value)
-
getOpeningMarker
public BasedSequence getOpeningMarker()
-
setOpeningMarker
public void setOpeningMarker(BasedSequence openingMarker)
-
getClosingMarker
public BasedSequence getClosingMarker()
-
setClosingMarker
public void setClosingMarker(BasedSequence closingMarker)
-
-