Class CppCharStream

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

    public class CppCharStream
    extends net.sourceforge.pmd.lang.ast.SimpleCharStream
    A SimpleCharStream, that supports the continuation of lines via backslash+newline, which is used in C/C++.
    Author:
    Andreas Dangel
    • Field Summary

      • Fields inherited from class net.sourceforge.pmd.lang.ast.SimpleCharStream

        bufcolumn, buffer, bufline, bufpos, column, inBuf, inputStream, line, maxNextCharInd, prevCharIsCR, prevCharIsLF, staticFlag, tabSize
    • Constructor Summary

      Constructors 
      Constructor Description
      CppCharStream​(java.io.Reader dstream)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String GetImage()  
      char[] GetSuffix​(int len)  
      char readChar()  
      • Methods inherited from class net.sourceforge.pmd.lang.ast.SimpleCharStream

        adjustBeginLineColumn, backup, BeginToken, Done, ExpandBuff, FillBuff, getBeginColumn, getBeginLine, getColumn, getEndColumn, getEndLine, getLine, getTabSize, ReInit, ReInit, ReInit, ReInit, ReInit, ReInit, ReInit, ReInit, ReInit, setTabSize, UpdateLineColumn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CppCharStream

        public CppCharStream​(java.io.Reader dstream)
    • Method Detail

      • readChar

        public char readChar()
                      throws java.io.IOException
        Specified by:
        readChar in interface net.sourceforge.pmd.lang.ast.CharStream
        Overrides:
        readChar in class net.sourceforge.pmd.lang.ast.SimpleCharStream
        Throws:
        java.io.IOException
      • GetSuffix

        public char[] GetSuffix​(int len)
        Specified by:
        GetSuffix in interface net.sourceforge.pmd.lang.ast.CharStream
        Overrides:
        GetSuffix in class net.sourceforge.pmd.lang.ast.SimpleCharStream
      • GetImage

        public java.lang.String GetImage()
        Specified by:
        GetImage in interface net.sourceforge.pmd.lang.ast.CharStream
        Overrides:
        GetImage in class net.sourceforge.pmd.lang.ast.SimpleCharStream