|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Tokenizer
The Jess parser reads its input from a Tokenizer. In general, the supplied ReaderTokenizer implementation is sufficient for most needs.
(C) 2013 Sandia Corporation
ReaderTokenizer
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 |
---|
static final java.lang.String BLANK_PREFIX
static final java.lang.String BLANK_MULTI
Method Detail |
---|
void reportNewlines(boolean b)
b
- true if newlines should be reportedjava.lang.String readLine() throws JessException
JessException
- if anything goes wrongJessToken nextToken() throws JessException
JessException
- if anything goes wrongjava.lang.String discardToEOL() throws JessException
JessException
- if anything goes wrongint getStreamPos()
void eatWhitespace() throws JessException
JessException
|
© 2013 Sandia Corporation | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |