Class ReaderCharStream

  • All Implemented Interfaces:
    org.antlr.runtime.CharStream, org.antlr.runtime.IntStream

    public class ReaderCharStream
    extends java.lang.Object
    implements org.antlr.runtime.CharStream
    An implementation of Antlr's CharStream that does nothing (as in nothing) besides holding a reference to a Reader that can be obtained. This thing exists to funnel a reader through the existing API.
    • Constructor Detail

      • ReaderCharStream

        public ReaderCharStream​(java.io.Reader reader)
    • Method Detail

      • getReader

        public java.io.Reader getReader()
      • consume

        public void consume()
        Specified by:
        consume in interface org.antlr.runtime.IntStream
      • LA

        public int LA​(int i)
        Specified by:
        LA in interface org.antlr.runtime.IntStream
      • mark

        public int mark()
        Specified by:
        mark in interface org.antlr.runtime.IntStream
      • index

        public int index()
        Specified by:
        index in interface org.antlr.runtime.IntStream
      • rewind

        public void rewind​(int marker)
        Specified by:
        rewind in interface org.antlr.runtime.IntStream
      • rewind

        public void rewind()
        Specified by:
        rewind in interface org.antlr.runtime.IntStream
      • release

        public void release​(int marker)
        Specified by:
        release in interface org.antlr.runtime.IntStream
      • seek

        public void seek​(int index)
        Specified by:
        seek in interface org.antlr.runtime.IntStream
      • size

        public int size()
        Specified by:
        size in interface org.antlr.runtime.IntStream
      • getSourceName

        public java.lang.String getSourceName()
        Specified by:
        getSourceName in interface org.antlr.runtime.IntStream
      • substring

        public java.lang.String substring​(int start,
                                          int stop)
        Specified by:
        substring in interface org.antlr.runtime.CharStream
      • LT

        public int LT​(int i)
        Specified by:
        LT in interface org.antlr.runtime.CharStream
      • getLine

        public int getLine()
        Specified by:
        getLine in interface org.antlr.runtime.CharStream
      • setLine

        public void setLine​(int line)
        Specified by:
        setLine in interface org.antlr.runtime.CharStream
      • setCharPositionInLine

        public void setCharPositionInLine​(int pos)
        Specified by:
        setCharPositionInLine in interface org.antlr.runtime.CharStream
      • getCharPositionInLine

        public int getCharPositionInLine()
        Specified by:
        getCharPositionInLine in interface org.antlr.runtime.CharStream