public class DateParser extends Object implements DateParserConstants
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
DateParser.JJCalls |
| Modifier and Type | Field and Description |
|---|---|
static TimeZone |
defaultTimeZone |
(package private) SimpleCharStream |
jj_input_stream |
Token |
jj_nt
Next token.
|
Token |
token
Current token.
|
DateParserTokenManager |
token_source
Generated Token Manager.
|
| Constructor and Description |
|---|
DateParser(DateParserTokenManager tm)
Constructor with generated Token Manager.
|
DateParser(InputStream stream)
Constructor with InputStream.
|
DateParser(InputStream stream,
String encoding)
Constructor with InputStream and supplied encoding
|
DateParser(Reader stream)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
beginOfCentury(boolean pedantic) |
protected void |
beginOfDay() |
protected void |
beginOfEra() |
protected void |
beginOfHour() |
protected void |
beginOfMinute() |
protected void |
beginOfMonth() |
protected void |
beginOfWeek() |
protected void |
beginOfYear() |
void |
date() |
void |
day_of_month_or_week_number() |
void |
day_of_week_number() |
void |
day_of_week() |
void |
day_of_year_number() |
void |
decrement() |
void |
disable_tracing()
Disable tracing.
|
boolean |
dynamic() |
void |
enable_tracing()
Enable tracing.
|
ParseException |
generateParseException()
Generate ParseException.
|
protected Calendar |
getInstance() |
Token |
getNextToken()
Get the next Token.
|
Token |
getToken(int index)
Get the specific Token.
|
void |
hour_number() |
void |
inc_number() |
void |
inc_period() |
void |
increment() |
void |
integer() |
static void |
main(String[] argv) |
void |
millisecond_number() |
void |
minute_number() |
void |
month_of_year() |
void |
month_or_day_or_week_number() |
void |
next() |
void |
previous() |
void |
ReInit(DateParserTokenManager tm)
Reinitialise.
|
void |
ReInit(InputStream stream)
Reinitialise.
|
void |
ReInit(InputStream stream,
String encoding)
Reinitialise.
|
void |
ReInit(Reader stream)
Reinitialise.
|
void |
second_number() |
void |
seconds() |
static void |
setDefault(TimeZone tz) |
void |
start() |
void |
this_period() |
void |
time_zone() |
void |
time() |
void |
to_period() |
Date |
toDate() |
void |
unary() |
void |
week_number() |
void |
year_number() |
public static TimeZone defaultTimeZone
public DateParserTokenManager token_source
SimpleCharStream jj_input_stream
public Token token
public Token jj_nt
public DateParser(InputStream stream)
public DateParser(InputStream stream, String encoding)
public DateParser(Reader stream)
public DateParser(DateParserTokenManager tm)
public static void setDefault(TimeZone tz)
public static void main(String[] argv) throws ParseException, InterruptedException
ParseExceptionInterruptedExceptionpublic Date toDate()
public boolean dynamic()
protected void beginOfMinute()
protected void beginOfHour()
protected void beginOfDay()
protected void beginOfWeek()
protected void beginOfMonth()
protected void beginOfYear()
protected void beginOfCentury(boolean pedantic)
protected void beginOfEra()
protected Calendar getInstance()
public final void start()
throws ParseException
ParseExceptionpublic final void time()
throws ParseException
ParseExceptionpublic final void date()
throws ParseException
ParseExceptionpublic final void time_zone()
throws ParseException
ParseExceptionpublic final void unary()
throws ParseException
ParseExceptionpublic final void integer()
throws ParseException
ParseExceptionpublic final void seconds()
throws ParseException
ParseExceptionpublic final void year_number()
throws ParseException
ParseExceptionpublic final void week_number()
throws ParseException
ParseExceptionpublic final void inc_number()
throws ParseException
ParseExceptionpublic final void month_or_day_or_week_number()
throws ParseException
ParseExceptionpublic final void day_of_month_or_week_number()
throws ParseException
ParseExceptionpublic final void day_of_year_number()
throws ParseException
ParseExceptionpublic final void day_of_week_number()
throws ParseException
ParseExceptionpublic final void hour_number()
throws ParseException
ParseExceptionpublic final void minute_number()
throws ParseException
ParseExceptionpublic final void second_number()
throws ParseException
ParseExceptionpublic final void millisecond_number()
throws ParseException
ParseExceptionpublic final void increment()
throws ParseException
ParseExceptionpublic final void decrement()
throws ParseException
ParseExceptionpublic final void to_period()
throws ParseException
ParseExceptionpublic final void inc_period()
throws ParseException
ParseExceptionpublic final void this_period()
throws ParseException
ParseExceptionpublic final void day_of_week()
throws ParseException
ParseExceptionpublic final void month_of_year()
throws ParseException
ParseExceptionpublic final void next()
throws ParseException
ParseExceptionpublic final void previous()
throws ParseException
ParseExceptionpublic void ReInit(InputStream stream)
public void ReInit(InputStream stream, String encoding)
public void ReInit(Reader stream)
public void ReInit(DateParserTokenManager tm)
public final Token getNextToken()
public final Token getToken(int index)
public ParseException generateParseException()
public final void enable_tracing()
public final void disable_tracing()
MMBase 1.9-SNAPSHOT - ${javadoctimestamp}