Class LinkReferenceDefinitionParser


  • public class LinkReferenceDefinitionParser
    extends java.lang.Object
    Parser for link reference definitions at the beginning of a paragraph.
    See Also:
    Link reference definitions
    • Field Detail

      • paragraphLines

        private final java.util.List<SourceLine> paragraphLines
      • sourceSpans

        private final java.util.List<SourceSpan> sourceSpans
      • label

        private java.lang.StringBuilder label
      • destination

        private java.lang.String destination
      • titleDelimiter

        private char titleDelimiter
      • title

        private java.lang.StringBuilder title
      • referenceValid

        private boolean referenceValid
    • Constructor Detail

      • LinkReferenceDefinitionParser

        public LinkReferenceDefinitionParser()
    • Method Detail

      • addSourceSpan

        public void addSourceSpan​(SourceSpan sourceSpan)
      • getParagraphLines

        SourceLines getParagraphLines()
        Returns:
        the lines that are normal paragraph content, without newlines
      • getParagraphSourceSpans

        java.util.List<SourceSpan> getParagraphSourceSpans()
      • startDefinition

        private boolean startDefinition​(Scanner scanner)
      • label

        private boolean label​(Scanner scanner)
      • destination

        private boolean destination​(Scanner scanner)
      • startTitle

        private boolean startTitle​(Scanner scanner)
      • title

        private boolean title​(Scanner scanner)
      • finishReference

        private void finishReference()