Class Token

    • Field Detail

      • image

        protected String image
      • content

        protected String content
      • lineNumber

        protected final int lineNumber
      • startPosition

        protected final int startPosition
    • Method Detail

      • getImage

        public String getImage()
      • mergeImageAndContent

        public void mergeImageAndContent​(Token otherToken)
      • getLineNumber

        public int getLineNumber()
      • isLeftTrim

        public boolean isLeftTrim()
      • isRightTrim

        public boolean isRightTrim()
      • isRightTrimAfterEnd

        public boolean isRightTrimAfterEnd()
      • setLeftTrim

        public void setLeftTrim​(boolean leftTrim)
      • setRightTrim

        public void setRightTrim​(boolean rightTrim)
      • setRightTrimAfterEnd

        public void setRightTrimAfterEnd​(boolean rightTrimAfterEnd)
      • handleTrim

        protected final String handleTrim​(String unwrapped)
        Handle any whitespace control characters, capturing whether leading or trailing whitespace should be stripped.
        Parameters:
        unwrapped - the content of the block stripped of its delimeters
        Returns:
        the content stripped of any whitespace control characters.
      • getStartPosition

        public int getStartPosition()
      • parse

        protected abstract void parse()
      • getType

        public abstract int getType()