Class HolidayRuleGrammar
- All Implemented Interfaces:
com.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<HolidayRule>
public class HolidayRuleGrammar extends com.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor<HolidayRule>
-
Constructor Summary
Constructors Constructor Description HolidayRuleGrammar()
-
Method Summary
Modifier and Type Method Description HolidayRule
parse(String text)
HolidayRule
visitActual(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.ActualContext ctx)
Visit a parse tree produced byHolidayRuleParser.actual()
.HolidayRule
visitEvery(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.EveryContext ctx)
Visit a parse tree produced byHolidayRuleParser.every()
.HolidayRule
visitLast(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.LastContext ctx)
Visit a parse tree produced byHolidayRuleParser.last()
.HolidayRule
visitNamed(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.NamedContext ctx)
Visit a parse tree produced byHolidayRuleParser.named()
.HolidayRule
visitOrdinal(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.OrdinalContext ctx)
Visit a parse tree produced byHolidayRuleParser.ordinal()
.HolidayRule
visitPenultimate(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.PenultimateContext ctx)
Visit a parse tree produced byHolidayRuleParser.penultimate()
.Methods inherited from class com.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor
visitOption, visitStart
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
HolidayRuleGrammar
public HolidayRuleGrammar()
-
-
Method Details
-
parse
-
visitLast
public HolidayRule visitLast(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.LastContext ctx)Description copied from class:com.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor
Visit a parse tree produced byHolidayRuleParser.last()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitLast
in interfacecom.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
- Overrides:
visitLast
in classcom.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor<HolidayRule>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPenultimate
public HolidayRule visitPenultimate(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.PenultimateContext ctx)Description copied from class:com.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor
Visit a parse tree produced byHolidayRuleParser.penultimate()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPenultimate
in interfacecom.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
- Overrides:
visitPenultimate
in classcom.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor<HolidayRule>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitOrdinal
public HolidayRule visitOrdinal(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.OrdinalContext ctx)Description copied from class:com.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor
Visit a parse tree produced byHolidayRuleParser.ordinal()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitOrdinal
in interfacecom.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
- Overrides:
visitOrdinal
in classcom.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor<HolidayRule>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitActual
public HolidayRule visitActual(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.ActualContext ctx)Description copied from class:com.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor
Visit a parse tree produced byHolidayRuleParser.actual()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitActual
in interfacecom.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
- Overrides:
visitActual
in classcom.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor<HolidayRule>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitNamed
public HolidayRule visitNamed(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.NamedContext ctx)Description copied from class:com.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor
Visit a parse tree produced byHolidayRuleParser.named()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitNamed
in interfacecom.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
- Overrides:
visitNamed
in classcom.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor<HolidayRule>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitEvery
public HolidayRule visitEvery(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.EveryContext ctx)Description copied from class:com.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor
Visit a parse tree produced byHolidayRuleParser.every()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitEvery
in interfacecom.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
- Overrides:
visitEvery
in classcom.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor<HolidayRule>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-