Package net.sourceforge.pmd.lang.cpp
Class CppCharStream
- java.lang.Object
-
- net.sourceforge.pmd.lang.ast.SimpleCharStream
-
- net.sourceforge.pmd.lang.cpp.CppCharStream
-
- All Implemented Interfaces:
net.sourceforge.pmd.lang.ast.CharStream
public class CppCharStream extends net.sourceforge.pmd.lang.ast.SimpleCharStreamA SimpleCharStream, that supports the continuation of lines via backslash+newline, which is used in C/C++.- Author:
- Andreas Dangel
-
-
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.StringGetImage()char[]GetSuffix(int len)charreadChar()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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
-
-
-
-
Method Detail
-
readChar
public char readChar() throws java.io.IOException- Specified by:
readCharin interfacenet.sourceforge.pmd.lang.ast.CharStream- Overrides:
readCharin classnet.sourceforge.pmd.lang.ast.SimpleCharStream- Throws:
java.io.IOException
-
GetSuffix
public char[] GetSuffix(int len)
- Specified by:
GetSuffixin interfacenet.sourceforge.pmd.lang.ast.CharStream- Overrides:
GetSuffixin classnet.sourceforge.pmd.lang.ast.SimpleCharStream
-
GetImage
public java.lang.String GetImage()
- Specified by:
GetImagein interfacenet.sourceforge.pmd.lang.ast.CharStream- Overrides:
GetImagein classnet.sourceforge.pmd.lang.ast.SimpleCharStream
-
-