Class GrammarStandard

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

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

    Constructors 
    Constructor Description
    GrammarStandard()  
  • Method Summary

    Modifier and Type Method Description
    PeriodCode visitGasYear​(com.walkfares.calendar.period.grammar.PeriodCodeParser.GasYearContext ctx)
    Visit a parse tree produced by the gasYear labeled alternative in PeriodCodeParser.period().
    PeriodCode visitHalfMonth​(com.walkfares.calendar.period.grammar.PeriodCodeParser.HalfMonthContext ctx)
    Visit a parse tree produced by the halfMonth labeled alternative in PeriodCodeParser.period().
    PeriodCode visitHalfYear​(com.walkfares.calendar.period.grammar.PeriodCodeParser.HalfYearContext ctx)
    Visit a parse tree produced by the halfYear labeled alternative in PeriodCodeParser.period().
    PeriodCode visitMonth​(com.walkfares.calendar.period.grammar.PeriodCodeParser.MonthContext ctx)
    Visit a parse tree produced by the month labeled alternative in PeriodCodeParser.period().
    PeriodCode visitQuarter​(com.walkfares.calendar.period.grammar.PeriodCodeParser.QuarterContext ctx)
    Visit a parse tree produced by the quarter labeled alternative in PeriodCodeParser.period().
    PeriodCode visitSeason​(com.walkfares.calendar.period.grammar.PeriodCodeParser.SeasonContext ctx)
    Visit a parse tree produced by the season labeled alternative in PeriodCodeParser.period().
    PeriodCode visitSpread​(com.walkfares.calendar.period.grammar.PeriodCodeParser.SpreadContext ctx)
    Visit a parse tree produced by the spread labeled alternative in PeriodCodeParser.period().
    PeriodCode visitSpring​(com.walkfares.calendar.period.grammar.PeriodCodeParser.SpringContext ctx)
    Visit a parse tree produced by the spring labeled alternative in PeriodCodeParser.period().
    PeriodCode visitSummer​(com.walkfares.calendar.period.grammar.PeriodCodeParser.SummerContext ctx)
    Visit a parse tree produced by the summer labeled alternative in PeriodCodeParser.period().
    PeriodCode visitWeek​(com.walkfares.calendar.period.grammar.PeriodCodeParser.WeekContext ctx)
    Visit a parse tree produced by the week labeled alternative in PeriodCodeParser.period().
    PeriodCode visitWeekend​(com.walkfares.calendar.period.grammar.PeriodCodeParser.WeekendContext ctx)
    Visit a parse tree produced by the weekend labeled alternative in PeriodCodeParser.period().
    PeriodCode visitWinter​(com.walkfares.calendar.period.grammar.PeriodCodeParser.WinterContext ctx)
    Visit a parse tree produced by the winter labeled alternative in PeriodCodeParser.period().
    PeriodCode visitWorkingWeek​(com.walkfares.calendar.period.grammar.PeriodCodeParser.WorkingWeekContext ctx)
    Visit a parse tree produced by the workingWeek labeled alternative in PeriodCodeParser.period().
    PeriodCode visitYear​(com.walkfares.calendar.period.grammar.PeriodCodeParser.YearContext ctx)
    Visit a parse tree produced by the year labeled alternative in PeriodCodeParser.period().
    PeriodCode visitYearMonth​(com.walkfares.calendar.period.grammar.PeriodCodeParser.YearMonthContext ctx)
    Visit a parse tree produced by the yearMonth labeled alternative in PeriodCodeParser.period().

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

    visitBalance, visitDated, visitDay, visitDayahead, visitDayperiod, visitEndOfMonth, visitEndOfQuarter, visitEndOfYear, visitFinancial, visitFinancialMonth, visitFinancialWeek, visitFinancialYear, visitHalfHour, visitHour, visitMultiline, visitPrompt, visitQuarterHour, visitSaturday, visitSpot, visitSunday, visitTest, visitTz, visitWithinDay

    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

    • visitWeek

      public PeriodCode visitWeek​(com.walkfares.calendar.period.grammar.PeriodCodeParser.WeekContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the week 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:
      visitWeek in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitWeek in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitWeekend

      public PeriodCode visitWeekend​(com.walkfares.calendar.period.grammar.PeriodCodeParser.WeekendContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the weekend 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:
      visitWeekend in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitWeekend in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitWorkingWeek

      public PeriodCode visitWorkingWeek​(com.walkfares.calendar.period.grammar.PeriodCodeParser.WorkingWeekContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the workingWeek 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:
      visitWorkingWeek in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitWorkingWeek in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitHalfMonth

      public PeriodCode visitHalfMonth​(com.walkfares.calendar.period.grammar.PeriodCodeParser.HalfMonthContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the halfMonth 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:
      visitHalfMonth in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitHalfMonth in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitMonth

      public PeriodCode visitMonth​(com.walkfares.calendar.period.grammar.PeriodCodeParser.MonthContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the month 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:
      visitMonth in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitMonth in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitQuarter

      public PeriodCode visitQuarter​(com.walkfares.calendar.period.grammar.PeriodCodeParser.QuarterContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the quarter 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:
      visitQuarter in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitQuarter in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitSeason

      public PeriodCode visitSeason​(com.walkfares.calendar.period.grammar.PeriodCodeParser.SeasonContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the season 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:
      visitSeason in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitSeason in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitWinter

      public PeriodCode visitWinter​(com.walkfares.calendar.period.grammar.PeriodCodeParser.WinterContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the winter 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:
      visitWinter in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitWinter in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitSummer

      public PeriodCode visitSummer​(com.walkfares.calendar.period.grammar.PeriodCodeParser.SummerContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the summer 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:
      visitSummer in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitSummer in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitSpring

      public PeriodCode visitSpring​(com.walkfares.calendar.period.grammar.PeriodCodeParser.SpringContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the spring 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:
      visitSpring in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitSpring in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitYear

      public PeriodCode visitYear​(com.walkfares.calendar.period.grammar.PeriodCodeParser.YearContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the year 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:
      visitYear in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitYear in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitHalfYear

      public PeriodCode visitHalfYear​(com.walkfares.calendar.period.grammar.PeriodCodeParser.HalfYearContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the halfYear 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:
      visitHalfYear in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitHalfYear in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitYearMonth

      public PeriodCode visitYearMonth​(com.walkfares.calendar.period.grammar.PeriodCodeParser.YearMonthContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the yearMonth 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:
      visitYearMonth in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitYearMonth in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitGasYear

      public PeriodCode visitGasYear​(com.walkfares.calendar.period.grammar.PeriodCodeParser.GasYearContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the gasYear 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:
      visitGasYear in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitGasYear in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitSpread

      public PeriodCode visitSpread​(com.walkfares.calendar.period.grammar.PeriodCodeParser.SpreadContext ctx)
      Description copied from class: com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor
      Visit a parse tree produced by the spread 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:
      visitSpread in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitSpread in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result