Documentation ¶
Index ¶
- Constants
- type BaseTrafficClassListener
- func (s *BaseTrafficClassListener) EnterCond(ctx *CondContext)
- func (s *BaseTrafficClassListener) EnterCondAll(ctx *CondAllContext)
- func (s *BaseTrafficClassListener) EnterCondAny(ctx *CondAnyContext)
- func (s *BaseTrafficClassListener) EnterCondBool(ctx *CondBoolContext)
- func (s *BaseTrafficClassListener) EnterCondCls(ctx *CondClsContext)
- func (s *BaseTrafficClassListener) EnterCondIPv4(ctx *CondIPv4Context)
- func (s *BaseTrafficClassListener) EnterCondNot(ctx *CondNotContext)
- func (s *BaseTrafficClassListener) EnterEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseTrafficClassListener) EnterMatchDSCP(ctx *MatchDSCPContext)
- func (s *BaseTrafficClassListener) EnterMatchDst(ctx *MatchDstContext)
- func (s *BaseTrafficClassListener) EnterMatchSrc(ctx *MatchSrcContext)
- func (s *BaseTrafficClassListener) EnterMatchTOS(ctx *MatchTOSContext)
- func (s *BaseTrafficClassListener) EnterTrafficClass(ctx *TrafficClassContext)
- func (s *BaseTrafficClassListener) ExitCond(ctx *CondContext)
- func (s *BaseTrafficClassListener) ExitCondAll(ctx *CondAllContext)
- func (s *BaseTrafficClassListener) ExitCondAny(ctx *CondAnyContext)
- func (s *BaseTrafficClassListener) ExitCondBool(ctx *CondBoolContext)
- func (s *BaseTrafficClassListener) ExitCondCls(ctx *CondClsContext)
- func (s *BaseTrafficClassListener) ExitCondIPv4(ctx *CondIPv4Context)
- func (s *BaseTrafficClassListener) ExitCondNot(ctx *CondNotContext)
- func (s *BaseTrafficClassListener) ExitEveryRule(ctx antlr.ParserRuleContext)
- func (s *BaseTrafficClassListener) ExitMatchDSCP(ctx *MatchDSCPContext)
- func (s *BaseTrafficClassListener) ExitMatchDst(ctx *MatchDstContext)
- func (s *BaseTrafficClassListener) ExitMatchSrc(ctx *MatchSrcContext)
- func (s *BaseTrafficClassListener) ExitMatchTOS(ctx *MatchTOSContext)
- func (s *BaseTrafficClassListener) ExitTrafficClass(ctx *TrafficClassContext)
- func (s *BaseTrafficClassListener) VisitErrorNode(node antlr.ErrorNode)
- func (s *BaseTrafficClassListener) VisitTerminal(node antlr.TerminalNode)
- type CondAllContext
- func (s *CondAllContext) ALL() antlr.TerminalNode
- func (s *CondAllContext) AllCond() []ICondContext
- func (s *CondAllContext) Cond(i int) ICondContext
- func (s *CondAllContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CondAllContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CondAllContext) GetParser() antlr.Parser
- func (s *CondAllContext) GetRuleContext() antlr.RuleContext
- func (*CondAllContext) IsCondAllContext()
- func (s *CondAllContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CondAnyContext
- func (s *CondAnyContext) ANY() antlr.TerminalNode
- func (s *CondAnyContext) AllCond() []ICondContext
- func (s *CondAnyContext) Cond(i int) ICondContext
- func (s *CondAnyContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CondAnyContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CondAnyContext) GetParser() antlr.Parser
- func (s *CondAnyContext) GetRuleContext() antlr.RuleContext
- func (*CondAnyContext) IsCondAnyContext()
- func (s *CondAnyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CondBoolContext
- func (s *CondBoolContext) BOOL() antlr.TerminalNode
- func (s *CondBoolContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CondBoolContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CondBoolContext) GetParser() antlr.Parser
- func (s *CondBoolContext) GetRuleContext() antlr.RuleContext
- func (*CondBoolContext) IsCondBoolContext()
- func (s *CondBoolContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CondClsContext
- func (s *CondClsContext) DIGITS() antlr.TerminalNode
- func (s *CondClsContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CondClsContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CondClsContext) GetParser() antlr.Parser
- func (s *CondClsContext) GetRuleContext() antlr.RuleContext
- func (*CondClsContext) IsCondClsContext()
- func (s *CondClsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CondContext
- func (s *CondContext) CondAll() ICondAllContext
- func (s *CondContext) CondAny() ICondAnyContext
- func (s *CondContext) CondBool() ICondBoolContext
- func (s *CondContext) CondCls() ICondClsContext
- func (s *CondContext) CondIPv4() ICondIPv4Context
- func (s *CondContext) CondNot() ICondNotContext
- func (s *CondContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CondContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CondContext) GetParser() antlr.Parser
- func (s *CondContext) GetRuleContext() antlr.RuleContext
- func (*CondContext) IsCondContext()
- func (s *CondContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CondIPv4Context
- func (s *CondIPv4Context) EnterRule(listener antlr.ParseTreeListener)
- func (s *CondIPv4Context) ExitRule(listener antlr.ParseTreeListener)
- func (s *CondIPv4Context) GetParser() antlr.Parser
- func (s *CondIPv4Context) GetRuleContext() antlr.RuleContext
- func (*CondIPv4Context) IsCondIPv4Context()
- func (s *CondIPv4Context) MatchDSCP() IMatchDSCPContext
- func (s *CondIPv4Context) MatchDst() IMatchDstContext
- func (s *CondIPv4Context) MatchSrc() IMatchSrcContext
- func (s *CondIPv4Context) MatchTOS() IMatchTOSContext
- func (s *CondIPv4Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type CondNotContext
- func (s *CondNotContext) Cond() ICondContext
- func (s *CondNotContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *CondNotContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *CondNotContext) GetParser() antlr.Parser
- func (s *CondNotContext) GetRuleContext() antlr.RuleContext
- func (*CondNotContext) IsCondNotContext()
- func (s *CondNotContext) NOT() antlr.TerminalNode
- func (s *CondNotContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ICondAllContext
- type ICondAnyContext
- type ICondBoolContext
- type ICondClsContext
- type ICondContext
- type ICondIPv4Context
- type ICondNotContext
- type IMatchDSCPContext
- type IMatchDstContext
- type IMatchSrcContext
- type IMatchTOSContext
- type ITrafficClassContext
- type MatchDSCPContext
- func (s *MatchDSCPContext) DIGITS() antlr.TerminalNode
- func (s *MatchDSCPContext) DSCP() antlr.TerminalNode
- func (s *MatchDSCPContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MatchDSCPContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MatchDSCPContext) GetParser() antlr.Parser
- func (s *MatchDSCPContext) GetRuleContext() antlr.RuleContext
- func (s *MatchDSCPContext) HEX_DIGITS() antlr.TerminalNode
- func (*MatchDSCPContext) IsMatchDSCPContext()
- func (s *MatchDSCPContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type MatchDstContext
- func (s *MatchDstContext) DST() antlr.TerminalNode
- func (s *MatchDstContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MatchDstContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MatchDstContext) GetParser() antlr.Parser
- func (s *MatchDstContext) GetRuleContext() antlr.RuleContext
- func (*MatchDstContext) IsMatchDstContext()
- func (s *MatchDstContext) NET() antlr.TerminalNode
- func (s *MatchDstContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type MatchSrcContext
- func (s *MatchSrcContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MatchSrcContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MatchSrcContext) GetParser() antlr.Parser
- func (s *MatchSrcContext) GetRuleContext() antlr.RuleContext
- func (*MatchSrcContext) IsMatchSrcContext()
- func (s *MatchSrcContext) NET() antlr.TerminalNode
- func (s *MatchSrcContext) SRC() antlr.TerminalNode
- func (s *MatchSrcContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type MatchTOSContext
- func (s *MatchTOSContext) DIGITS() antlr.TerminalNode
- func (s *MatchTOSContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *MatchTOSContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *MatchTOSContext) GetParser() antlr.Parser
- func (s *MatchTOSContext) GetRuleContext() antlr.RuleContext
- func (s *MatchTOSContext) HEX_DIGITS() antlr.TerminalNode
- func (*MatchTOSContext) IsMatchTOSContext()
- func (s *MatchTOSContext) TOS() antlr.TerminalNode
- func (s *MatchTOSContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type TrafficClassContext
- func (s *TrafficClassContext) Cond() ICondContext
- func (s *TrafficClassContext) EOF() antlr.TerminalNode
- func (s *TrafficClassContext) EnterRule(listener antlr.ParseTreeListener)
- func (s *TrafficClassContext) ExitRule(listener antlr.ParseTreeListener)
- func (s *TrafficClassContext) GetParser() antlr.Parser
- func (s *TrafficClassContext) GetRuleContext() antlr.RuleContext
- func (*TrafficClassContext) IsTrafficClassContext()
- func (s *TrafficClassContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type TrafficClassLexer
- type TrafficClassListener
- type TrafficClassParser
- func (p *TrafficClassParser) Cond() (localctx ICondContext)
- func (p *TrafficClassParser) CondAll() (localctx ICondAllContext)
- func (p *TrafficClassParser) CondAny() (localctx ICondAnyContext)
- func (p *TrafficClassParser) CondBool() (localctx ICondBoolContext)
- func (p *TrafficClassParser) CondCls() (localctx ICondClsContext)
- func (p *TrafficClassParser) CondIPv4() (localctx ICondIPv4Context)
- func (p *TrafficClassParser) CondNot() (localctx ICondNotContext)
- func (p *TrafficClassParser) MatchDSCP() (localctx IMatchDSCPContext)
- func (p *TrafficClassParser) MatchDst() (localctx IMatchDstContext)
- func (p *TrafficClassParser) MatchSrc() (localctx IMatchSrcContext)
- func (p *TrafficClassParser) MatchTOS() (localctx IMatchTOSContext)
- func (p *TrafficClassParser) TrafficClass() (localctx ITrafficClassContext)
Constants ¶
const ( TrafficClassLexerT__0 = 1 TrafficClassLexerT__1 = 2 TrafficClassLexerT__2 = 3 TrafficClassLexerT__3 = 4 TrafficClassLexerT__4 = 5 TrafficClassLexerT__5 = 6 TrafficClassLexerT__6 = 7 TrafficClassLexerT__7 = 8 TrafficClassLexerWHITESPACE = 9 TrafficClassLexerDIGITS = 10 TrafficClassLexerHEX_DIGITS = 11 TrafficClassLexerNET = 12 TrafficClassLexerANY = 13 TrafficClassLexerALL = 14 TrafficClassLexerNOT = 15 TrafficClassLexerBOOL = 16 TrafficClassLexerSRC = 17 TrafficClassLexerDST = 18 TrafficClassLexerDSCP = 19 TrafficClassLexerTOS = 20 )
TrafficClassLexer tokens.
const ( TrafficClassParserEOF = antlr.TokenEOF TrafficClassParserT__0 = 1 TrafficClassParserT__1 = 2 TrafficClassParserT__2 = 3 TrafficClassParserT__3 = 4 TrafficClassParserT__4 = 5 TrafficClassParserT__5 = 6 TrafficClassParserT__6 = 7 TrafficClassParserT__7 = 8 TrafficClassParserWHITESPACE = 9 TrafficClassParserDIGITS = 10 TrafficClassParserHEX_DIGITS = 11 TrafficClassParserNET = 12 TrafficClassParserANY = 13 TrafficClassParserALL = 14 TrafficClassParserNOT = 15 TrafficClassParserBOOL = 16 TrafficClassParserSRC = 17 TrafficClassParserDST = 18 TrafficClassParserDSCP = 19 TrafficClassParserTOS = 20 )
TrafficClassParser tokens.
const ( TrafficClassParserRULE_matchSrc = 0 TrafficClassParserRULE_matchDst = 1 TrafficClassParserRULE_matchDSCP = 2 TrafficClassParserRULE_matchTOS = 3 TrafficClassParserRULE_condCls = 4 TrafficClassParserRULE_condAny = 5 TrafficClassParserRULE_condAll = 6 TrafficClassParserRULE_condNot = 7 TrafficClassParserRULE_condBool = 8 TrafficClassParserRULE_condIPv4 = 9 TrafficClassParserRULE_cond = 10 TrafficClassParserRULE_trafficClass = 11 )
TrafficClassParser rules.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseTrafficClassListener ¶
type BaseTrafficClassListener struct{}
BaseTrafficClassListener is a complete listener for a parse tree produced by TrafficClassParser.
func (*BaseTrafficClassListener) EnterCond ¶
func (s *BaseTrafficClassListener) EnterCond(ctx *CondContext)
EnterCond is called when production cond is entered.
func (*BaseTrafficClassListener) EnterCondAll ¶
func (s *BaseTrafficClassListener) EnterCondAll(ctx *CondAllContext)
EnterCondAll is called when production condAll is entered.
func (*BaseTrafficClassListener) EnterCondAny ¶
func (s *BaseTrafficClassListener) EnterCondAny(ctx *CondAnyContext)
EnterCondAny is called when production condAny is entered.
func (*BaseTrafficClassListener) EnterCondBool ¶
func (s *BaseTrafficClassListener) EnterCondBool(ctx *CondBoolContext)
EnterCondBool is called when production condBool is entered.
func (*BaseTrafficClassListener) EnterCondCls ¶
func (s *BaseTrafficClassListener) EnterCondCls(ctx *CondClsContext)
EnterCondCls is called when production condCls is entered.
func (*BaseTrafficClassListener) EnterCondIPv4 ¶
func (s *BaseTrafficClassListener) EnterCondIPv4(ctx *CondIPv4Context)
EnterCondIPv4 is called when production condIPv4 is entered.
func (*BaseTrafficClassListener) EnterCondNot ¶
func (s *BaseTrafficClassListener) EnterCondNot(ctx *CondNotContext)
EnterCondNot is called when production condNot is entered.
func (*BaseTrafficClassListener) EnterEveryRule ¶
func (s *BaseTrafficClassListener) EnterEveryRule(ctx antlr.ParserRuleContext)
EnterEveryRule is called when any rule is entered.
func (*BaseTrafficClassListener) EnterMatchDSCP ¶
func (s *BaseTrafficClassListener) EnterMatchDSCP(ctx *MatchDSCPContext)
EnterMatchDSCP is called when production matchDSCP is entered.
func (*BaseTrafficClassListener) EnterMatchDst ¶
func (s *BaseTrafficClassListener) EnterMatchDst(ctx *MatchDstContext)
EnterMatchDst is called when production matchDst is entered.
func (*BaseTrafficClassListener) EnterMatchSrc ¶
func (s *BaseTrafficClassListener) EnterMatchSrc(ctx *MatchSrcContext)
EnterMatchSrc is called when production matchSrc is entered.
func (*BaseTrafficClassListener) EnterMatchTOS ¶
func (s *BaseTrafficClassListener) EnterMatchTOS(ctx *MatchTOSContext)
EnterMatchTOS is called when production matchTOS is entered.
func (*BaseTrafficClassListener) EnterTrafficClass ¶
func (s *BaseTrafficClassListener) EnterTrafficClass(ctx *TrafficClassContext)
EnterTrafficClass is called when production trafficClass is entered.
func (*BaseTrafficClassListener) ExitCond ¶
func (s *BaseTrafficClassListener) ExitCond(ctx *CondContext)
ExitCond is called when production cond is exited.
func (*BaseTrafficClassListener) ExitCondAll ¶
func (s *BaseTrafficClassListener) ExitCondAll(ctx *CondAllContext)
ExitCondAll is called when production condAll is exited.
func (*BaseTrafficClassListener) ExitCondAny ¶
func (s *BaseTrafficClassListener) ExitCondAny(ctx *CondAnyContext)
ExitCondAny is called when production condAny is exited.
func (*BaseTrafficClassListener) ExitCondBool ¶
func (s *BaseTrafficClassListener) ExitCondBool(ctx *CondBoolContext)
ExitCondBool is called when production condBool is exited.
func (*BaseTrafficClassListener) ExitCondCls ¶
func (s *BaseTrafficClassListener) ExitCondCls(ctx *CondClsContext)
ExitCondCls is called when production condCls is exited.
func (*BaseTrafficClassListener) ExitCondIPv4 ¶
func (s *BaseTrafficClassListener) ExitCondIPv4(ctx *CondIPv4Context)
ExitCondIPv4 is called when production condIPv4 is exited.
func (*BaseTrafficClassListener) ExitCondNot ¶
func (s *BaseTrafficClassListener) ExitCondNot(ctx *CondNotContext)
ExitCondNot is called when production condNot is exited.
func (*BaseTrafficClassListener) ExitEveryRule ¶
func (s *BaseTrafficClassListener) ExitEveryRule(ctx antlr.ParserRuleContext)
ExitEveryRule is called when any rule is exited.
func (*BaseTrafficClassListener) ExitMatchDSCP ¶
func (s *BaseTrafficClassListener) ExitMatchDSCP(ctx *MatchDSCPContext)
ExitMatchDSCP is called when production matchDSCP is exited.
func (*BaseTrafficClassListener) ExitMatchDst ¶
func (s *BaseTrafficClassListener) ExitMatchDst(ctx *MatchDstContext)
ExitMatchDst is called when production matchDst is exited.
func (*BaseTrafficClassListener) ExitMatchSrc ¶
func (s *BaseTrafficClassListener) ExitMatchSrc(ctx *MatchSrcContext)
ExitMatchSrc is called when production matchSrc is exited.
func (*BaseTrafficClassListener) ExitMatchTOS ¶
func (s *BaseTrafficClassListener) ExitMatchTOS(ctx *MatchTOSContext)
ExitMatchTOS is called when production matchTOS is exited.
func (*BaseTrafficClassListener) ExitTrafficClass ¶
func (s *BaseTrafficClassListener) ExitTrafficClass(ctx *TrafficClassContext)
ExitTrafficClass is called when production trafficClass is exited.
func (*BaseTrafficClassListener) VisitErrorNode ¶
func (s *BaseTrafficClassListener) VisitErrorNode(node antlr.ErrorNode)
VisitErrorNode is called when an error node is visited.
func (*BaseTrafficClassListener) VisitTerminal ¶
func (s *BaseTrafficClassListener) VisitTerminal(node antlr.TerminalNode)
VisitTerminal is called when a terminal node is visited.
type CondAllContext ¶
type CondAllContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCondAllContext ¶
func NewCondAllContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CondAllContext
func NewEmptyCondAllContext ¶
func NewEmptyCondAllContext() *CondAllContext
func (*CondAllContext) ALL ¶
func (s *CondAllContext) ALL() antlr.TerminalNode
func (*CondAllContext) AllCond ¶
func (s *CondAllContext) AllCond() []ICondContext
func (*CondAllContext) Cond ¶
func (s *CondAllContext) Cond(i int) ICondContext
func (*CondAllContext) EnterRule ¶
func (s *CondAllContext) EnterRule(listener antlr.ParseTreeListener)
func (*CondAllContext) ExitRule ¶
func (s *CondAllContext) ExitRule(listener antlr.ParseTreeListener)
func (*CondAllContext) GetParser ¶
func (s *CondAllContext) GetParser() antlr.Parser
func (*CondAllContext) GetRuleContext ¶
func (s *CondAllContext) GetRuleContext() antlr.RuleContext
func (*CondAllContext) IsCondAllContext ¶
func (*CondAllContext) IsCondAllContext()
func (*CondAllContext) ToStringTree ¶
func (s *CondAllContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CondAnyContext ¶
type CondAnyContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCondAnyContext ¶
func NewCondAnyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CondAnyContext
func NewEmptyCondAnyContext ¶
func NewEmptyCondAnyContext() *CondAnyContext
func (*CondAnyContext) ANY ¶
func (s *CondAnyContext) ANY() antlr.TerminalNode
func (*CondAnyContext) AllCond ¶
func (s *CondAnyContext) AllCond() []ICondContext
func (*CondAnyContext) Cond ¶
func (s *CondAnyContext) Cond(i int) ICondContext
func (*CondAnyContext) EnterRule ¶
func (s *CondAnyContext) EnterRule(listener antlr.ParseTreeListener)
func (*CondAnyContext) ExitRule ¶
func (s *CondAnyContext) ExitRule(listener antlr.ParseTreeListener)
func (*CondAnyContext) GetParser ¶
func (s *CondAnyContext) GetParser() antlr.Parser
func (*CondAnyContext) GetRuleContext ¶
func (s *CondAnyContext) GetRuleContext() antlr.RuleContext
func (*CondAnyContext) IsCondAnyContext ¶
func (*CondAnyContext) IsCondAnyContext()
func (*CondAnyContext) ToStringTree ¶
func (s *CondAnyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CondBoolContext ¶
type CondBoolContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCondBoolContext ¶
func NewCondBoolContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CondBoolContext
func NewEmptyCondBoolContext ¶
func NewEmptyCondBoolContext() *CondBoolContext
func (*CondBoolContext) BOOL ¶
func (s *CondBoolContext) BOOL() antlr.TerminalNode
func (*CondBoolContext) EnterRule ¶
func (s *CondBoolContext) EnterRule(listener antlr.ParseTreeListener)
func (*CondBoolContext) ExitRule ¶
func (s *CondBoolContext) ExitRule(listener antlr.ParseTreeListener)
func (*CondBoolContext) GetParser ¶
func (s *CondBoolContext) GetParser() antlr.Parser
func (*CondBoolContext) GetRuleContext ¶
func (s *CondBoolContext) GetRuleContext() antlr.RuleContext
func (*CondBoolContext) IsCondBoolContext ¶
func (*CondBoolContext) IsCondBoolContext()
func (*CondBoolContext) ToStringTree ¶
func (s *CondBoolContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CondClsContext ¶
type CondClsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCondClsContext ¶
func NewCondClsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CondClsContext
func NewEmptyCondClsContext ¶
func NewEmptyCondClsContext() *CondClsContext
func (*CondClsContext) DIGITS ¶
func (s *CondClsContext) DIGITS() antlr.TerminalNode
func (*CondClsContext) EnterRule ¶
func (s *CondClsContext) EnterRule(listener antlr.ParseTreeListener)
func (*CondClsContext) ExitRule ¶
func (s *CondClsContext) ExitRule(listener antlr.ParseTreeListener)
func (*CondClsContext) GetParser ¶
func (s *CondClsContext) GetParser() antlr.Parser
func (*CondClsContext) GetRuleContext ¶
func (s *CondClsContext) GetRuleContext() antlr.RuleContext
func (*CondClsContext) IsCondClsContext ¶
func (*CondClsContext) IsCondClsContext()
func (*CondClsContext) ToStringTree ¶
func (s *CondClsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CondContext ¶
type CondContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCondContext ¶
func NewCondContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CondContext
func NewEmptyCondContext ¶
func NewEmptyCondContext() *CondContext
func (*CondContext) CondAll ¶
func (s *CondContext) CondAll() ICondAllContext
func (*CondContext) CondAny ¶
func (s *CondContext) CondAny() ICondAnyContext
func (*CondContext) CondBool ¶
func (s *CondContext) CondBool() ICondBoolContext
func (*CondContext) CondCls ¶
func (s *CondContext) CondCls() ICondClsContext
func (*CondContext) CondIPv4 ¶
func (s *CondContext) CondIPv4() ICondIPv4Context
func (*CondContext) CondNot ¶
func (s *CondContext) CondNot() ICondNotContext
func (*CondContext) EnterRule ¶
func (s *CondContext) EnterRule(listener antlr.ParseTreeListener)
func (*CondContext) ExitRule ¶
func (s *CondContext) ExitRule(listener antlr.ParseTreeListener)
func (*CondContext) GetParser ¶
func (s *CondContext) GetParser() antlr.Parser
func (*CondContext) GetRuleContext ¶
func (s *CondContext) GetRuleContext() antlr.RuleContext
func (*CondContext) IsCondContext ¶
func (*CondContext) IsCondContext()
func (*CondContext) ToStringTree ¶
func (s *CondContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CondIPv4Context ¶
type CondIPv4Context struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCondIPv4Context ¶
func NewCondIPv4Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CondIPv4Context
func NewEmptyCondIPv4Context ¶
func NewEmptyCondIPv4Context() *CondIPv4Context
func (*CondIPv4Context) EnterRule ¶
func (s *CondIPv4Context) EnterRule(listener antlr.ParseTreeListener)
func (*CondIPv4Context) ExitRule ¶
func (s *CondIPv4Context) ExitRule(listener antlr.ParseTreeListener)
func (*CondIPv4Context) GetParser ¶
func (s *CondIPv4Context) GetParser() antlr.Parser
func (*CondIPv4Context) GetRuleContext ¶
func (s *CondIPv4Context) GetRuleContext() antlr.RuleContext
func (*CondIPv4Context) IsCondIPv4Context ¶
func (*CondIPv4Context) IsCondIPv4Context()
func (*CondIPv4Context) MatchDSCP ¶
func (s *CondIPv4Context) MatchDSCP() IMatchDSCPContext
func (*CondIPv4Context) MatchDst ¶
func (s *CondIPv4Context) MatchDst() IMatchDstContext
func (*CondIPv4Context) MatchSrc ¶
func (s *CondIPv4Context) MatchSrc() IMatchSrcContext
func (*CondIPv4Context) MatchTOS ¶
func (s *CondIPv4Context) MatchTOS() IMatchTOSContext
func (*CondIPv4Context) ToStringTree ¶
func (s *CondIPv4Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type CondNotContext ¶
type CondNotContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewCondNotContext ¶
func NewCondNotContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CondNotContext
func NewEmptyCondNotContext ¶
func NewEmptyCondNotContext() *CondNotContext
func (*CondNotContext) Cond ¶
func (s *CondNotContext) Cond() ICondContext
func (*CondNotContext) EnterRule ¶
func (s *CondNotContext) EnterRule(listener antlr.ParseTreeListener)
func (*CondNotContext) ExitRule ¶
func (s *CondNotContext) ExitRule(listener antlr.ParseTreeListener)
func (*CondNotContext) GetParser ¶
func (s *CondNotContext) GetParser() antlr.Parser
func (*CondNotContext) GetRuleContext ¶
func (s *CondNotContext) GetRuleContext() antlr.RuleContext
func (*CondNotContext) IsCondNotContext ¶
func (*CondNotContext) IsCondNotContext()
func (*CondNotContext) NOT ¶
func (s *CondNotContext) NOT() antlr.TerminalNode
func (*CondNotContext) ToStringTree ¶
func (s *CondNotContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ICondAllContext ¶
type ICondAllContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCondAllContext differentiates from other interfaces. IsCondAllContext() }
ICondAllContext is an interface to support dynamic dispatch.
type ICondAnyContext ¶
type ICondAnyContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCondAnyContext differentiates from other interfaces. IsCondAnyContext() }
ICondAnyContext is an interface to support dynamic dispatch.
type ICondBoolContext ¶
type ICondBoolContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCondBoolContext differentiates from other interfaces. IsCondBoolContext() }
ICondBoolContext is an interface to support dynamic dispatch.
type ICondClsContext ¶
type ICondClsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCondClsContext differentiates from other interfaces. IsCondClsContext() }
ICondClsContext is an interface to support dynamic dispatch.
type ICondContext ¶
type ICondContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCondContext differentiates from other interfaces. IsCondContext() }
ICondContext is an interface to support dynamic dispatch.
type ICondIPv4Context ¶
type ICondIPv4Context interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCondIPv4Context differentiates from other interfaces. IsCondIPv4Context() }
ICondIPv4Context is an interface to support dynamic dispatch.
type ICondNotContext ¶
type ICondNotContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsCondNotContext differentiates from other interfaces. IsCondNotContext() }
ICondNotContext is an interface to support dynamic dispatch.
type IMatchDSCPContext ¶
type IMatchDSCPContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsMatchDSCPContext differentiates from other interfaces. IsMatchDSCPContext() }
IMatchDSCPContext is an interface to support dynamic dispatch.
type IMatchDstContext ¶
type IMatchDstContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsMatchDstContext differentiates from other interfaces. IsMatchDstContext() }
IMatchDstContext is an interface to support dynamic dispatch.
type IMatchSrcContext ¶
type IMatchSrcContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsMatchSrcContext differentiates from other interfaces. IsMatchSrcContext() }
IMatchSrcContext is an interface to support dynamic dispatch.
type IMatchTOSContext ¶
type IMatchTOSContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsMatchTOSContext differentiates from other interfaces. IsMatchTOSContext() }
IMatchTOSContext is an interface to support dynamic dispatch.
type ITrafficClassContext ¶
type ITrafficClassContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsTrafficClassContext differentiates from other interfaces. IsTrafficClassContext() }
ITrafficClassContext is an interface to support dynamic dispatch.
type MatchDSCPContext ¶
type MatchDSCPContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyMatchDSCPContext ¶
func NewEmptyMatchDSCPContext() *MatchDSCPContext
func NewMatchDSCPContext ¶
func NewMatchDSCPContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MatchDSCPContext
func (*MatchDSCPContext) DIGITS ¶
func (s *MatchDSCPContext) DIGITS() antlr.TerminalNode
func (*MatchDSCPContext) DSCP ¶
func (s *MatchDSCPContext) DSCP() antlr.TerminalNode
func (*MatchDSCPContext) EnterRule ¶
func (s *MatchDSCPContext) EnterRule(listener antlr.ParseTreeListener)
func (*MatchDSCPContext) ExitRule ¶
func (s *MatchDSCPContext) ExitRule(listener antlr.ParseTreeListener)
func (*MatchDSCPContext) GetParser ¶
func (s *MatchDSCPContext) GetParser() antlr.Parser
func (*MatchDSCPContext) GetRuleContext ¶
func (s *MatchDSCPContext) GetRuleContext() antlr.RuleContext
func (*MatchDSCPContext) HEX_DIGITS ¶
func (s *MatchDSCPContext) HEX_DIGITS() antlr.TerminalNode
func (*MatchDSCPContext) IsMatchDSCPContext ¶
func (*MatchDSCPContext) IsMatchDSCPContext()
func (*MatchDSCPContext) ToStringTree ¶
func (s *MatchDSCPContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type MatchDstContext ¶
type MatchDstContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyMatchDstContext ¶
func NewEmptyMatchDstContext() *MatchDstContext
func NewMatchDstContext ¶
func NewMatchDstContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MatchDstContext
func (*MatchDstContext) DST ¶
func (s *MatchDstContext) DST() antlr.TerminalNode
func (*MatchDstContext) EnterRule ¶
func (s *MatchDstContext) EnterRule(listener antlr.ParseTreeListener)
func (*MatchDstContext) ExitRule ¶
func (s *MatchDstContext) ExitRule(listener antlr.ParseTreeListener)
func (*MatchDstContext) GetParser ¶
func (s *MatchDstContext) GetParser() antlr.Parser
func (*MatchDstContext) GetRuleContext ¶
func (s *MatchDstContext) GetRuleContext() antlr.RuleContext
func (*MatchDstContext) IsMatchDstContext ¶
func (*MatchDstContext) IsMatchDstContext()
func (*MatchDstContext) NET ¶
func (s *MatchDstContext) NET() antlr.TerminalNode
func (*MatchDstContext) ToStringTree ¶
func (s *MatchDstContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type MatchSrcContext ¶
type MatchSrcContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyMatchSrcContext ¶
func NewEmptyMatchSrcContext() *MatchSrcContext
func NewMatchSrcContext ¶
func NewMatchSrcContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MatchSrcContext
func (*MatchSrcContext) EnterRule ¶
func (s *MatchSrcContext) EnterRule(listener antlr.ParseTreeListener)
func (*MatchSrcContext) ExitRule ¶
func (s *MatchSrcContext) ExitRule(listener antlr.ParseTreeListener)
func (*MatchSrcContext) GetParser ¶
func (s *MatchSrcContext) GetParser() antlr.Parser
func (*MatchSrcContext) GetRuleContext ¶
func (s *MatchSrcContext) GetRuleContext() antlr.RuleContext
func (*MatchSrcContext) IsMatchSrcContext ¶
func (*MatchSrcContext) IsMatchSrcContext()
func (*MatchSrcContext) NET ¶
func (s *MatchSrcContext) NET() antlr.TerminalNode
func (*MatchSrcContext) SRC ¶
func (s *MatchSrcContext) SRC() antlr.TerminalNode
func (*MatchSrcContext) ToStringTree ¶
func (s *MatchSrcContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type MatchTOSContext ¶
type MatchTOSContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyMatchTOSContext ¶
func NewEmptyMatchTOSContext() *MatchTOSContext
func NewMatchTOSContext ¶
func NewMatchTOSContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MatchTOSContext
func (*MatchTOSContext) DIGITS ¶
func (s *MatchTOSContext) DIGITS() antlr.TerminalNode
func (*MatchTOSContext) EnterRule ¶
func (s *MatchTOSContext) EnterRule(listener antlr.ParseTreeListener)
func (*MatchTOSContext) ExitRule ¶
func (s *MatchTOSContext) ExitRule(listener antlr.ParseTreeListener)
func (*MatchTOSContext) GetParser ¶
func (s *MatchTOSContext) GetParser() antlr.Parser
func (*MatchTOSContext) GetRuleContext ¶
func (s *MatchTOSContext) GetRuleContext() antlr.RuleContext
func (*MatchTOSContext) HEX_DIGITS ¶
func (s *MatchTOSContext) HEX_DIGITS() antlr.TerminalNode
func (*MatchTOSContext) IsMatchTOSContext ¶
func (*MatchTOSContext) IsMatchTOSContext()
func (*MatchTOSContext) TOS ¶
func (s *MatchTOSContext) TOS() antlr.TerminalNode
func (*MatchTOSContext) ToStringTree ¶
func (s *MatchTOSContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type TrafficClassContext ¶
type TrafficClassContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyTrafficClassContext ¶
func NewEmptyTrafficClassContext() *TrafficClassContext
func NewTrafficClassContext ¶
func NewTrafficClassContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TrafficClassContext
func (*TrafficClassContext) Cond ¶
func (s *TrafficClassContext) Cond() ICondContext
func (*TrafficClassContext) EOF ¶
func (s *TrafficClassContext) EOF() antlr.TerminalNode
func (*TrafficClassContext) EnterRule ¶
func (s *TrafficClassContext) EnterRule(listener antlr.ParseTreeListener)
func (*TrafficClassContext) ExitRule ¶
func (s *TrafficClassContext) ExitRule(listener antlr.ParseTreeListener)
func (*TrafficClassContext) GetParser ¶
func (s *TrafficClassContext) GetParser() antlr.Parser
func (*TrafficClassContext) GetRuleContext ¶
func (s *TrafficClassContext) GetRuleContext() antlr.RuleContext
func (*TrafficClassContext) IsTrafficClassContext ¶
func (*TrafficClassContext) IsTrafficClassContext()
func (*TrafficClassContext) ToStringTree ¶
func (s *TrafficClassContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type TrafficClassLexer ¶
func NewTrafficClassLexer ¶
func NewTrafficClassLexer(input antlr.CharStream) *TrafficClassLexer
type TrafficClassListener ¶
type TrafficClassListener interface { antlr.ParseTreeListener // EnterMatchSrc is called when entering the matchSrc production. EnterMatchSrc(c *MatchSrcContext) // EnterMatchDst is called when entering the matchDst production. EnterMatchDst(c *MatchDstContext) // EnterMatchDSCP is called when entering the matchDSCP production. EnterMatchDSCP(c *MatchDSCPContext) // EnterMatchTOS is called when entering the matchTOS production. EnterMatchTOS(c *MatchTOSContext) // EnterCondCls is called when entering the condCls production. EnterCondCls(c *CondClsContext) // EnterCondAny is called when entering the condAny production. EnterCondAny(c *CondAnyContext) // EnterCondAll is called when entering the condAll production. EnterCondAll(c *CondAllContext) // EnterCondNot is called when entering the condNot production. EnterCondNot(c *CondNotContext) // EnterCondBool is called when entering the condBool production. EnterCondBool(c *CondBoolContext) // EnterCondIPv4 is called when entering the condIPv4 production. EnterCondIPv4(c *CondIPv4Context) // EnterCond is called when entering the cond production. EnterCond(c *CondContext) // EnterTrafficClass is called when entering the trafficClass production. EnterTrafficClass(c *TrafficClassContext) // ExitMatchSrc is called when exiting the matchSrc production. ExitMatchSrc(c *MatchSrcContext) // ExitMatchDst is called when exiting the matchDst production. ExitMatchDst(c *MatchDstContext) // ExitMatchDSCP is called when exiting the matchDSCP production. ExitMatchDSCP(c *MatchDSCPContext) // ExitMatchTOS is called when exiting the matchTOS production. ExitMatchTOS(c *MatchTOSContext) // ExitCondCls is called when exiting the condCls production. ExitCondCls(c *CondClsContext) // ExitCondAny is called when exiting the condAny production. ExitCondAny(c *CondAnyContext) // ExitCondAll is called when exiting the condAll production. ExitCondAll(c *CondAllContext) // ExitCondNot is called when exiting the condNot production. ExitCondNot(c *CondNotContext) // ExitCondBool is called when exiting the condBool production. ExitCondBool(c *CondBoolContext) // ExitCondIPv4 is called when exiting the condIPv4 production. ExitCondIPv4(c *CondIPv4Context) // ExitCond is called when exiting the cond production. ExitCond(c *CondContext) // ExitTrafficClass is called when exiting the trafficClass production. ExitTrafficClass(c *TrafficClassContext) }
TrafficClassListener is a complete listener for a parse tree produced by TrafficClassParser.
type TrafficClassParser ¶
type TrafficClassParser struct {
*antlr.BaseParser
}
func NewTrafficClassParser ¶
func NewTrafficClassParser(input antlr.TokenStream) *TrafficClassParser
func (*TrafficClassParser) Cond ¶
func (p *TrafficClassParser) Cond() (localctx ICondContext)
func (*TrafficClassParser) CondAll ¶
func (p *TrafficClassParser) CondAll() (localctx ICondAllContext)
func (*TrafficClassParser) CondAny ¶
func (p *TrafficClassParser) CondAny() (localctx ICondAnyContext)
func (*TrafficClassParser) CondBool ¶
func (p *TrafficClassParser) CondBool() (localctx ICondBoolContext)
func (*TrafficClassParser) CondCls ¶
func (p *TrafficClassParser) CondCls() (localctx ICondClsContext)
func (*TrafficClassParser) CondIPv4 ¶
func (p *TrafficClassParser) CondIPv4() (localctx ICondIPv4Context)
func (*TrafficClassParser) CondNot ¶
func (p *TrafficClassParser) CondNot() (localctx ICondNotContext)
func (*TrafficClassParser) MatchDSCP ¶
func (p *TrafficClassParser) MatchDSCP() (localctx IMatchDSCPContext)
func (*TrafficClassParser) MatchDst ¶
func (p *TrafficClassParser) MatchDst() (localctx IMatchDstContext)
func (*TrafficClassParser) MatchSrc ¶
func (p *TrafficClassParser) MatchSrc() (localctx IMatchSrcContext)
func (*TrafficClassParser) MatchTOS ¶
func (p *TrafficClassParser) MatchTOS() (localctx IMatchTOSContext)
func (*TrafficClassParser) TrafficClass ¶
func (p *TrafficClassParser) TrafficClass() (localctx ITrafficClassContext)