Class AttributeNode

  • All Implemented Interfaces:
    com.vladsch.flexmark.util.ast.DoNotDecorate

    public class AttributeNode
    extends com.vladsch.flexmark.util.ast.Node
    implements com.vladsch.flexmark.util.ast.DoNotDecorate
    An Attribute node representing a single attribute name and value in attributes node
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected com.vladsch.flexmark.util.sequence.BasedSequence attributeSeparator  
      protected com.vladsch.flexmark.util.sequence.BasedSequence closingMarker  
      protected com.vladsch.flexmark.util.sequence.BasedSequence name  
      protected com.vladsch.flexmark.util.sequence.BasedSequence openingMarker  
      protected com.vladsch.flexmark.util.sequence.BasedSequence value  
      • Fields inherited from class com.vladsch.flexmark.util.ast.Node

        AST_ADAPTER, EMPTY_SEGMENTS, SPLICE
    • Constructor Summary

      Constructors 
      Constructor Description
      AttributeNode()  
      AttributeNode​(@Nullable com.vladsch.flexmark.util.sequence.BasedSequence name, @Nullable com.vladsch.flexmark.util.sequence.BasedSequence attributeSeparator, @Nullable com.vladsch.flexmark.util.sequence.BasedSequence openingMarker, @Nullable com.vladsch.flexmark.util.sequence.BasedSequence value, @Nullable com.vladsch.flexmark.util.sequence.BasedSequence closingMarker)  
      AttributeNode​(com.vladsch.flexmark.util.sequence.BasedSequence chars)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void getAstExtra​(@NotNull StringBuilder out)  
      com.vladsch.flexmark.util.sequence.BasedSequence getAttributeSeparator()  
      com.vladsch.flexmark.util.sequence.BasedSequence getClosingMarker()  
      com.vladsch.flexmark.util.sequence.BasedSequence getName()  
      com.vladsch.flexmark.util.sequence.BasedSequence getOpeningMarker()  
      @NotNull com.vladsch.flexmark.util.sequence.BasedSequence[] getSegments()  
      com.vladsch.flexmark.util.sequence.BasedSequence getValue()  
      boolean isClass()  
      boolean isId()  
      boolean isImplicitName()  
      static boolean isImplicitName​(CharSequence text)  
      void setAttributeSeparator​(com.vladsch.flexmark.util.sequence.BasedSequence attributeSeparator)  
      void setClosingMarker​(com.vladsch.flexmark.util.sequence.BasedSequence closingMarker)  
      void setName​(com.vladsch.flexmark.util.sequence.BasedSequence name)  
      void setOpeningMarker​(com.vladsch.flexmark.util.sequence.BasedSequence openingMarker)  
      void setValue​(com.vladsch.flexmark.util.sequence.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 com.vladsch.flexmark.util.sequence.BasedSequence name
      • attributeSeparator

        protected com.vladsch.flexmark.util.sequence.BasedSequence attributeSeparator
      • openingMarker

        protected com.vladsch.flexmark.util.sequence.BasedSequence openingMarker
      • value

        protected com.vladsch.flexmark.util.sequence.BasedSequence value
      • closingMarker

        protected com.vladsch.flexmark.util.sequence.BasedSequence closingMarker
    • Constructor Detail

      • AttributeNode

        public AttributeNode()
      • AttributeNode

        public AttributeNode​(com.vladsch.flexmark.util.sequence.BasedSequence chars)
      • AttributeNode

        public AttributeNode​(@Nullable
                             @Nullable com.vladsch.flexmark.util.sequence.BasedSequence name,
                             @Nullable
                             @Nullable com.vladsch.flexmark.util.sequence.BasedSequence attributeSeparator,
                             @Nullable
                             @Nullable com.vladsch.flexmark.util.sequence.BasedSequence openingMarker,
                             @Nullable
                             @Nullable com.vladsch.flexmark.util.sequence.BasedSequence value,
                             @Nullable
                             @Nullable com.vladsch.flexmark.util.sequence.BasedSequence closingMarker)
    • Method Detail

      • getSegments

        @NotNull
        public @NotNull com.vladsch.flexmark.util.sequence.BasedSequence[] getSegments()
        Specified by:
        getSegments in class com.vladsch.flexmark.util.ast.Node
      • getAstExtra

        public void getAstExtra​(@NotNull
                                @NotNull StringBuilder out)
        Overrides:
        getAstExtra in class com.vladsch.flexmark.util.ast.Node
      • isImplicitName

        public static boolean isImplicitName​(CharSequence text)
      • isImplicitName

        public boolean isImplicitName()
      • isClass

        public boolean isClass()
      • isId

        public boolean isId()
      • getName

        public com.vladsch.flexmark.util.sequence.BasedSequence getName()
      • setName

        public void setName​(com.vladsch.flexmark.util.sequence.BasedSequence name)
      • getAttributeSeparator

        public com.vladsch.flexmark.util.sequence.BasedSequence getAttributeSeparator()
      • setAttributeSeparator

        public void setAttributeSeparator​(com.vladsch.flexmark.util.sequence.BasedSequence attributeSeparator)
      • getValue

        public com.vladsch.flexmark.util.sequence.BasedSequence getValue()
      • setValue

        public void setValue​(com.vladsch.flexmark.util.sequence.BasedSequence value)
      • getOpeningMarker

        public com.vladsch.flexmark.util.sequence.BasedSequence getOpeningMarker()
      • setOpeningMarker

        public void setOpeningMarker​(com.vladsch.flexmark.util.sequence.BasedSequence openingMarker)
      • getClosingMarker

        public com.vladsch.flexmark.util.sequence.BasedSequence getClosingMarker()
      • setClosingMarker

        public void setClosingMarker​(com.vladsch.flexmark.util.sequence.BasedSequence closingMarker)