Class ExpiryRuleGrammar

java.lang.Object
org.antlr.v4.runtime.tree.AbstractParseTreeVisitor<T>
com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor<LimitedExpiryRule>
com.walkfares.calendar.expiry.ExpiryRuleGrammar
All Implemented Interfaces:
com.walkfares.calendar.expiry.grammar.ExpiryRuleVisitor<LimitedExpiryRule>, org.antlr.v4.runtime.tree.ParseTreeVisitor<LimitedExpiryRule>

public class ExpiryRuleGrammar
extends com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor<LimitedExpiryRule>
  • Constructor Summary

    Constructors 
    Constructor Description
    ExpiryRuleGrammar​(String code)  
  • Method Summary

    Modifier and Type Method Description
    static void checkErrors​(org.antlr.v4.runtime.tree.ParseTree tree, List<String> errors)  
    static LimitedExpiryRule getExpiry​(String code)  
    LimitedExpiryRule visitDate​(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.DateContext ctx)
    Visit a parse tree produced by ExpiryRuleParser.date().
    LimitedExpiryRule visitPeriodcode​(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.PeriodcodeContext ctx)
    Visit a parse tree produced by ExpiryRuleParser.periodcode().
    LimitedExpiryRule visitTimelimit​(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.TimelimitContext ctx)
    Visit a parse tree produced by ExpiryRuleParser.timelimit().

    Methods inherited from class com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor

    visitAlign, visitDelivery, visitEomday, visitException, visitExpiry, visitHolidayproximity, visitLastday, visitMove, visitMoveabs, visitMoveperiod, visitMoverel, visitNonbusinessdayproximity, visitPenultimate, visitSomday, 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

    • getExpiry

      public static LimitedExpiryRule getExpiry​(String code)
    • checkErrors

      public static void checkErrors​(org.antlr.v4.runtime.tree.ParseTree tree, List<String> errors)
    • visitTimelimit

      public LimitedExpiryRule visitTimelimit​(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.TimelimitContext ctx)
      Description copied from class: com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
      Visit a parse tree produced by ExpiryRuleParser.timelimit().

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

      Specified by:
      visitTimelimit in interface com.walkfares.calendar.expiry.grammar.ExpiryRuleVisitor<LimitedExpiryRule>
      Overrides:
      visitTimelimit in class com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor<LimitedExpiryRule>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitDate

      public LimitedExpiryRule visitDate​(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.DateContext ctx)
      Description copied from class: com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
      Visit a parse tree produced by ExpiryRuleParser.date().

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

      Specified by:
      visitDate in interface com.walkfares.calendar.expiry.grammar.ExpiryRuleVisitor<LimitedExpiryRule>
      Overrides:
      visitDate in class com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor<LimitedExpiryRule>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result
    • visitPeriodcode

      public LimitedExpiryRule visitPeriodcode​(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.PeriodcodeContext ctx)
      Description copied from class: com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
      Visit a parse tree produced by ExpiryRuleParser.periodcode().

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

      Specified by:
      visitPeriodcode in interface com.walkfares.calendar.expiry.grammar.ExpiryRuleVisitor<LimitedExpiryRule>
      Overrides:
      visitPeriodcode in class com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor<LimitedExpiryRule>
      Parameters:
      ctx - the parse tree
      Returns:
      the visitor result