Class AttributeNode
- java.lang.Object
-
- com.vladsch.flexmark.util.ast.Node
-
- com.vladsch.flexmark.ext.attributes.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.DoNotDecorateAn 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.BasedSequenceattributeSeparatorprotected com.vladsch.flexmark.util.sequence.BasedSequenceclosingMarkerprotected com.vladsch.flexmark.util.sequence.BasedSequencenameprotected com.vladsch.flexmark.util.sequence.BasedSequenceopeningMarkerprotected com.vladsch.flexmark.util.sequence.BasedSequencevalue
-
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 voidgetAstExtra(@NotNull StringBuilder out)com.vladsch.flexmark.util.sequence.BasedSequencegetAttributeSeparator()com.vladsch.flexmark.util.sequence.BasedSequencegetClosingMarker()com.vladsch.flexmark.util.sequence.BasedSequencegetName()com.vladsch.flexmark.util.sequence.BasedSequencegetOpeningMarker()@NotNull com.vladsch.flexmark.util.sequence.BasedSequence[]getSegments()com.vladsch.flexmark.util.sequence.BasedSequencegetValue()booleanisClass()booleanisId()booleanisImplicitName()static booleanisImplicitName(CharSequence text)voidsetAttributeSeparator(com.vladsch.flexmark.util.sequence.BasedSequence attributeSeparator)voidsetClosingMarker(com.vladsch.flexmark.util.sequence.BasedSequence closingMarker)voidsetName(com.vladsch.flexmark.util.sequence.BasedSequence name)voidsetOpeningMarker(com.vladsch.flexmark.util.sequence.BasedSequence openingMarker)voidsetValue(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:
getSegmentsin classcom.vladsch.flexmark.util.ast.Node
-
getAstExtra
public void getAstExtra(@NotNull @NotNull StringBuilder out)- Overrides:
getAstExtrain classcom.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)
-
-