org.mmbase.util.dateparser
Class DateParser

java.lang.Object
  extended byorg.mmbase.util.dateparser.DateParser
All Implemented Interfaces:
DateParserConstants

public class DateParser
extends Object
implements DateParserConstants


Field Summary
static TimeZone defaultTimeZone
           
 Token jj_nt
           
 boolean lookingAhead
           
 Token token
           
 DateParserTokenManager token_source
           
 
Fields inherited from interface org.mmbase.util.dateparser.DateParserConstants
DEFAULT, EOF, NEXT, POSITIVE, PREVIOUS, THIS, THOUSANDS, TIMEZONE, tokenImage
 
Constructor Summary
DateParser(DateParserTokenManager tm)
           
DateParser(InputStream stream)
           
DateParser(InputStream stream, String encoding)
           
DateParser(Reader stream)
           
 
Method Summary
protected  void beginOfDay()
           
protected  void beginOfHour()
           
protected  void beginOfMonth()
           
protected  void beginOfYear()
           
 void date()
           
 void day_number()
           
 void day_of_week()
           
 void decrement()
           
 void disable_tracing()
           
 boolean dynamic()
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
 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_number()
           
 void month_of_year()
           
 void next()
           
protected  void now()
           
 void previous()
           
 void ReInit(DateParserTokenManager tm)
           
 void ReInit(InputStream stream)
           
 void ReInit(InputStream stream, String encoding)
           
 void ReInit(Reader stream)
           
 void second_number()
           
static void setDefault(TimeZone tz)
           
 void start()
           
 void time_zone()
           
 void time()
           
 Date toDate()
           
 void year_number()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

defaultTimeZone

public static TimeZone defaultTimeZone

token_source

public DateParserTokenManager token_source

token

public Token token

jj_nt

public Token jj_nt

lookingAhead

public boolean lookingAhead
Constructor Detail

DateParser

public DateParser(InputStream stream)

DateParser

public DateParser(InputStream stream,
                  String encoding)

DateParser

public DateParser(Reader stream)

DateParser

public DateParser(DateParserTokenManager tm)
Method Detail

setDefault

public static void setDefault(TimeZone tz)

main

public static void main(String[] argv)
                 throws ParseException,
                        InterruptedException
Throws:
ParseException
InterruptedException

toDate

public Date toDate()

dynamic

public boolean dynamic()

beginOfHour

protected void beginOfHour()

beginOfDay

protected void beginOfDay()

beginOfMonth

protected void beginOfMonth()

beginOfYear

protected void beginOfYear()

now

protected void now()

start

public final void start()
                 throws ParseException
Throws:
ParseException

time

public final void time()
                throws ParseException
Throws:
ParseException

date

public final void date()
                throws ParseException
Throws:
ParseException

time_zone

public final void time_zone()
                     throws ParseException
Throws:
ParseException

integer

public final void integer()
                   throws ParseException
Throws:
ParseException

year_number

public final void year_number()
                       throws ParseException
Throws:
ParseException

inc_number

public final void inc_number()
                      throws ParseException
Throws:
ParseException

month_number

public final void month_number()
                        throws ParseException
Throws:
ParseException

day_number

public final void day_number()
                      throws ParseException
Throws:
ParseException

hour_number

public final void hour_number()
                       throws ParseException
Throws:
ParseException

minute_number

public final void minute_number()
                         throws ParseException
Throws:
ParseException

second_number

public final void second_number()
                         throws ParseException
Throws:
ParseException

millisecond_number

public final void millisecond_number()
                              throws ParseException
Throws:
ParseException

increment

public final void increment()
                     throws ParseException
Throws:
ParseException

decrement

public final void decrement()
                     throws ParseException
Throws:
ParseException

inc_period

public final void inc_period()
                      throws ParseException
Throws:
ParseException

day_of_week

public final void day_of_week()
                       throws ParseException
Throws:
ParseException

month_of_year

public final void month_of_year()
                         throws ParseException
Throws:
ParseException

next

public final void next()
                throws ParseException
Throws:
ParseException

previous

public final void previous()
                    throws ParseException
Throws:
ParseException

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(InputStream stream,
                   String encoding)

ReInit

public void ReInit(Reader stream)

ReInit

public void ReInit(DateParserTokenManager tm)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()


MMBase build 1.8.1.20060716