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 BasedSequenceabbreviation-
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 BasedSequencegetAbbreviation()voidgetAstExtra(@NotNull java.lang.StringBuilder out)@NotNull BasedSequencegetReference()AbbreviationBlockgetReferenceNode(AbbreviationRepository repository)AbbreviationBlockgetReferenceNode(Document document)@NotNull BasedSequence[]getSegments()booleanisDefined()protected @NotNull java.lang.StringtoStringAttributes()-
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 @NotNull BasedSequence[] getSegments()
- Specified by:
getSegmentsin classNode
-
getAstExtra
public void getAstExtra(@NotNull @NotNull java.lang.StringBuilder out)- Overrides:
getAstExtrain classNode
-
toStringAttributes
@NotNull protected @NotNull java.lang.String toStringAttributes()
- Overrides:
toStringAttributesin classNode
-
isDefined
public boolean isDefined()
- Specified by:
isDefinedin interfaceReferencingNode<AbbreviationRepository,AbbreviationBlock>
-
getReference
@NotNull public @NotNull BasedSequence getReference()
- Specified by:
getReferencein interfaceReferencingNode<AbbreviationRepository,AbbreviationBlock>
-
getReferenceNode
public AbbreviationBlock getReferenceNode(Document document)
- Specified by:
getReferenceNodein interfaceReferencingNode<AbbreviationRepository,AbbreviationBlock>
-
getReferenceNode
public AbbreviationBlock getReferenceNode(AbbreviationRepository repository)
- Specified by:
getReferenceNodein interfaceReferencingNode<AbbreviationRepository,AbbreviationBlock>
-
-