Package hudson.scheduler
Class CrontabParser
java.lang.Object
org.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,org.antlr.v4.runtime.atn.ParserATNSimulator>
org.antlr.v4.runtime.Parser
hudson.scheduler.CrontabParser
public class CrontabParser
extends org.antlr.v4.runtime.Parser
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
Nested classes/interfaces inherited from class org.antlr.v4.runtime.Parser
org.antlr.v4.runtime.Parser.TraceListener, org.antlr.v4.runtime.Parser.TrimToSizeListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic final org.antlr.v4.runtime.atn.ATN
protected static final org.antlr.v4.runtime.dfa.DFA[]
static final String
protected static final org.antlr.v4.runtime.atn.PredictionContextCache
static final int
static final int
static final int
static final int
static final int
protected Hash
Used to pick a value from within the rangestatic boolean
This property hashes tokens in the cron tab tokens like @daily so that they spread evenly.static final int
static final int
static final int
static final int
static final int
static final int
Constant that indicates no step value.static final int
static final int
static final int
static final int
static final int
static final int
static final String[]
static final int
static final int
static final String[]
Deprecated.static final org.antlr.v4.runtime.Vocabulary
static final int
static final int
static final int
Fields inherited from class org.antlr.v4.runtime.Parser
_buildParseTrees, _ctx, _errHandler, _input, _parseListeners, _precedenceStack, _syntaxErrors, matchedEOF
Fields inherited from class org.antlr.v4.runtime.Recognizer
_interp, EOF
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected long
doHash
(int step, int field) UsesHash
to choose a random (but stable) value from within this field.protected long
doHash
(int s, int e, int step, int field) protected long
doRange
(int step, int field) protected long
doRange
(int start, int end, int step, int field) expr
(int field) org.antlr.v4.runtime.atn.ATN
getATN()
protected Hash
String[]
String[]
Deprecated.org.antlr.v4.runtime.Vocabulary
protected void
rangeCheck
(int value, int field) void
setErrorMessage
(String errorMessage) void
term
(int field) token()
Methods inherited from class org.antlr.v4.runtime.Parser
addContextToParseTree, addParseListener, compileParseTreePattern, compileParseTreePattern, consume, createErrorNode, createTerminalNode, dumpDFA, dumpDFA, enterOuterAlt, enterRecursionRule, enterRecursionRule, enterRule, exitRule, getATNWithBypassAlts, getBuildParseTree, getContext, getCurrentToken, getDFAStrings, getErrorHandler, getExpectedTokens, getExpectedTokensWithinCurrentRule, getInputStream, getInvokingContext, getNumberOfSyntaxErrors, getParseInfo, getParseListeners, getPrecedence, getRuleContext, getRuleIndex, getRuleInvocationStack, getRuleInvocationStack, getSourceName, getTokenFactory, getTokenStream, getTrimParseTree, inContext, isExpectedToken, isMatchedEOF, isTrace, match, matchWildcard, notifyErrorListeners, notifyErrorListeners, precpred, pushNewRecursionContext, removeParseListener, removeParseListeners, reset, setBuildParseTree, setContext, setErrorHandler, setInputStream, setProfile, setTokenFactory, setTokenStream, setTrace, setTrimParseTree, triggerEnterRuleEvent, triggerExitRuleEvent, unrollRecursionContexts
Methods inherited from class org.antlr.v4.runtime.Recognizer
action, addErrorListener, getErrorHeader, getErrorListenerDispatch, getErrorListeners, getInterpreter, getRuleIndexMap, getState, getTokenErrorDisplay, getTokenType, getTokenTypeMap, removeErrorListener, removeErrorListeners, sempred, setInterpreter, setState
-
Field Details
-
_decisionToDFA
protected static final org.antlr.v4.runtime.dfa.DFA[] _decisionToDFA -
TOKEN
public static final int TOKEN- See Also:
-
WS
public static final int WS- See Also:
-
MINUS
public static final int MINUS- See Also:
-
STAR
public static final int STAR- See Also:
-
DIV
public static final int DIV- See Also:
-
OR
public static final int OR- See Also:
-
AT
public static final int AT- See Also:
-
H
public static final int H- See Also:
-
LPAREN
public static final int LPAREN- See Also:
-
RPAREN
public static final int RPAREN- See Also:
-
YEARLY
public static final int YEARLY- See Also:
-
ANNUALLY
public static final int ANNUALLY- See Also:
-
MONTHLY
public static final int MONTHLY- See Also:
-
WEEKLY
public static final int WEEKLY- See Also:
-
DAILY
public static final int DAILY- See Also:
-
MIDNIGHT
public static final int MIDNIGHT- See Also:
-
HOURLY
public static final int HOURLY- See Also:
-
RULE_startRule
public static final int RULE_startRule- See Also:
-
RULE_expr
public static final int RULE_expr- See Also:
-
RULE_term
public static final int RULE_term- See Also:
-
RULE_token
public static final int RULE_token- See Also:
-
ruleNames
-
VOCABULARY
public static final org.antlr.v4.runtime.Vocabulary VOCABULARY -
tokenNames
Deprecated.UseVOCABULARY
instead. -
_serializedATN
- See Also:
-
_ATN
public static final org.antlr.v4.runtime.atn.ATN _ATN -
hash
Used to pick a value from within the range -
HASH_TOKENS
public static boolean HASH_TOKENSThis property hashes tokens in the cron tab tokens like @daily so that they spread evenly. -
NO_STEP
public static final int NO_STEPConstant that indicates no step value.- See Also:
-
-
Constructor Details
-
CrontabParser
public CrontabParser(org.antlr.v4.runtime.TokenStream input)
-
-
Method Details
-
getTokenNames
Deprecated.- Specified by:
getTokenNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getVocabulary
public org.antlr.v4.runtime.Vocabulary getVocabulary()- Overrides:
getVocabulary
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getGrammarFileName
- Specified by:
getGrammarFileName
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getRuleNames
- Specified by:
getRuleNames
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getSerializedATN
- Overrides:
getSerializedATN
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
getATN
public org.antlr.v4.runtime.atn.ATN getATN()- Specified by:
getATN
in classorg.antlr.v4.runtime.Recognizer<org.antlr.v4.runtime.Token,
org.antlr.v4.runtime.atn.ParserATNSimulator>
-
startRule
public final CrontabParser.StartRuleContext startRule(CronTab table) throws org.antlr.v4.runtime.RecognitionException - Throws:
org.antlr.v4.runtime.RecognitionException
-
expr
public final CrontabParser.ExprContext expr(int field) throws org.antlr.v4.runtime.RecognitionException - Throws:
org.antlr.v4.runtime.RecognitionException
-
term
public final CrontabParser.TermContext term(int field) throws org.antlr.v4.runtime.RecognitionException - Throws:
org.antlr.v4.runtime.RecognitionException
-
token
- Throws:
org.antlr.v4.runtime.RecognitionException
-
setHash
-
getErrorMessage
-
setErrorMessage
-
doRange
protected long doRange(int start, int end, int step, int field) -
doRange
protected long doRange(int step, int field) -
doHash
protected long doHash(int step, int field) UsesHash
to choose a random (but stable) value from within this field.- Parameters:
step
- Increments. For example, 15 if "H/15". OrNO_STEP
to indicate the special constant for "H" without the step value.
-
doHash
protected long doHash(int s, int e, int step, int field) -
rangeCheck
protected void rangeCheck(int value, int field) -
getHashForTokens
-
VOCABULARY
instead.