Class Abbreviation
- java.lang.Object
-
- com.vladsch.flexmark.util.ast.Node
-
- com.vladsch.flexmark.ext.abbreviation.Abbreviation
-
- All Implemented Interfaces:
DoNotDecorate
,DoNotLinkDecorate
,ReferencingNode<AbbreviationRepository,AbbreviationBlock>
public class Abbreviation extends Node implements DoNotDecorate, DoNotLinkDecorate, ReferencingNode<AbbreviationRepository,AbbreviationBlock>
A node containing the abbreviated text that will be rendered as an abbr tag or a link with title attribute
-
-
Field Summary
Fields Modifier and Type Field Description protected BasedSequence
abbreviation
-
Fields inherited from class com.vladsch.flexmark.util.ast.Node
AST_ADAPTER, EMPTY_SEGMENTS, SPLICE
-
-
Constructor Summary
Constructors Constructor Description Abbreviation(BasedSequence chars, BasedSequence abbreviation)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description BasedSequence
getAbbreviation()
void
getAstExtra(java.lang.StringBuilder out)
BasedSequence
getReference()
AbbreviationBlock
getReferenceNode(AbbreviationRepository repository)
AbbreviationBlock
getReferenceNode(Document document)
BasedSequence[]
getSegments()
boolean
isDefined()
protected java.lang.String
toStringAttributes()
-
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, unlink
-
-
-
-
Field Detail
-
abbreviation
protected final BasedSequence abbreviation
-
-
Constructor Detail
-
Abbreviation
public Abbreviation(BasedSequence chars, BasedSequence abbreviation)
-
-
Method Detail
-
getAbbreviation
public BasedSequence getAbbreviation()
-
getSegments
@NotNull public BasedSequence[] getSegments()
- Specified by:
getSegments
in classNode
-
getAstExtra
public void getAstExtra(@NotNull java.lang.StringBuilder out)
- Overrides:
getAstExtra
in classNode
-
toStringAttributes
@NotNull protected java.lang.String toStringAttributes()
- Overrides:
toStringAttributes
in classNode
-
isDefined
public boolean isDefined()
- Specified by:
isDefined
in interfaceReferencingNode<AbbreviationRepository,AbbreviationBlock>
-
getReference
@NotNull public BasedSequence getReference()
- Specified by:
getReference
in interfaceReferencingNode<AbbreviationRepository,AbbreviationBlock>
-
getReferenceNode
public AbbreviationBlock getReferenceNode(Document document)
- Specified by:
getReferenceNode
in interfaceReferencingNode<AbbreviationRepository,AbbreviationBlock>
-
getReferenceNode
public AbbreviationBlock getReferenceNode(AbbreviationRepository repository)
- Specified by:
getReferenceNode
in interfaceReferencingNode<AbbreviationRepository,AbbreviationBlock>
-
-