Class SimpleCharStream


  • public class SimpleCharStream
    extends Object
    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
        Whether parser is static.
        See Also:
        Constant Field Values
      • bufpos

        public static int bufpos
        Position in buffer.
      • bufline

        protected static int[] bufline
      • bufcolumn

        protected static int[] bufcolumn
      • column

        protected static int column
      • line

        protected static int line
      • prevCharIsCR

        protected static boolean prevCharIsCR
      • prevCharIsLF

        protected static boolean prevCharIsLF
      • inputStream

        protected static Reader inputStream
      • buffer

        protected static char[] buffer
      • maxNextCharInd

        protected static int maxNextCharInd
      • inBuf

        protected static int inBuf
      • tabSize

        protected static int tabSize
    • Method Detail

      • setTabSize

        protected static void setTabSize​(int i)
      • getTabSize

        protected static int getTabSize​(int i)
      • ExpandBuff

        protected static void ExpandBuff​(boolean wrapAround)
      • UpdateLineColumn

        protected static void UpdateLineColumn​(char c)
      • getColumn

        @Deprecated
        public static int getColumn()
        Deprecated.
      • getLine

        @Deprecated
        public static int getLine()
        Deprecated.
      • getEndColumn

        public static int getEndColumn()
      • getEndLine

        public static int getEndLine()
      • getBeginColumn

        public static int getBeginColumn()
      • getBeginLine

        public static int getBeginLine()
      • backup

        public static void backup​(int amount)
      • ReInit

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

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

        public void ReInit​(Reader dstream)
      • ReInit

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

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

        public static String GetImage()
      • GetSuffix

        public static char[] GetSuffix​(int len)
      • Done

        public static void Done()
        Reset buffer when finished.
      • adjustBeginLineColumn

        public static void adjustBeginLineColumn​(int newLine,
                                                 int newCol)