sleep.parser
public class StringIterator extends Object
Field Summary | |
---|---|
protected int | begin |
protected int | lineNo |
protected LinkedList | mark1 |
protected LinkedList | mark2 |
protected int | position |
protected char[] | text |
protected String | texts |
Constructor Summary | |
---|---|
StringIterator(String text) | |
StringIterator(String _text, int _lineNo) |
Method Summary | |
---|---|
String | getEntireLine() |
Token | getErrorToken() |
int | getLineMarker() |
int | getLineNumber() |
boolean | hasNext() check that there is another character out there for us to get |
boolean | hasNext(int n) check that there are at least n chars we can still get |
boolean | isNextChar(char n) |
boolean | isNextString(String n) |
static void | main(String[] args) |
void | mark() |
String | next(int n) returns the string consisting of the next n characters. |
char | next() moves the iterator forward one char |
char | peek() |
String | reset() |
void | skip(int n) does a direct skip of n characters, use only when you know what the chars are.. this will not increment the line number counter |
String | toString() |