Class VelocityCharStream

  • All Implemented Interfaces:
    net.sourceforge.pmd.lang.ast.CharStream

    @Deprecated
    public final class VelocityCharStream
    extends Object
    implements net.sourceforge.pmd.lang.ast.CharStream
    Deprecated.
    Will be removed, replaced with SimpleCharStream
    An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).
    • Field Detail

      • bufpos

        public int bufpos
        Deprecated.
    • Constructor Detail

      • VelocityCharStream

        public VelocityCharStream​(InputStream dstream,
                                  int startline,
                                  int startcolumn,
                                  int buffersize)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
        buffersize -
      • VelocityCharStream

        public VelocityCharStream​(InputStream dstream,
                                  int startline,
                                  int startcolumn)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
      • VelocityCharStream

        public VelocityCharStream​(Reader dstream,
                                  int startline,
                                  int startcolumn,
                                  int buffersize)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
        buffersize -
      • VelocityCharStream

        public VelocityCharStream​(Reader dstream,
                                  int startline,
                                  int startcolumn)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
    • Method Detail

      • BeginToken

        public char BeginToken()
                        throws IOException
        Deprecated.
        Specified by:
        BeginToken in interface net.sourceforge.pmd.lang.ast.CharStream
        Throws:
        IOException
      • readChar

        public char readChar()
                      throws IOException
        Deprecated.
        Specified by:
        readChar in interface net.sourceforge.pmd.lang.ast.CharStream
        Throws:
        IOException
      • getColumn

        @Deprecated
        public int getColumn()
        Deprecated.
        Specified by:
        getColumn in interface net.sourceforge.pmd.lang.ast.CharStream
      • getLine

        @Deprecated
        public int getLine()
        Deprecated.
        Specified by:
        getLine in interface net.sourceforge.pmd.lang.ast.CharStream
      • getEndColumn

        public int getEndColumn()
        Deprecated.
        Specified by:
        getEndColumn in interface net.sourceforge.pmd.lang.ast.CharStream
      • getEndLine

        public int getEndLine()
        Deprecated.
        Specified by:
        getEndLine in interface net.sourceforge.pmd.lang.ast.CharStream
      • getBeginColumn

        public int getBeginColumn()
        Deprecated.
        Specified by:
        getBeginColumn in interface net.sourceforge.pmd.lang.ast.CharStream
      • getBeginLine

        public int getBeginLine()
        Deprecated.
        Specified by:
        getBeginLine in interface net.sourceforge.pmd.lang.ast.CharStream
      • backup

        public void backup​(int amount)
        Deprecated.
        Specified by:
        backup in interface net.sourceforge.pmd.lang.ast.CharStream
      • reInit

        public void reInit​(Reader dstream,
                           int startline,
                           int startcolumn,
                           int buffersize)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
        buffersize -
      • reInit

        public void reInit​(Reader dstream,
                           int startline,
                           int startcolumn)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
      • reInit

        public void reInit​(InputStream dstream,
                           int startline,
                           int startcolumn,
                           int buffersize)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
        buffersize -
      • reInit

        public void reInit​(InputStream dstream,
                           int startline,
                           int startcolumn)
        Deprecated.
        Parameters:
        dstream -
        startline -
        startcolumn -
      • GetImage

        public String GetImage()
        Deprecated.
        Specified by:
        GetImage in interface net.sourceforge.pmd.lang.ast.CharStream
      • GetSuffix

        public char[] GetSuffix​(int len)
        Deprecated.
        Specified by:
        GetSuffix in interface net.sourceforge.pmd.lang.ast.CharStream
      • Done

        public void Done()
        Deprecated.
        Specified by:
        Done in interface net.sourceforge.pmd.lang.ast.CharStream
      • adjustBeginLineColumn

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