|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.jeffpalm.javaparser.CharStream
com.jeffpalm.javaparser.JavaCharStream
public class JavaCharStream
An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (with java-like unicode escape processing).
| Field Summary | |
|---|---|
protected char[] |
nextCharBuf
|
protected int |
nextCharInd
|
| Fields inherited from class com.jeffpalm.javaparser.CharStream |
|---|
ASCII, available, bufcolumn, buffer, bufline, bufpos, bufsize, column, FULL_CHAR, inBuf, inputStream, JAVA_LIKE, line, maxNextCharInd, prevCharIsCR, prevCharIsLF, staticFlag, tokenBegin, UNICODE |
| Constructor Summary | |
|---|---|
JavaCharStream(java.io.Reader dstream)
|
|
JavaCharStream(java.io.Reader dstream,
int startline,
int startcolumn,
int buffersize)
|
|
| Method Summary | |
|---|---|
void |
adjustBeginLineColumn(int newLine,
int newCol)
Method to adjust line and column numbers for the start of a token. |
protected void |
AdjustBuffSize()
|
void |
backup(int amount)
Description of the Method |
char |
BeginToken()
Description of the Method |
void |
Done()
|
protected void |
ExpandBuff(boolean wrapAround)
|
protected void |
FillBuff()
|
java.lang.String |
GetImage()
Description of the Method |
char[] |
GetSuffix(int len)
Description of the Method |
char |
readChar()
Description of the Method |
protected char |
ReadChar()
|
void |
ReInit(java.io.Reader dstream,
int startline,
int startcolumn,
int buffersize)
Description of the Method |
protected void |
UpdateLineColumn(char c)
|
| Methods inherited from class com.jeffpalm.javaparser.CharStream |
|---|
getBeginColumn, getBeginLine, getColumn, getEndColumn, getEndLine, getLine, make, make, make, make, ReInit, ReInit, ReInit, setCharStreamType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected char[] nextCharBuf
protected int nextCharInd
| Constructor Detail |
|---|
public JavaCharStream(java.io.Reader dstream)
public JavaCharStream(java.io.Reader dstream,
int startline,
int startcolumn,
int buffersize)
| Method Detail |
|---|
protected void ExpandBuff(boolean wrapAround)
protected void FillBuff()
throws java.io.IOException
java.io.IOException
protected char ReadChar()
throws java.io.IOException
java.io.IOException
public char BeginToken()
throws java.io.IOException
CharStream
BeginToken in class CharStreamjava.io.IOException - Description of Exceptionprotected void AdjustBuffSize()
protected void UpdateLineColumn(char c)
public char readChar()
throws java.io.IOException
CharStream
readChar in class CharStreamjava.io.IOException - Description of Exceptionpublic void backup(int amount)
CharStream
backup in class CharStreamamount - Description of Parameter
public void ReInit(java.io.Reader dstream,
int startline,
int startcolumn,
int buffersize)
CharStream
ReInit in class CharStreamdstream - Description of Parameterstartline - Description of Parameterstartcolumn - Description of Parameterbuffersize - Description of Parameterpublic java.lang.String GetImage()
CharStream
GetImage in class CharStreampublic char[] GetSuffix(int len)
CharStream
GetSuffix in class CharStreamlen - Description of Parameter
public void Done()
public void adjustBeginLineColumn(int newLine,
int newCol)
adjustBeginLineColumn in class CharStreamnewLine - Description of ParameternewCol - Description of Parameter
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||