net.sourceforge.pmd.cpd.cppast
public class SimpleCharStream extends Object
Field Summary | |
---|---|
protected static int[] | bufcolumn |
protected static char[] | buffer |
protected static int[] | bufline |
static int | bufpos Position in buffer. |
protected static int | column |
protected static int | inBuf |
protected static Reader | inputStream |
protected static int | line |
protected static int | maxNextCharInd |
protected static boolean | prevCharIsCR |
protected static boolean | prevCharIsLF |
static boolean | staticFlag Whether parser is static. |
protected static int | tabSize |
Constructor Summary | |
---|---|
SimpleCharStream(Reader dstream, int startline, int startcolumn, int buffersize) Constructor. | |
SimpleCharStream(Reader dstream, int startline, int startcolumn) Constructor. | |
SimpleCharStream(Reader dstream) Constructor. | |
SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) Constructor. | |
SimpleCharStream(InputStream dstream, int startline, int startcolumn, int buffersize) Constructor. | |
SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn) Constructor. | |
SimpleCharStream(InputStream dstream, int startline, int startcolumn) Constructor. | |
SimpleCharStream(InputStream dstream, String encoding) Constructor. | |
SimpleCharStream(InputStream dstream) Constructor. |
Method Summary | |
---|---|
static void | adjustBeginLineColumn(int newLine, int newCol)
Method to adjust line and column numbers for the start of a token. |
static void | backup(int amount) Backup a number of characters. |
static char | BeginToken() Start. |
static void | Done() Reset buffer when finished. |
protected static void | ExpandBuff(boolean wrapAround) |
protected static void | FillBuff() |
static int | getBeginColumn() Get token beginning column number. |
static int | getBeginLine() Get token beginning line number. |
static int | getColumn() |
static int | getEndColumn() Get token end column number. |
static int | getEndLine() Get token end line number. |
static int | getLine() |
protected static int | getTabSize(int i) |
static String | GetImage() Get token literal value. |
static char[] | GetSuffix(int len) Get the suffix. |
static char | readChar() Read a character. |
void | ReInit(Reader dstream, int startline, int startcolumn, int buffersize) Reinitialise. |
void | ReInit(Reader dstream, int startline, int startcolumn) Reinitialise. |
void | ReInit(Reader dstream) Reinitialise. |
void | ReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) Reinitialise. |
void | ReInit(InputStream dstream, int startline, int startcolumn, int buffersize) Reinitialise. |
void | ReInit(InputStream dstream, String encoding) Reinitialise. |
void | ReInit(InputStream dstream) Reinitialise. |
void | ReInit(InputStream dstream, String encoding, int startline, int startcolumn) Reinitialise. |
void | ReInit(InputStream dstream, int startline, int startcolumn) Reinitialise. |
protected static void | setTabSize(int i) |
protected static void | UpdateLineColumn(char c) |
Deprecated:
See Also: SimpleCharStream
Deprecated:
See Also: SimpleCharStream