|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hecl.ParseState
public class ParseState
The ParseState
class is the state of the current parse.
Field Summary | |
---|---|
boolean |
eoc
|
boolean |
eof
|
int |
len
|
int |
lineno
|
Constructor Summary | |
---|---|
ParseState(java.lang.String in)
Creates a new ParseState instance. |
Method Summary | |
---|---|
boolean |
done()
The done method returns true if either the
end-of-command or end-of-file condition is true. |
char |
nextchar()
nextchar returns the next character, keeping track of
end-of-command and end-of-file conditions. |
void |
remaining()
The remaining method is for debugging purposes, and
prints to standard output the remaining text. |
void |
rewind()
The rewind method "rewinds" the input by one
character. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int len
public int lineno
public boolean eof
public boolean eoc
Constructor Detail |
---|
public ParseState(java.lang.String in)
ParseState
instance.
in
- a String
valueMethod Detail |
---|
public char nextchar()
nextchar
returns the next character, keeping track of
end-of-command and end-of-file conditions.
char
valuepublic boolean done()
done
method returns true if either the
end-of-command or end-of-file condition is true.
boolean
valuepublic void remaining()
remaining
method is for debugging purposes, and
prints to standard output the remaining text.
public void rewind()
rewind
method "rewinds" the input by one
character.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |