|
||||||||||
| 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.SimpleCharStream
public class SimpleCharStream
An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).
| Field Summary | |
|---|---|
protected int[] |
bufcolumn
|
protected char[] |
buffer
|
protected int[] |
bufline
|
int |
bufpos
|
protected int |
column
|
protected int |
inBuf
|
protected java.io.Reader |
inputStream
|
protected int |
line
|
protected int |
maxNextCharInd
|
protected boolean |
prevCharIsCR
|
protected boolean |
prevCharIsLF
|
static boolean |
staticFlag
|
| Fields inherited from class com.jeffpalm.javaparser.CharStream |
|---|
ASCII, FULL_CHAR, JAVA_LIKE, UNICODE |
| Constructor Summary | |
|---|---|
SimpleCharStream(java.io.InputStream dstream)
|
|
SimpleCharStream(java.io.InputStream dstream,
int startline,
int startcolumn)
|
|
SimpleCharStream(java.io.InputStream dstream,
int startline,
int startcolumn,
int buffersize)
|
|
SimpleCharStream(java.io.Reader dstream)
|
|
SimpleCharStream(java.io.Reader dstream,
int startline,
int startcolumn)
|
|
SimpleCharStream(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. |
void |
backup(int amount)
Description of the Method |
char |
BeginToken()
Description of the Method |
void |
Done()
|
protected void |
ExpandBuff(boolean wrapAround)
|
protected void |
FillBuff()
|
int |
getBeginColumn()
Gets the BeginColumn attribute of the CharStream class |
int |
getBeginLine()
Gets the BeginLine attribute of the CharStream class |
int |
getColumn()
Deprecated. |
int |
getEndColumn()
Gets the EndColumn attribute of the CharStream class |
int |
getEndLine()
Gets the EndLine attribute of the CharStream class |
java.lang.String |
GetImage()
Description of the Method |
int |
getLine()
Deprecated. |
char[] |
GetSuffix(int len)
Description of the Method |
char |
readChar()
Description of the Method |
void |
ReInit(java.io.InputStream dstream)
|
void |
ReInit(java.io.InputStream dstream,
int startline,
int startcolumn)
Description of the Method |
void |
ReInit(java.io.InputStream dstream,
int startline,
int startcolumn,
int buffersize)
Description of the Method |
void |
ReInit(java.io.Reader dstream)
|
void |
ReInit(java.io.Reader dstream,
int startline,
int startcolumn)
Description of the Method |
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 |
|---|
make, make, make, make, setCharStreamType |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final boolean staticFlag
public int bufpos
protected int[] bufline
protected int[] bufcolumn
protected int column
protected int line
protected boolean prevCharIsCR
protected boolean prevCharIsLF
protected java.io.Reader inputStream
protected char[] buffer
protected int maxNextCharInd
protected int inBuf
| Constructor Detail |
|---|
public SimpleCharStream(java.io.Reader dstream,
int startline,
int startcolumn,
int buffersize)
public SimpleCharStream(java.io.Reader dstream,
int startline,
int startcolumn)
public SimpleCharStream(java.io.Reader dstream)
public SimpleCharStream(java.io.InputStream dstream,
int startline,
int startcolumn,
int buffersize)
public SimpleCharStream(java.io.InputStream dstream,
int startline,
int startcolumn)
public SimpleCharStream(java.io.InputStream dstream)
| Method Detail |
|---|
protected void ExpandBuff(boolean wrapAround)
protected void FillBuff()
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 UpdateLineColumn(char c)
public char readChar()
throws java.io.IOException
CharStream
readChar in class CharStreamjava.io.IOException - Description of Exceptionpublic int getColumn()
CharStream
getColumn in class CharStreamgetEndColumn()public int getLine()
CharStream
getLine in class CharStreamgetEndLine()public int getEndColumn()
CharStream
getEndColumn in class CharStreampublic int getEndLine()
CharStream
getEndLine in class CharStreampublic int getBeginColumn()
CharStream
getBeginColumn in class CharStreampublic int getBeginLine()
CharStream
getBeginLine in class CharStreampublic 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 Parameter
public void ReInit(java.io.Reader dstream,
int startline,
int startcolumn)
CharStream
ReInit in class CharStreamdstream - Description of Parameterstartline - Description of Parameterstartcolumn - Description of Parameterpublic void ReInit(java.io.Reader dstream)
public void ReInit(java.io.InputStream dstream,
int startline,
int startcolumn,
int buffersize)
CharStream
ReInit in class CharStreamdstream - Description of Parameterstartline - Description of Parameterstartcolumn - Description of Parameterbuffersize - Description of Parameterpublic void ReInit(java.io.InputStream dstream)
public void ReInit(java.io.InputStream dstream,
int startline,
int startcolumn)
CharStream
ReInit in class CharStreamdstream - Description of Parameterstartline - Description of Parameterstartcolumn - 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 | |||||||||