Class HolidayRuleGrammar

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
com.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor<HolidayRule>
com.walkfares.calendar.holiday.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 by HolidayRuleParser.actual().
    HolidayRule visitEvery​(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.EveryContext ctx)
    Visit a parse tree produced by HolidayRuleParser.every().
    HolidayRule visitLast​(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.LastContext ctx)
    Visit a parse tree produced by HolidayRuleParser.last().
    HolidayRule visitNamed​(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.NamedContext ctx)
    Visit a parse tree produced by HolidayRuleParser.named().
    HolidayRule visitOrdinal​(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.OrdinalContext ctx)
    Visit a parse tree produced by HolidayRuleParser.ordinal().
    HolidayRule visitPenultimate​(com.walkfares.calendar.holiday.grammar.HolidayRuleParser.PenultimateContext ctx)
    Visit a parse tree produced by HolidayRuleParser.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

    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

    • parse

      public HolidayRule parse​(String text)
    • 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 by HolidayRuleParser.last().

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

      Specified by:
      visitLast in interface com.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
      Overrides:
      visitLast in class com.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 by HolidayRuleParser.penultimate().

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

      Specified by:
      visitPenultimate in interface com.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
      Overrides:
      visitPenultimate in class com.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 by HolidayRuleParser.ordinal().

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

      Specified by:
      visitOrdinal in interface com.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
      Overrides:
      visitOrdinal in class com.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 by HolidayRuleParser.actual().

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

      Specified by:
      visitActual in interface com.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
      Overrides:
      visitActual in class com.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 by HolidayRuleParser.named().

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

      Specified by:
      visitNamed in interface com.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
      Overrides:
      visitNamed in class com.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 by HolidayRuleParser.every().

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

      Specified by:
      visitEvery in interface com.walkfares.calendar.holiday.grammar.HolidayRuleVisitor<HolidayRule>
      Overrides:
      visitEvery in class com.walkfares.calendar.holiday.grammar.HolidayRuleBaseVisitor<HolidayRule>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result