Class ExpiryDateGrammar
- All Implemented Interfaces:
com.walkfares.calendar.expiry.grammar.ExpiryRuleVisitor<UTCDate>
,org.antlr.v4.runtime.tree.ParseTreeVisitor<UTCDate>
public class ExpiryDateGrammar extends com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor<UTCDate>
-
Constructor Summary
Constructors Constructor Description ExpiryDateGrammar(Calendar tradingCalendar, UTCDate start)
-
Method Summary
Modifier and Type Method Description static UTCDate
getDelivery(CurveDate curveDate, PeriodCode pc, String code)
static UTCDate
getExpiry(Calendar tradingCalendar, UTCDate start, String code)
UTCDate
visitAlign(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.AlignContext ctx)
Visit a parse tree produced byExpiryRuleParser.align()
.UTCDate
visitException(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.ExceptionContext ctx)
Visit a parse tree produced byExpiryRuleParser.exception()
.UTCDate
visitLastday(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.LastdayContext ctx)
Visit a parse tree produced byExpiryRuleParser.lastday()
.UTCDate
visitMoveperiod(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.MoveperiodContext ctx)
Visit a parse tree produced byExpiryRuleParser.moveperiod()
.UTCDate
visitMoverel(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.MoverelContext ctx)
Visit a parse tree produced byExpiryRuleParser.moverel()
.UTCDate
visitPenultimate(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.PenultimateContext ctx)
Visit a parse tree produced byExpiryRuleParser.penultimate()
.Methods inherited from class com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
visitDate, visitDelivery, visitEomday, visitExpiry, visitHolidayproximity, visitMove, visitMoveabs, visitNonbusinessdayproximity, visitPeriodcode, visitSomday, visitStart, visitTimelimit
Methods inherited from class org.antlr.v4.runtime.tree.AbstractParseTreeVisitor
visit, visitChildren, visitErrorNode, visitTerminal
-
Constructor Details
-
Method Details
-
getExpiry
-
getDelivery
-
visitMoverel
public UTCDate visitMoverel(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.MoverelContext ctx)Description copied from class:com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
Visit a parse tree produced byExpiryRuleParser.moverel()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitMoveperiod
public UTCDate visitMoveperiod(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.MoveperiodContext ctx)Description copied from class:com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
Visit a parse tree produced byExpiryRuleParser.moveperiod()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitLastday
public UTCDate visitLastday(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.LastdayContext ctx)Description copied from class:com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
Visit a parse tree produced byExpiryRuleParser.lastday()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitPenultimate
public UTCDate visitPenultimate(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.PenultimateContext ctx)Description copied from class:com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
Visit a parse tree produced byExpiryRuleParser.penultimate()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitAlign
Description copied from class:com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
Visit a parse tree produced byExpiryRuleParser.align()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
. -
visitException
public UTCDate visitException(com.walkfares.calendar.expiry.grammar.ExpiryRuleParser.ExceptionContext ctx)Description copied from class:com.walkfares.calendar.expiry.grammar.ExpiryRuleBaseVisitor
Visit a parse tree produced byExpiryRuleParser.exception()
.The default implementation returns the result of calling
AbstractParseTreeVisitor.visitChildren(org.antlr.v4.runtime.tree.RuleNode)
onctx
.
-