public final class QuartzCronExpression extends Object
Cron expressions are comprised of 6 required fields and one optional field separated by white space. Based on the CronExpression from Quartz.
| Modifier and Type | Class and Description |
|---|---|
static class |
QuartzCronExpression.ValueSet |
| Modifier and Type | Field and Description |
|---|---|
protected static Map<String,Integer> |
dayMap |
static int |
MAX_YEAR |
protected static Map<String,Integer> |
monthMap |
| Constructor and Description |
|---|
QuartzCronExpression(String cronExpression)
Constructs a new
QuartzCronExpression based on the specified
parameter. |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addToSet(int val,
int end,
int incr,
int type) |
protected void |
buildExpression(String expression) |
protected int |
checkNext(int pos,
String s,
int val,
int type) |
protected int |
findNextWhiteSpace(int i,
String s) |
protected int |
getDayOfWeekNumber(String s) |
protected int |
getMonthNumber(String s) |
protected int |
getNumericValue(String s,
int i) |
protected QuartzCronExpression.ValueSet |
getValue(int v,
String s,
int i) |
protected int |
skipWhiteSpace(int i,
String s) |
protected int |
storeExpressionVals(int pos,
String s,
int type) |
String |
toString()
Returns the string representation of the
QuartzCronExpression |
public QuartzCronExpression(String cronExpression) throws ParseException
QuartzCronExpression based on the specified
parameter.cronExpression - String representation of the cron expression the
new object should representParseException - if the string expression cannot be parsed into a valid
QuartzCronExpressionpublic String toString()
QuartzCronExpressiontoString in class ObjectQuartzCronExpressionprotected void buildExpression(String expression) throws ParseException
ParseExceptionprotected int checkNext(int pos,
String s,
int val,
int type)
throws ParseException
ParseExceptionprotected int skipWhiteSpace(int i,
String s)
protected int findNextWhiteSpace(int i,
String s)
protected void addToSet(int val,
int end,
int incr,
int type)
throws ParseException
ParseExceptionprotected QuartzCronExpression.ValueSet getValue(int v, String s, int i)
protected int getNumericValue(String s, int i)
protected int getMonthNumber(String s)
protected int getDayOfWeekNumber(String s)
protected int storeExpressionVals(int pos,
String s,
int type)
throws ParseException
ParseExceptionCopyright © 2020 Pivotal Software, Inc.. All rights reserved.