Class GrammarRelative
- All Implemented Interfaces:
com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<PeriodCode>
public class GrammarRelative extends com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
-
Constructor Summary
Constructors Constructor Description GrammarRelative()
-
Method Summary
Modifier and Type Method Description PeriodCode
visitBalance(com.walkfares.calendar.period.grammar.PeriodCodeParser.BalanceContext ctx)
Visit a parse tree produced by thebalance
labeled alternative inPeriodCodeParser.period()
.PeriodCode
visitDated(com.walkfares.calendar.period.grammar.PeriodCodeParser.DatedContext ctx)
Visit a parse tree produced by thedated
labeled alternative inPeriodCodeParser.period()
.PeriodCode
visitPrompt(com.walkfares.calendar.period.grammar.PeriodCodeParser.PromptContext ctx)
Visit a parse tree produced by theprompt
labeled alternative inPeriodCodeParser.period()
.PeriodCode
visitSaturday(com.walkfares.calendar.period.grammar.PeriodCodeParser.SaturdayContext ctx)
Visit a parse tree produced by thesaturday
labeled alternative inPeriodCodeParser.period()
.PeriodCode
visitSpot(com.walkfares.calendar.period.grammar.PeriodCodeParser.SpotContext ctx)
Visit a parse tree produced by thespot
labeled alternative inPeriodCodeParser.period()
.PeriodCode
visitSunday(com.walkfares.calendar.period.grammar.PeriodCodeParser.SundayContext ctx)
Visit a parse tree produced by thesunday
labeled alternative inPeriodCodeParser.period()
.PeriodCode
visitWithinDay(com.walkfares.calendar.period.grammar.PeriodCodeParser.WithinDayContext ctx)
Visit a parse tree produced by thewithinDay
labeled alternative inPeriodCodeParser.period()
.Methods inherited from class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
visitDay, visitDayahead, visitDayperiod, visitEndOfMonth, visitEndOfQuarter, visitEndOfYear, visitFinancial, visitFinancialMonth, visitFinancialWeek, visitFinancialYear, visitGasYear, visitHalfHour, visitHalfMonth, visitHalfYear, visitHour, visitMonth, visitMultiline, visitQuarter, visitQuarterHour, visitSeason, visitSpread, visitSpring, visitSummer, visitTest, visitTz, visitWeek, visitWeekend, visitWinter, visitWorkingWeek, visitYear, visitYearMonth
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
GrammarRelative
public GrammarRelative()
-
-
Method Details
-
visitBalance
public PeriodCode visitBalance(com.walkfares.calendar.period.grammar.PeriodCodeParser.BalanceContext ctx)Description copied from class:com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
Visit a parse tree produced by thebalance
labeled alternative inPeriodCodeParser.period()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitBalance
in interfacecom.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
- Overrides:
visitBalance
in classcom.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitWithinDay
public PeriodCode visitWithinDay(com.walkfares.calendar.period.grammar.PeriodCodeParser.WithinDayContext ctx)Description copied from class:com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
Visit a parse tree produced by thewithinDay
labeled alternative inPeriodCodeParser.period()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitWithinDay
in interfacecom.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
- Overrides:
visitWithinDay
in classcom.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitDated
public PeriodCode visitDated(com.walkfares.calendar.period.grammar.PeriodCodeParser.DatedContext ctx)Description copied from class:com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
Visit a parse tree produced by thedated
labeled alternative inPeriodCodeParser.period()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitDated
in interfacecom.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
- Overrides:
visitDated
in classcom.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSpot
public PeriodCode visitSpot(com.walkfares.calendar.period.grammar.PeriodCodeParser.SpotContext ctx)Description copied from class:com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
Visit a parse tree produced by thespot
labeled alternative inPeriodCodeParser.period()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSpot
in interfacecom.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
- Overrides:
visitSpot
in classcom.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitPrompt
public PeriodCode visitPrompt(com.walkfares.calendar.period.grammar.PeriodCodeParser.PromptContext ctx)Description copied from class:com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
Visit a parse tree produced by theprompt
labeled alternative inPeriodCodeParser.period()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitPrompt
in interfacecom.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
- Overrides:
visitPrompt
in classcom.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSaturday
public PeriodCode visitSaturday(com.walkfares.calendar.period.grammar.PeriodCodeParser.SaturdayContext ctx)Description copied from class:com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
Visit a parse tree produced by thesaturday
labeled alternative inPeriodCodeParser.period()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSaturday
in interfacecom.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
- Overrides:
visitSaturday
in classcom.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-
visitSunday
public PeriodCode visitSunday(com.walkfares.calendar.period.grammar.PeriodCodeParser.SundayContext ctx)Description copied from class:com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
Visit a parse tree produced by thesunday
labeled alternative inPeriodCodeParser.period()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.- Specified by:
visitSunday
in interfacecom.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
- Overrides:
visitSunday
in classcom.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
- Parameters:
ctx
- the parse tree- Returns:
- the visitor result
-