Package com.walkfares.calendar.expiry
Class ExpiryRuleGrammar
java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor<LimitedExpiryRule>
com.walkfares.calendar.expiry.ExpiryRuleGrammar
- All Implemented Interfaces:
com.walkfares.calendar.expiry.grammar.ExpiryRuleVisitor<LimitedExpiryRule>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<LimitedExpiryRule>
public class ExpiryRuleGrammar extends com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor<LimitedExpiryRule>
-
Constructor Summary
Constructors Constructor Description ExpiryRuleGrammar(String code)
-
Method Summary
Modifier and Type Method Description static void
checkErrors(org.antlr.v4.runtime.tree.ParseTree tree, List<String> errors)
static LimitedExpiryRule
getExpiry(String code)
LimitedExpiryRule
visitDate(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.DateContext ctx)
Visit a parse tree produced byExpiryRuleParser.date()
.LimitedExpiryRule
visitPeriodcode(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.PeriodcodeContext ctx)
Visit a parse tree produced byExpiryRuleParser.periodcode()
.LimitedExpiryRule
visitTimelimit(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.TimelimitContext ctx)
Visit a parse tree produced byExpiryRuleParser.timelimit()
.Methods inherited from class com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
visitAlign, visitDelivery, visitEomday, visitException, visitExpiry, visitHolidayproximity, visitLastday, visitMove, visitMoveabs, visitMoveperiod, visitMoverel, visitNonbusinessdayproximity, visitPenultimate, visitSomday, visitStart
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
Method Details
-
getExpiry
-
checkErrors
-
visitTimelimit
public LimitedExpiryRule visitTimelimit(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.TimelimitContext ctx)Description copied from class:com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
Visit a parse tree produced byExpiryRuleParser.timelimit()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitTimelimit
in interfacecom.walkfares.calendar.expiry.grammar.ExpiryRuleVisitor<LimitedExpiryRule>
- Overrides:
visitTimelimit
in classcom.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor<LimitedExpiryRule>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDate
public LimitedExpiryRule visitDate(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.DateContext ctx)Description copied from class:com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
Visit a parse tree produced byExpiryRuleParser.date()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDate
in interfacecom.walkfares.calendar.expiry.grammar.ExpiryRuleVisitor<LimitedExpiryRule>
- Overrides:
visitDate
in classcom.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor<LimitedExpiryRule>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPeriodcode
public LimitedExpiryRule visitPeriodcode(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.PeriodcodeContext ctx)Description copied from class:com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
Visit a parse tree produced byExpiryRuleParser.periodcode()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPeriodcode
in interfacecom.walkfares.calendar.expiry.grammar.ExpiryRuleVisitor<LimitedExpiryRule>
- Overrides:
visitPeriodcode
in classcom.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor<LimitedExpiryRule>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-