Class GrammarDay

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
com.walkfares.calendar.period.GrammarDay
All Implemented Interfaces:
com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>, org.antlr.v4.runtime.tree.ParseTreeVisitor<PeriodCode>

public class GrammarDay
extends com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
  • Constructor Summary

    Constructors 
    Constructor Description
    GrammarDay()  
  • Method Summary

    Modifier and Type Method Description
    PeriodCode visitDay​(com.walkfares.calendar.period.grammar.PeriodCodeParser.DayContext ctx)
    Visit a parse tree produced by the day labeled alternative in PeriodCodeParser.period().
    PeriodCode visitDayahead​(com.walkfares.calendar.period.grammar.PeriodCodeParser.DayaheadContext ctx)
    Visit a parse tree produced by the dayahead labeled alternative in PeriodCodeParser.period().
    PeriodCode visitHalfHour​(com.walkfares.calendar.period.grammar.PeriodCodeParser.HalfHourContext ctx)
    Visit a parse tree produced by the halfHour labeled alternative in PeriodCodeParser.period().
    PeriodCode visitHour​(com.walkfares.calendar.period.grammar.PeriodCodeParser.HourContext ctx)
    Visit a parse tree produced by the hour labeled alternative in PeriodCodeParser.period().
    PeriodCode visitQuarterHour​(com.walkfares.calendar.period.grammar.PeriodCodeParser.QuarterHourContext ctx)
    Visit a parse tree produced by the quarterHour labeled alternative in PeriodCodeParser.period().

    Methods inherited from class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor

    visitBalance, visitDated, visitDayperiod, visitEndOfMonth, visitEndOfQuarter, visitEndOfYear, visitFinancial, visitFinancialMonth, visitFinancialWeek, visitFinancialYear, visitGasYear, visitHalfMonth, visitHalfYear, visitMonth, visitMultiline, visitPrompt, visitQuarter, visitSaturday, visitSeason, visitSpot, visitSpread, visitSpring, visitSummer, visitSunday, visitTest, visitTz, visitWeek, visitWeekend, visitWinter, visitWithinDay, visitWorkingWeek, visitYear, visitYearMonth

    Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor

    visit, visitChildren, visitErrorNode, visitTerminal

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.antlr.v4.runtime.tree.ParseTreeVisitor

    visit, visitChildren, visitErrorNode, visitTerminal
  • Constructor Details

  • Method Details

    • visitQuarterHour

      public PeriodCode visitQuarterHour​(com.walkfares.calendar.period.grammar.PeriodCodeParser.QuarterHourContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the quarterHour labeled alternative in PeriodCodeParser.period().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitQuarterHour in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitQuarterHour in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitHour

      public PeriodCode visitHour​(com.walkfares.calendar.period.grammar.PeriodCodeParser.HourContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the hour labeled alternative in PeriodCodeParser.period().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitHour in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitHour in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitHalfHour

      public PeriodCode visitHalfHour​(com.walkfares.calendar.period.grammar.PeriodCodeParser.HalfHourContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the halfHour labeled alternative in PeriodCodeParser.period().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitHalfHour in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitHalfHour in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitDay

      public PeriodCode visitDay​(com.walkfares.calendar.period.grammar.PeriodCodeParser.DayContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the day labeled alternative in PeriodCodeParser.period().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitDay in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitDay in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitDayahead

      public PeriodCode visitDayahead​(com.walkfares.calendar.period.grammar.PeriodCodeParser.DayaheadContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the dayahead labeled alternative in PeriodCodeParser.period().

      The default implementation returns the result of calling AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode) on ctx.

      Specified by:
      visitDayahead in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitDayahead in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result