|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
The Jess parser reads its input from a Tokenizer. In general, the supplied ReaderTokenizer interface is sufficient for most needs.
(C) 2005 Sandia National Laboratories
Field Summary | |
static java.lang.String |
BLANK_MULTI
|
static java.lang.String |
BLANK_PREFIX
|
Method Summary | |
java.lang.String |
discardToEOL()
Discard characters from the current stream position to the end of the current line. |
void |
eatWhitespace()
Consume all characters up to, but not including, the next non-whitespace character |
int |
getStreamPos()
Return the current character offset. |
JessToken |
nextToken()
Return the next parsed token, skipping over all whitespace. |
java.lang.String |
readLine()
Return characters from the current location to the end of the current line, as a String |
void |
reportNewlines(boolean b)
Specify whether newlines should be reported as tokens |
Field Detail |
public static final java.lang.String BLANK_PREFIX
public static final java.lang.String BLANK_MULTI
Method Detail |
public void reportNewlines(boolean b)
b
- true if newlines should be reportedpublic java.lang.String readLine() throws JessException
JessException
- if anything goes wrongpublic JessToken nextToken() throws JessException
JessException
- if anything goes wrongpublic java.lang.String discardToEOL() throws JessException
JessException
- if anything goes wrongpublic int getStreamPos()
public void eatWhitespace() throws JessException
JessException
|
© 2006 Sandia Corporation | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |