Class Delimiter

    • Constructor Detail

      • Delimiter

        public Delimiter​(BasedSequence input,
                         Text node,
                         char delimiterChar,
                         boolean canOpen,
                         boolean canClose,
                         Delimiter previous,
                         int index)
    • Method Detail

      • setMatched

        public void setMatched​(boolean matched)
      • setPrevious

        public void setPrevious​(Delimiter previous)
      • setNext

        public void setNext​(Delimiter next)
      • setNumDelims

        public void setNumDelims​(int numDelims)
      • isMatched

        public boolean isMatched()
      • getNumDelims

        public int getNumDelims()
      • getStartIndex

        public int getStartIndex()
      • getEndIndex

        public int getEndIndex()
      • getIndex

        public int getIndex()
      • setIndex

        public void setIndex​(int index)
      • getTailChars

        public BasedSequence getTailChars​(int delimiterUse)
      • getLeadChars

        public BasedSequence getLeadChars​(int delimiterUse)
      • getPreviousNonDelimiterTextNode

        public Text getPreviousNonDelimiterTextNode()
      • getNextNonDelimiterTextNode

        public Text getNextNonDelimiterTextNode()
      • moveNodesBetweenDelimitersTo

        public void moveNodesBetweenDelimitersTo​(DelimitedNode delimitedNode,
                                                 Delimiter closer)
      • convertDelimitersToText

        public void convertDelimitersToText​(int delimitersUsed,
                                            Delimiter closer)
      • canOpen

        public boolean canOpen()
        Specified by:
        canOpen in interface DelimiterRun
        Returns:
        whether this can open a delimiter
      • canClose

        public boolean canClose()
        Specified by:
        canClose in interface DelimiterRun
        Returns:
        whether this can close a delimiter
      • length

        public int length()
        Specified by:
        length in interface DelimiterRun
        Returns:
        the number of characters in this delimiter run (that are left for processing)