Class SimpleCharStream

  • All Implemented Interfaces:
    CharStream

    @Deprecated
    @InternalApi
    public class SimpleCharStream
    extends Object
    implements CharStream
    Deprecated.
    An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).
    • Field Detail

      • staticFlag

        public static final boolean staticFlag
        Deprecated.
        Whether parser is static.
        See Also:
        Constant Field Values
      • bufpos

        public int bufpos
        Deprecated.
        Position in buffer.
      • bufline

        protected int[] bufline
        Deprecated.
      • bufcolumn

        protected int[] bufcolumn
        Deprecated.
      • column

        protected int column
        Deprecated.
      • line

        protected int line
        Deprecated.
      • prevCharIsCR

        protected boolean prevCharIsCR
        Deprecated.
      • prevCharIsLF

        protected boolean prevCharIsLF
        Deprecated.
      • inputStream

        protected Reader inputStream
        Deprecated.
      • buffer

        protected char[] buffer
        Deprecated.
      • maxNextCharInd

        protected int maxNextCharInd
        Deprecated.
      • inBuf

        protected int inBuf
        Deprecated.
      • tabSize

        protected int tabSize
        Deprecated.
    • Method Detail

      • setTabSize

        protected void setTabSize​(int i)
        Deprecated.
      • getTabSize

        protected int getTabSize​(int i)
        Deprecated.
      • ExpandBuff

        protected void ExpandBuff​(boolean wrapAround)
        Deprecated.
      • UpdateLineColumn

        protected void UpdateLineColumn​(char c)
        Deprecated.
      • getEndColumn

        public int getEndColumn()
        Deprecated.
        Get token end column number.
        Specified by:
        getEndColumn in interface CharStream
      • getEndLine

        public int getEndLine()
        Deprecated.
        Get token end line number.
        Specified by:
        getEndLine in interface CharStream
      • getBeginColumn

        public int getBeginColumn()
        Deprecated.
        Get token beginning column number.
        Specified by:
        getBeginColumn in interface CharStream
      • getBeginLine

        public int getBeginLine()
        Deprecated.
        Get token beginning line number.
        Specified by:
        getBeginLine in interface CharStream
      • backup

        public void backup​(int amount)
        Deprecated.
        Backup a number of characters.
        Specified by:
        backup in interface CharStream
      • ReInit

        public void ReInit​(Reader dstream,
                           int startline,
                           int startcolumn,
                           int buffersize)
        Deprecated.
        Reinitialise.
      • ReInit

        public void ReInit​(Reader dstream,
                           int startline,
                           int startcolumn)
        Deprecated.
        Reinitialise.
      • ReInit

        public void ReInit​(Reader dstream)
        Deprecated.
        Reinitialise.
      • ReInit

        public void ReInit​(InputStream dstream,
                           int startline,
                           int startcolumn,
                           int buffersize)
        Deprecated.
        Reinitialise.
      • ReInit

        public void ReInit​(InputStream dstream)
        Deprecated.
        Reinitialise.
      • ReInit

        public void ReInit​(InputStream dstream,
                           int startline,
                           int startcolumn)
        Deprecated.
        Reinitialise.
      • GetImage

        public String GetImage()
        Deprecated.
        Get token literal value.
        Specified by:
        GetImage in interface CharStream
      • GetSuffix

        public char[] GetSuffix​(int len)
        Deprecated.
        Get the suffix.
        Specified by:
        GetSuffix in interface CharStream
      • Done

        public void Done()
        Deprecated.
        Reset buffer when finished.
        Specified by:
        Done in interface CharStream
      • adjustBeginLineColumn

        public void adjustBeginLineColumn​(int newLine,
                                          int newCol)
        Deprecated.
        Method to adjust line and column numbers for the start of a token.