org.objectledge.scheduler.cron
Class CronParser

java.lang.Object
  extended by org.objectledge.scheduler.cron.CronParser
All Implemented Interfaces:
CronParserConstants

public class CronParser
extends Object
implements CronParserConstants


Nested Class Summary
(package private) static class CronParser.JJCalls
           
private static class CronParser.LookaheadSuccess
           
 
Field Summary
private  CronParser.JJCalls[] jj_2_rtns
           
private  int jj_endpos
           
private  Vector jj_expentries
           
private  int[] jj_expentry
           
private  int jj_gc
           
private  int jj_gen
           
(package private)  JavaCharStream jj_input_stream
           
private  int jj_kind
           
private  int jj_la
           
private  int[] jj_la1
           
private static int[] jj_la1_0
           
private static int[] jj_la1_1
           
private  Token jj_lastpos
           
private  int[] jj_lasttokens
           
private  CronParser.LookaheadSuccess jj_ls
           
 Token jj_nt
           
private  boolean jj_rescan
           
private  Token jj_scanpos
           
private  boolean jj_semLA
           
 boolean lookingAhead
           
private static String[] monthName
           
private static int[][] spec_daily
           
private static int[][] spec_hourly
           
private static int[][] spec_monthly
           
private static int[][] spec_reboot
           
private static int[][] spec_weekly
           
private static int[][] spec_yearly
           
 Token token
           
 CronParserTokenManager token_source
           
private static String[] weekdayName
           
 
Fields inherited from interface org.objectledge.scheduler.cron.CronParserConstants
DEFAULT, DIGIT, EOF, NUMBER, tokenImage
 
Constructor Summary
CronParser(CronParserTokenManager tm)
           
CronParser(InputStream stream)
           
CronParser(Reader stream)
           
 
Method Summary
 int[][] cron_config()
           
 void disable_tracing()
           
static void dump(int[][] config)
           
 void enable_tracing()
           
 ParseException generateParseException()
           
 Token getNextToken()
           
 Token getToken(int index)
           
private  boolean jj_2_1(int xla)
           
private  boolean jj_3_1()
           
private  boolean jj_3R_3()
           
private  boolean jj_3R_4()
           
private  void jj_add_error_token(int kind, int pos)
           
private  Token jj_consume_token(int kind)
           
private static void jj_la1_0()
           
private static void jj_la1_1()
           
private  void jj_rescan_token()
           
private  void jj_save(int index, int xla)
           
private  boolean jj_scan_token(int kind)
           
 List list_of_values(int min, int max)
           
static void main(String[] args)
           
 int[] month_name()
           
 int number(int min, int max)
           
 int[][] parse(String config)
           
 List range(int min, int max)
           
 void ReInit(CronParserTokenManager tm)
           
 void ReInit(InputStream stream)
           
 void ReInit(Reader stream)
           
 int[][] special_config()
           
 void test()
           
 List value_or_range(int min, int max)
           
 int[] value_spec(int min, int max)
           
 int[] weekday_name()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

monthName

private static final String[] monthName

weekdayName

private static final String[] weekdayName

spec_reboot

private static final int[][] spec_reboot

spec_yearly

private static final int[][] spec_yearly

spec_monthly

private static final int[][] spec_monthly

spec_weekly

private static final int[][] spec_weekly

spec_daily

private static final int[][] spec_daily

spec_hourly

private static final int[][] spec_hourly

token_source

public CronParserTokenManager token_source

jj_input_stream

JavaCharStream jj_input_stream

token

public Token token

jj_nt

public Token jj_nt

jj_scanpos

private Token jj_scanpos

jj_lastpos

private Token jj_lastpos

jj_la

private int jj_la

lookingAhead

public boolean lookingAhead

jj_semLA

private boolean jj_semLA

jj_gen

private int jj_gen

jj_la1

private final int[] jj_la1

jj_la1_0

private static int[] jj_la1_0

jj_la1_1

private static int[] jj_la1_1

jj_2_rtns

private final CronParser.JJCalls[] jj_2_rtns

jj_rescan

private boolean jj_rescan

jj_gc

private int jj_gc

jj_ls

private final CronParser.LookaheadSuccess jj_ls

jj_expentries

private Vector jj_expentries

jj_expentry

private int[] jj_expentry

jj_kind

private int jj_kind

jj_lasttokens

private int[] jj_lasttokens

jj_endpos

private int jj_endpos
Constructor Detail

CronParser

public CronParser(InputStream stream)

CronParser

public CronParser(Reader stream)

CronParser

public CronParser(CronParserTokenManager tm)
Method Detail

parse

public int[][] parse(String config)
              throws ParseException,
                     ValueOutOfRangeException
Throws:
ParseException
ValueOutOfRangeException

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception

dump

public static void dump(int[][] config)

number

public final int number(int min,
                        int max)
                 throws ParseException
Throws:
ParseException

range

public final List range(int min,
                        int max)
                 throws ParseException
Throws:
ParseException

value_or_range

public final List value_or_range(int min,
                                 int max)
                          throws ParseException
Throws:
ParseException

list_of_values

public final List list_of_values(int min,
                                 int max)
                          throws ParseException
Throws:
ParseException

value_spec

public final int[] value_spec(int min,
                              int max)
                       throws ParseException
Throws:
ParseException

month_name

public final int[] month_name()
                       throws ParseException
Throws:
ParseException

weekday_name

public final int[] weekday_name()
                         throws ParseException
Throws:
ParseException

special_config

public final int[][] special_config()
                             throws ParseException
Throws:
ParseException

cron_config

public final int[][] cron_config()
                          throws ParseException
Throws:
ParseException

test

public final void test()
                throws ParseException
Throws:
ParseException

jj_2_1

private final boolean jj_2_1(int xla)

jj_3_1

private final boolean jj_3_1()

jj_3R_3

private final boolean jj_3R_3()

jj_3R_4

private final boolean jj_3R_4()

jj_la1_0

private static void jj_la1_0()

jj_la1_1

private static void jj_la1_1()

ReInit

public void ReInit(InputStream stream)

ReInit

public void ReInit(Reader stream)

ReInit

public void ReInit(CronParserTokenManager tm)

jj_consume_token

private final Token jj_consume_token(int kind)
                              throws ParseException
Throws:
ParseException

jj_scan_token

private final boolean jj_scan_token(int kind)

getNextToken

public final Token getNextToken()

getToken

public final Token getToken(int index)

jj_add_error_token

private void jj_add_error_token(int kind,
                                int pos)

generateParseException

public ParseException generateParseException()

enable_tracing

public final void enable_tracing()

disable_tracing

public final void disable_tracing()

jj_rescan_token

private final void jj_rescan_token()

jj_save

private final void jj_save(int index,
                           int xla)


Copyright © 2003-2006 objectledge.org. All Rights Reserved.