|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectto.etc.lexer.TextReaderBase
public class TextReaderBase
A reader which helps with lexical scanning. This contains a variable lookahead text thingy.
Constructor Summary | |
---|---|
TextReaderBase(java.lang.Object source,
java.io.Reader r)
|
Method Summary | |
---|---|
void |
accept()
Called to advance the character, WITHOUT copying it. |
void |
accept(int ct)
Accept ct characters by skipping over them, they are NOT copied. |
protected void |
append(char c)
|
void |
append(int c)
|
protected void |
clearCopy()
|
void |
copy()
|
void |
copy(int count)
|
java.lang.String |
getCopied()
|
protected int |
getCurrentColumn()
|
protected int |
getCurrentLine()
|
java.lang.Object |
getSource()
|
int |
LA()
Returns the "current" character in the queue. |
int |
LA(int ix)
Returns the ixth character for lookahead. |
protected java.lang.StringBuilder |
sb()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TextReaderBase(java.lang.Object source, java.io.Reader r)
Method Detail |
---|
protected java.lang.StringBuilder sb()
public java.lang.String getCopied()
protected void clearCopy()
protected void append(char c)
public void append(int c)
public java.lang.Object getSource()
protected int getCurrentLine()
protected int getCurrentColumn()
public final int LA() throws java.io.IOException
java.io.IOException
public final int LA(int ix) throws java.io.IOException
ix
-
java.io.IOException
public void accept()
java.io.IOException
public void accept(int ct)
ct
- public void copy() throws java.io.IOException
java.io.IOException
public void copy(int count) throws java.io.IOException
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |