package wjw.cron.ex; import java.text.ParseException; import java.util.Set; import java.util.StringTokenizer; import org.quartz.*; /** * * @author Administrator */ public class CronExpressionEx extends CronExpression { public static final Integer ALL_SPEC = new Integer(ALL_SPEC_INT); public static final int NO_SPEC_INT = 98; // '?' private String secondsExp; private String minutesExp; private String hoursExp; private String daysOfMonthExp; private String monthsExp; private String daysOfWeekExp; public CronExpressionEx(String cronExpression) throws ParseException { super(cronExpression); StringTokenizer exprsTok = new StringTokenizer(cronExpression, " \t", false); secondsExp = exprsTok.nextToken().trim(); minutesExp = exprsTok.nextToken().trim(); hoursExp = exprsTok.nextToken().trim(); daysOfMonthExp = exprsTok.nextToken().trim(); monthsExp = exprsTok.nextToken().trim(); daysOfWeekExp = exprsTok.nextToken().trim(); } public Set getSecondsSet() { return seconds; } public String getSecondsField() { return getExpressionSetSummary(seconds); } public Set getMinutesSet() { return minutes; } public String getMinutesField() { return getExpressionSetSummary(minutes); } public Set getHoursSet() { return hours; } public String getHoursField() { return getExpressionSetSummary(hours); } public Set getDaysOfMonthSet() { return daysOfMonth; } public String getDaysOfMonthField() { return getExpressionSetSummary(daysOfMonth); } public Set getMonthsSet() { return months; } public String getMonthsField() { return getExpressionSetSummary(months); } public Set getDaysOfWeekSet() { return daysOfWeek; } public String getDaysOfWeekField() { return getExpressionSetSummary(daysOfWeek); } public String getSecondsExp() { return secondsExp; } public String getMinutesExp() { return minutesExp; } public String getHoursExp() { return hoursExp; } public String getDaysOfMonthExp() { return daysOfMonthExp; } public String getMonthsExp() { return monthsExp; } public String getDaysOfWeekExp() { return daysOfWeekExp; } }
最近下载更多
1358849392 LV20
2022年11月23日
675104182 LV14
2020年9月22日
raven123 LV1
2020年1月7日
mingdongkeji LV12
2019年12月23日
werwrer LV6
2019年11月4日
leonwang12341 LV1
2019年9月8日
小小滑头鱼 LV26
2019年6月20日
qiheideguang LV16
2019年6月13日
luocheng LV18
2019年4月4日
toushita LV9
2019年2月22日
最近浏览更多
Hachi6 LV13
2022年12月4日
1358849392 LV20
2022年11月23日
Firms11
2022年8月24日
暂无贡献等级
cz8857216 LV4
2022年5月9日
denliv_hui LV13
2021年10月20日
一个好人520 LV10
2021年9月29日
interface LV22
2021年6月14日
无花空折枝 LV9
2021年5月8日
15817213218 LV12
2020年11月26日
675104182 LV14
2020年9月21日