|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.histpop.ohpr.frames.dateparser.DateScanner
public class DateScanner
A lexical token scanner for the dates as submitted from the query form.
Field Summary | |
---|---|
protected static int |
eof
|
protected java.io.Reader |
instream
|
protected int |
lastPos
|
protected int |
next_char
|
protected int |
pos
|
protected java.lang.String |
queryString
|
Constructor Summary | |
---|---|
DateScanner(java.lang.String queryString)
|
Method Summary | |
---|---|
protected void |
advance()
advance input by one character |
protected void |
init()
initialize the scanner |
protected int |
lookahead()
get a look ahead character, within advancing on the input stream |
java_cup.runtime.Symbol |
next_token()
Return the next token, or new Symbol(0) on end-of-file. |
java.lang.String |
parsedString()
find the token string which has been parsed so far |
protected java.lang.String |
remainingString()
find the remaining unscanned token string |
protected java.lang.Integer |
scanNumber()
scan for an unsigned integer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected java.io.Reader instream
protected int next_char
protected static final int eof
protected int pos
protected int lastPos
protected java.lang.String queryString
Constructor Detail |
---|
public DateScanner(java.lang.String queryString)
Method Detail |
---|
protected void advance() throws java.io.IOException
java.io.IOException
protected void init() throws java.io.IOException
java.io.IOException
protected java.lang.String remainingString()
public java.lang.String parsedString()
protected java.lang.Integer scanNumber() throws java.lang.Exception
java.lang.Exception
protected int lookahead() throws java.io.IOException
java.io.IOException
public java_cup.runtime.Symbol next_token() throws java.lang.Exception
new Symbol(0)
on end-of-file.
next_token
in interface java_cup.runtime.Scanner
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |