|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectsleep.parser.StringIterator
public class StringIterator
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()
|
char |
next()
moves the iterator forward one char |
String |
next(int n)
returns the string consisting of the next n characters. |
char |
peek()
|
String |
reset()
|
void |
skip(int n)
does a direct skip of n characters, use only when you know what the chars are.. |
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected int position
protected int lineNo
protected char[] text
protected String texts
protected int begin
protected LinkedList mark1
protected LinkedList mark2
Constructor Detail |
---|
public StringIterator(String text)
public StringIterator(String _text, int _lineNo)
Method Detail |
---|
public String toString()
toString
in class Object
public boolean hasNext()
public boolean hasNext(int n)
public int getLineNumber()
public Token getErrorToken()
public String getEntireLine()
public int getLineMarker()
public boolean isNextString(String n)
public boolean isNextChar(char n)
public char peek()
public void skip(int n)
public String next(int n)
public char next()
public void mark()
public String reset()
public static void main(String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |