Class GrammarRelative

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
com.walkfares.calendar.period.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 the balance labeled alternative in PeriodCodeParser.period().
    PeriodCode visitDated​(com.walkfares.calendar.period.grammar.PeriodCodeParser.DatedContext ctx)
    Visit a parse tree produced by the dated labeled alternative in PeriodCodeParser.period().
    PeriodCode visitPrompt​(com.walkfares.calendar.period.grammar.PeriodCodeParser.PromptContext ctx)
    Visit a parse tree produced by the prompt labeled alternative in PeriodCodeParser.period().
    PeriodCode visitSaturday​(com.walkfares.calendar.period.grammar.PeriodCodeParser.SaturdayContext ctx)
    Visit a parse tree produced by the saturday labeled alternative in PeriodCodeParser.period().
    PeriodCode visitSpot​(com.walkfares.calendar.period.grammar.PeriodCodeParser.SpotContext ctx)
    Visit a parse tree produced by the spot labeled alternative in PeriodCodeParser.period().
    PeriodCode visitSunday​(com.walkfares.calendar.period.grammar.PeriodCodeParser.SundayContext ctx)
    Visit a parse tree produced by the sunday labeled alternative in PeriodCodeParser.period().
    PeriodCode visitWithinDay​(com.walkfares.calendar.period.grammar.PeriodCodeParser.WithinDayContext ctx)
    Visit a parse tree produced by the withinDay labeled alternative in PeriodCodeParser.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

    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

    • 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 the balance 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:
      visitBalance in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitBalance in class com.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 the withinDay 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:
      visitWithinDay in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitWithinDay in class com.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 the dated 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:
      visitDated in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitDated in class com.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 the spot 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:
      visitSpot in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitSpot in class com.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 the prompt 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:
      visitPrompt in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitPrompt in class com.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 the saturday 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:
      visitSaturday in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitSaturday in class com.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 the sunday 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:
      visitSunday in interface com.walkfares.calendar.period.grammar.PeriodCodeVisitor<PeriodCode>
      Overrides:
      visitSunday in class com.walkfares.calendar.period.grammar.PeriodCodeBaseVisitor<PeriodCode>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result