Documentation
¶
Index ¶
- Constants
- func SuricataRuleLexerInit()
- func SuricataRuleParserInit()
- type ActionContext
- func (s *ActionContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ActionContext) GetParser() antlr.Parser
- func (s *ActionContext) GetRuleContext() antlr.RuleContext
- func (s *ActionContext) ID() antlr.TerminalNode
- func (*ActionContext) IsActionContext()
- func (s *ActionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type AddressContext
- func (s *AddressContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *AddressContext) Address(i int) IAddressContext
- func (s *AddressContext) AllAddress() []IAddressContext
- func (s *AddressContext) AllComma() []antlr.TerminalNode
- func (s *AddressContext) Any() antlr.TerminalNode
- func (s *AddressContext) Comma(i int) antlr.TerminalNode
- func (s *AddressContext) Environment_var() IEnvironment_varContext
- func (s *AddressContext) GetParser() antlr.Parser
- func (s *AddressContext) GetRuleContext() antlr.RuleContext
- func (s *AddressContext) Ipv4() IIpv4Context
- func (s *AddressContext) Ipv6() IIpv6Context
- func (*AddressContext) IsAddressContext()
- func (s *AddressContext) LBracket() antlr.TerminalNode
- func (s *AddressContext) Negative() antlr.TerminalNode
- func (s *AddressContext) RBracket() antlr.TerminalNode
- func (s *AddressContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type BaseSuricataRuleParserVisitor
- func (v *BaseSuricataRuleParserVisitor) VisitAction(ctx *ActionContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitAddress(ctx *AddressContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitDest_address(ctx *Dest_addressContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitDest_port(ctx *Dest_portContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitEnvironment_var(ctx *Environment_varContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitIpv4(ctx *Ipv4Context) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitIpv4block(ctx *Ipv4blockContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitIpv4mask(ctx *Ipv4maskContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitIpv6(ctx *Ipv6Context) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitIpv6block(ctx *Ipv6blockContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitIpv6compact(ctx *Ipv6compactContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitIpv6full(ctx *Ipv6fullContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitIpv6mask(ctx *Ipv6maskContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitIpv6part(ctx *Ipv6partContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitKeyword(ctx *KeywordContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitNegative(ctx *NegativeContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitParam(ctx *ParamContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitParams(ctx *ParamsContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitPort(ctx *PortContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitProtocol(ctx *ProtocolContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitRule(ctx *RuleContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitRules(ctx *RulesContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitSep(ctx *SepContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitSetting(ctx *SettingContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitSettingcontent(ctx *SettingcontentContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitSingleSetting(ctx *SingleSettingContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitSrc_address(ctx *Src_addressContext) interface{}
- func (v *BaseSuricataRuleParserVisitor) VisitSrc_port(ctx *Src_portContext) interface{}
- type Dest_addressContext
- func (s *Dest_addressContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Dest_addressContext) Address() IAddressContext
- func (s *Dest_addressContext) GetParser() antlr.Parser
- func (s *Dest_addressContext) GetRuleContext() antlr.RuleContext
- func (*Dest_addressContext) IsDest_addressContext()
- func (s *Dest_addressContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Dest_portContext
- func (s *Dest_portContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Dest_portContext) GetParser() antlr.Parser
- func (s *Dest_portContext) GetRuleContext() antlr.RuleContext
- func (*Dest_portContext) IsDest_portContext()
- func (s *Dest_portContext) Port() IPortContext
- func (s *Dest_portContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Environment_varContext
- func (s *Environment_varContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Environment_varContext) Dollar() antlr.TerminalNode
- func (s *Environment_varContext) GetParser() antlr.Parser
- func (s *Environment_varContext) GetRuleContext() antlr.RuleContext
- func (s *Environment_varContext) ID() antlr.TerminalNode
- func (*Environment_varContext) IsEnvironment_varContext()
- func (s *Environment_varContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IActionContext
- type IAddressContext
- type IDest_addressContext
- type IDest_portContext
- type IEnvironment_varContext
- type IIpv4Context
- type IIpv4blockContext
- type IIpv4maskContext
- type IIpv6Context
- type IIpv6blockContext
- type IIpv6compactContext
- type IIpv6fullContext
- type IIpv6maskContext
- type IIpv6partContext
- type IKeywordContext
- type INegativeContext
- type IParamContext
- type IParamsContext
- type IPortContext
- type IProtocolContext
- type IRuleContext
- type IRulesContext
- type ISepContext
- type ISettingContext
- type ISettingcontentContext
- type ISingleSettingContext
- type ISrc_addressContext
- type ISrc_portContext
- type Ipv4Context
- func (s *Ipv4Context) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Ipv4Context) AllDot() []antlr.TerminalNode
- func (s *Ipv4Context) AllIpv4block() []IIpv4blockContext
- func (s *Ipv4Context) Div() antlr.TerminalNode
- func (s *Ipv4Context) Dot(i int) antlr.TerminalNode
- func (s *Ipv4Context) GetParser() antlr.Parser
- func (s *Ipv4Context) GetRuleContext() antlr.RuleContext
- func (s *Ipv4Context) Ipv4block(i int) IIpv4blockContext
- func (s *Ipv4Context) Ipv4mask() IIpv4maskContext
- func (*Ipv4Context) IsIpv4Context()
- func (s *Ipv4Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Ipv4blockContext
- func (s *Ipv4blockContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Ipv4blockContext) GetParser() antlr.Parser
- func (s *Ipv4blockContext) GetRuleContext() antlr.RuleContext
- func (s *Ipv4blockContext) INT() antlr.TerminalNode
- func (*Ipv4blockContext) IsIpv4blockContext()
- func (s *Ipv4blockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Ipv4maskContext
- func (s *Ipv4maskContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Ipv4maskContext) GetParser() antlr.Parser
- func (s *Ipv4maskContext) GetRuleContext() antlr.RuleContext
- func (s *Ipv4maskContext) INT() antlr.TerminalNode
- func (*Ipv4maskContext) IsIpv4maskContext()
- func (s *Ipv4maskContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Ipv6Context
- func (s *Ipv6Context) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Ipv6Context) Div() antlr.TerminalNode
- func (s *Ipv6Context) GetParser() antlr.Parser
- func (s *Ipv6Context) GetRuleContext() antlr.RuleContext
- func (s *Ipv6Context) Ipv6compact() IIpv6compactContext
- func (s *Ipv6Context) Ipv6full() IIpv6fullContext
- func (s *Ipv6Context) Ipv6mask() IIpv6maskContext
- func (*Ipv6Context) IsIpv6Context()
- func (s *Ipv6Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Ipv6blockContext
- func (s *Ipv6blockContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Ipv6blockContext) GetParser() antlr.Parser
- func (s *Ipv6blockContext) GetRuleContext() antlr.RuleContext
- func (s *Ipv6blockContext) HEX() antlr.TerminalNode
- func (s *Ipv6blockContext) INT() antlr.TerminalNode
- func (*Ipv6blockContext) IsIpv6blockContext()
- func (s *Ipv6blockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Ipv6compactContext
- func (s *Ipv6compactContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Ipv6compactContext) AllIpv6part() []IIpv6partContext
- func (s *Ipv6compactContext) DoubleColon() antlr.TerminalNode
- func (s *Ipv6compactContext) GetParser() antlr.Parser
- func (s *Ipv6compactContext) GetRuleContext() antlr.RuleContext
- func (s *Ipv6compactContext) Ipv6part(i int) IIpv6partContext
- func (*Ipv6compactContext) IsIpv6compactContext()
- func (s *Ipv6compactContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Ipv6fullContext
- func (s *Ipv6fullContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Ipv6fullContext) AllColon() []antlr.TerminalNode
- func (s *Ipv6fullContext) AllIpv6block() []IIpv6blockContext
- func (s *Ipv6fullContext) Colon(i int) antlr.TerminalNode
- func (s *Ipv6fullContext) GetParser() antlr.Parser
- func (s *Ipv6fullContext) GetRuleContext() antlr.RuleContext
- func (s *Ipv6fullContext) Ipv6block(i int) IIpv6blockContext
- func (*Ipv6fullContext) IsIpv6fullContext()
- func (s *Ipv6fullContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Ipv6maskContext
- func (s *Ipv6maskContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Ipv6maskContext) GetParser() antlr.Parser
- func (s *Ipv6maskContext) GetRuleContext() antlr.RuleContext
- func (s *Ipv6maskContext) INT() antlr.TerminalNode
- func (*Ipv6maskContext) IsIpv6maskContext()
- func (s *Ipv6maskContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Ipv6partContext
- func (s *Ipv6partContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Ipv6partContext) Colon() antlr.TerminalNode
- func (s *Ipv6partContext) GetParser() antlr.Parser
- func (s *Ipv6partContext) GetRuleContext() antlr.RuleContext
- func (s *Ipv6partContext) Ipv6block() IIpv6blockContext
- func (s *Ipv6partContext) Ipv6part() IIpv6partContext
- func (*Ipv6partContext) IsIpv6partContext()
- func (s *Ipv6partContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type KeywordContext
- func (s *KeywordContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *KeywordContext) GetParser() antlr.Parser
- func (s *KeywordContext) GetRuleContext() antlr.RuleContext
- func (*KeywordContext) IsKeywordContext()
- func (s *KeywordContext) ParamCommonString() antlr.TerminalNode
- func (s *KeywordContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type NegativeContext
- func (s *NegativeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *NegativeContext) GetParser() antlr.Parser
- func (s *NegativeContext) GetRuleContext() antlr.RuleContext
- func (*NegativeContext) IsNegativeContext()
- func (s *NegativeContext) ParamNegative() antlr.TerminalNode
- func (s *NegativeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ParamContext
- func (s *ParamContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ParamContext) GetParser() antlr.Parser
- func (s *ParamContext) GetRuleContext() antlr.RuleContext
- func (*ParamContext) IsParamContext()
- func (s *ParamContext) Keyword() IKeywordContext
- func (s *ParamContext) ParamColon() antlr.TerminalNode
- func (s *ParamContext) Setting() ISettingContext
- func (s *ParamContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ParamsContext
- func (s *ParamsContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ParamsContext) AllParam() []IParamContext
- func (s *ParamsContext) AllSep() []ISepContext
- func (s *ParamsContext) GetParser() antlr.Parser
- func (s *ParamsContext) GetRuleContext() antlr.RuleContext
- func (*ParamsContext) IsParamsContext()
- func (s *ParamsContext) Param(i int) IParamContext
- func (s *ParamsContext) ParamEnd() antlr.TerminalNode
- func (s *ParamsContext) ParamStart() antlr.TerminalNode
- func (s *ParamsContext) Sep(i int) ISepContext
- func (s *ParamsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type PortContext
- func (s *PortContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *PortContext) AllComma() []antlr.TerminalNode
- func (s *PortContext) AllINT() []antlr.TerminalNode
- func (s *PortContext) AllPort() []IPortContext
- func (s *PortContext) Any() antlr.TerminalNode
- func (s *PortContext) Colon() antlr.TerminalNode
- func (s *PortContext) Comma(i int) antlr.TerminalNode
- func (s *PortContext) Environment_var() IEnvironment_varContext
- func (s *PortContext) GetParser() antlr.Parser
- func (s *PortContext) GetRuleContext() antlr.RuleContext
- func (s *PortContext) INT(i int) antlr.TerminalNode
- func (*PortContext) IsPortContext()
- func (s *PortContext) LBracket() antlr.TerminalNode
- func (s *PortContext) Negative() antlr.TerminalNode
- func (s *PortContext) Port(i int) IPortContext
- func (s *PortContext) RBracket() antlr.TerminalNode
- func (s *PortContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ProtocolContext
- func (s *ProtocolContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ProtocolContext) GetParser() antlr.Parser
- func (s *ProtocolContext) GetRuleContext() antlr.RuleContext
- func (s *ProtocolContext) ID() antlr.TerminalNode
- func (*ProtocolContext) IsProtocolContext()
- func (s *ProtocolContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RuleContext
- func (s *RuleContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *RuleContext) Action_() IActionContext
- func (s *RuleContext) Arrow() antlr.TerminalNode
- func (s *RuleContext) BothDirect() antlr.TerminalNode
- func (s *RuleContext) Dest_address() IDest_addressContext
- func (s *RuleContext) Dest_port() IDest_portContext
- func (s *RuleContext) GetParser() antlr.Parser
- func (s *RuleContext) GetRuleContext() antlr.RuleContext
- func (*RuleContext) IsRuleContext()
- func (s *RuleContext) Params() IParamsContext
- func (s *RuleContext) Protocol() IProtocolContext
- func (s *RuleContext) Src_address() ISrc_addressContext
- func (s *RuleContext) Src_port() ISrc_portContext
- func (s *RuleContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type RulesContext
- func (s *RulesContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *RulesContext) AllRule_() []IRuleContext
- func (s *RulesContext) EOF() antlr.TerminalNode
- func (s *RulesContext) GetParser() antlr.Parser
- func (s *RulesContext) GetRuleContext() antlr.RuleContext
- func (*RulesContext) IsRulesContext()
- func (s *RulesContext) Rule_(i int) IRuleContext
- func (s *RulesContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SepContext
- func (s *SepContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *SepContext) GetParser() antlr.Parser
- func (s *SepContext) GetRuleContext() antlr.RuleContext
- func (*SepContext) IsSepContext()
- func (s *SepContext) ParamSep() antlr.TerminalNode
- func (s *SepContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *SepContext) UntilSepSettingEnd() antlr.TerminalNode
- type SettingContext
- func (s *SettingContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *SettingContext) AllParamComma() []antlr.TerminalNode
- func (s *SettingContext) AllSingleSetting() []ISingleSettingContext
- func (s *SettingContext) GetParser() antlr.Parser
- func (s *SettingContext) GetRuleContext() antlr.RuleContext
- func (*SettingContext) IsSettingContext()
- func (s *SettingContext) ParamComma(i int) antlr.TerminalNode
- func (s *SettingContext) SingleSetting(i int) ISingleSettingContext
- func (s *SettingContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SettingcontentContext
- func (s *SettingcontentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *SettingcontentContext) GetParser() antlr.Parser
- func (s *SettingcontentContext) GetRuleContext() antlr.RuleContext
- func (*SettingcontentContext) IsSettingcontentContext()
- func (s *SettingcontentContext) ModeString() antlr.TerminalNode
- func (s *SettingcontentContext) ModeStringEnd() antlr.TerminalNode
- func (s *SettingcontentContext) ModeStringStart() antlr.TerminalNode
- func (s *SettingcontentContext) ParamCommonString() antlr.TerminalNode
- func (s *SettingcontentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SingleSettingContext
- func (s *SingleSettingContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *SingleSettingContext) GetParser() antlr.Parser
- func (s *SingleSettingContext) GetRuleContext() antlr.RuleContext
- func (*SingleSettingContext) IsSingleSettingContext()
- func (s *SingleSettingContext) Negative() INegativeContext
- func (s *SingleSettingContext) NonQuotedString() antlr.TerminalNode
- func (s *SingleSettingContext) Settingcontent() ISettingcontentContext
- func (s *SingleSettingContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Src_addressContext
- func (s *Src_addressContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Src_addressContext) Address() IAddressContext
- func (s *Src_addressContext) GetParser() antlr.Parser
- func (s *Src_addressContext) GetRuleContext() antlr.RuleContext
- func (*Src_addressContext) IsSrc_addressContext()
- func (s *Src_addressContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type Src_portContext
- func (s *Src_portContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *Src_portContext) GetParser() antlr.Parser
- func (s *Src_portContext) GetRuleContext() antlr.RuleContext
- func (*Src_portContext) IsSrc_portContext()
- func (s *Src_portContext) Port() IPortContext
- func (s *Src_portContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SuricataRuleLexer
- type SuricataRuleParser
- func (p *SuricataRuleParser) Action_() (localctx IActionContext)
- func (p *SuricataRuleParser) Address() (localctx IAddressContext)
- func (p *SuricataRuleParser) Dest_address() (localctx IDest_addressContext)
- func (p *SuricataRuleParser) Dest_port() (localctx IDest_portContext)
- func (p *SuricataRuleParser) Environment_var() (localctx IEnvironment_varContext)
- func (p *SuricataRuleParser) Ipv4() (localctx IIpv4Context)
- func (p *SuricataRuleParser) Ipv4block() (localctx IIpv4blockContext)
- func (p *SuricataRuleParser) Ipv4mask() (localctx IIpv4maskContext)
- func (p *SuricataRuleParser) Ipv6() (localctx IIpv6Context)
- func (p *SuricataRuleParser) Ipv6block() (localctx IIpv6blockContext)
- func (p *SuricataRuleParser) Ipv6compact() (localctx IIpv6compactContext)
- func (p *SuricataRuleParser) Ipv6full() (localctx IIpv6fullContext)
- func (p *SuricataRuleParser) Ipv6mask() (localctx IIpv6maskContext)
- func (p *SuricataRuleParser) Ipv6part() (localctx IIpv6partContext)
- func (p *SuricataRuleParser) Ipv6part_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *SuricataRuleParser) Keyword() (localctx IKeywordContext)
- func (p *SuricataRuleParser) Negative() (localctx INegativeContext)
- func (p *SuricataRuleParser) Param() (localctx IParamContext)
- func (p *SuricataRuleParser) Params() (localctx IParamsContext)
- func (p *SuricataRuleParser) Port() (localctx IPortContext)
- func (p *SuricataRuleParser) Protocol() (localctx IProtocolContext)
- func (p *SuricataRuleParser) Rule_() (localctx IRuleContext)
- func (p *SuricataRuleParser) Rules() (localctx IRulesContext)
- func (p *SuricataRuleParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
- func (p *SuricataRuleParser) Sep() (localctx ISepContext)
- func (p *SuricataRuleParser) Setting() (localctx ISettingContext)
- func (p *SuricataRuleParser) Settingcontent() (localctx ISettingcontentContext)
- func (p *SuricataRuleParser) SingleSetting() (localctx ISingleSettingContext)
- func (p *SuricataRuleParser) Src_address() (localctx ISrc_addressContext)
- func (p *SuricataRuleParser) Src_port() (localctx ISrc_portContext)
- type SuricataRuleParserVisitor
Constants ¶
const ( SuricataRuleLexerAny = 1 SuricataRuleLexerNegative = 2 SuricataRuleLexerDollar = 3 SuricataRuleLexerArrow = 4 SuricataRuleLexerBothDirect = 5 SuricataRuleLexerMul = 6 SuricataRuleLexerDiv = 7 SuricataRuleLexerMod = 8 SuricataRuleLexerAmp = 9 SuricataRuleLexerPlus = 10 SuricataRuleLexerSub = 11 SuricataRuleLexerPower = 12 SuricataRuleLexerLt = 13 SuricataRuleLexerGt = 14 SuricataRuleLexerLtEq = 15 SuricataRuleLexerGtEq = 16 SuricataRuleLexerColon = 17 SuricataRuleLexerDoubleColon = 18 SuricataRuleLexerLBracket = 19 SuricataRuleLexerRBracket = 20 SuricataRuleLexerParamStart = 21 SuricataRuleLexerLBrace = 22 SuricataRuleLexerRBrace = 23 SuricataRuleLexerComma = 24 SuricataRuleLexerEq = 25 SuricataRuleLexerNotSymbol = 26 SuricataRuleLexerDot = 27 SuricataRuleLexerLINE_COMMENT = 28 SuricataRuleLexerNORMALSTRING = 29 SuricataRuleLexerINT = 30 SuricataRuleLexerHEX = 31 SuricataRuleLexerID = 32 SuricataRuleLexerHexDigit = 33 SuricataRuleLexerWS = 34 SuricataRuleLexerNonSemiColon = 35 SuricataRuleLexerSHEBANG = 36 SuricataRuleLexerParamWS = 37 SuricataRuleLexerParamEnd = 38 SuricataRuleLexerParamColon = 39 SuricataRuleLexerParamNegative = 40 SuricataRuleLexerParamComma = 41 SuricataRuleLexerParamSep = 42 SuricataRuleLexerParamCommonStringChar = 43 SuricataRuleLexerParamCommonString = 44 SuricataRuleLexerModeStringStart = 45 SuricataRuleLexerUntilSepSettingEnd = 46 SuricataRuleLexerUntilSEPParamWS = 47 SuricataRuleLexerNonQuotedString = 48 SuricataRuleLexerModeString = 49 SuricataRuleLexerModeStringEnd = 50 SuricataRuleLexerANY = 51 )
SuricataRuleLexer tokens.
const ( SuricataRuleLexerPARAM_MODE = iota + 1 SuricataRuleLexerUNTIL_SEP_MODE SuricataRuleLexerMODE_STRING )
SuricataRuleLexer modes.
const ( SuricataRuleParserEOF = antlr.TokenEOF SuricataRuleParserAny = 1 SuricataRuleParserNegative = 2 SuricataRuleParserDollar = 3 SuricataRuleParserArrow = 4 SuricataRuleParserBothDirect = 5 SuricataRuleParserMul = 6 SuricataRuleParserDiv = 7 SuricataRuleParserMod = 8 SuricataRuleParserAmp = 9 SuricataRuleParserPlus = 10 SuricataRuleParserSub = 11 SuricataRuleParserPower = 12 SuricataRuleParserLt = 13 SuricataRuleParserGt = 14 SuricataRuleParserLtEq = 15 SuricataRuleParserGtEq = 16 SuricataRuleParserColon = 17 SuricataRuleParserDoubleColon = 18 SuricataRuleParserLBracket = 19 SuricataRuleParserRBracket = 20 SuricataRuleParserParamStart = 21 SuricataRuleParserLBrace = 22 SuricataRuleParserRBrace = 23 SuricataRuleParserComma = 24 SuricataRuleParserEq = 25 SuricataRuleParserNotSymbol = 26 SuricataRuleParserDot = 27 SuricataRuleParserLINE_COMMENT = 28 SuricataRuleParserNORMALSTRING = 29 SuricataRuleParserINT = 30 SuricataRuleParserHEX = 31 SuricataRuleParserID = 32 SuricataRuleParserHexDigit = 33 SuricataRuleParserWS = 34 SuricataRuleParserNonSemiColon = 35 SuricataRuleParserSHEBANG = 36 SuricataRuleParserParamWS = 37 SuricataRuleParserParamEnd = 38 SuricataRuleParserParamColon = 39 SuricataRuleParserParamNegative = 40 SuricataRuleParserParamComma = 41 SuricataRuleParserParamSep = 42 SuricataRuleParserParamCommonStringChar = 43 SuricataRuleParserParamCommonString = 44 SuricataRuleParserModeStringStart = 45 SuricataRuleParserUntilSepSettingEnd = 46 SuricataRuleParserUntilSEPParamWS = 47 SuricataRuleParserNonQuotedString = 48 SuricataRuleParserModeString = 49 SuricataRuleParserModeStringEnd = 50 SuricataRuleParserANY = 51 )
SuricataRuleParser tokens.
const ( SuricataRuleParserRULE_rules = 0 SuricataRuleParserRULE_rule = 1 SuricataRuleParserRULE_action = 2 SuricataRuleParserRULE_protocol = 3 SuricataRuleParserRULE_src_address = 4 SuricataRuleParserRULE_dest_address = 5 SuricataRuleParserRULE_address = 6 SuricataRuleParserRULE_ipv4 = 7 SuricataRuleParserRULE_ipv4block = 8 SuricataRuleParserRULE_ipv4mask = 9 SuricataRuleParserRULE_environment_var = 10 SuricataRuleParserRULE_ipv6 = 11 SuricataRuleParserRULE_ipv6full = 12 SuricataRuleParserRULE_ipv6compact = 13 SuricataRuleParserRULE_ipv6part = 14 SuricataRuleParserRULE_ipv6block = 15 SuricataRuleParserRULE_ipv6mask = 16 SuricataRuleParserRULE_src_port = 17 SuricataRuleParserRULE_dest_port = 18 SuricataRuleParserRULE_port = 19 SuricataRuleParserRULE_params = 20 SuricataRuleParserRULE_param = 21 SuricataRuleParserRULE_keyword = 22 SuricataRuleParserRULE_setting = 23 SuricataRuleParserRULE_singleSetting = 24 SuricataRuleParserRULE_negative = 25 SuricataRuleParserRULE_settingcontent = 26 SuricataRuleParserRULE_sep = 27 )
SuricataRuleParser rules.
Variables ¶
This section is empty.
Functions ¶
func SuricataRuleLexerInit ¶
func SuricataRuleLexerInit()
SuricataRuleLexerInit initializes any static state used to implement SuricataRuleLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewSuricataRuleLexer(). You can call this function if you wish to initialize the static state ahead of time.
func SuricataRuleParserInit ¶
func SuricataRuleParserInit()
SuricataRuleParserInit initializes any static state used to implement SuricataRuleParser. By default the static state used to implement the parser is lazily initialized during the first call to NewSuricataRuleParser(). You can call this function if you wish to initialize the static state ahead of time.
Types ¶
type ActionContext ¶
type ActionContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewActionContext ¶
func NewActionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ActionContext
func NewEmptyActionContext ¶
func NewEmptyActionContext() *ActionContext
func (*ActionContext) Accept ¶
func (s *ActionContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ActionContext) GetParser ¶
func (s *ActionContext) GetParser() antlr.Parser
func (*ActionContext) GetRuleContext ¶
func (s *ActionContext) GetRuleContext() antlr.RuleContext
func (*ActionContext) ID ¶
func (s *ActionContext) ID() antlr.TerminalNode
func (*ActionContext) IsActionContext ¶
func (*ActionContext) IsActionContext()
func (*ActionContext) ToStringTree ¶
func (s *ActionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type AddressContext ¶
type AddressContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewAddressContext ¶
func NewAddressContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AddressContext
func NewEmptyAddressContext ¶
func NewEmptyAddressContext() *AddressContext
func (*AddressContext) Accept ¶
func (s *AddressContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*AddressContext) Address ¶
func (s *AddressContext) Address(i int) IAddressContext
func (*AddressContext) AllAddress ¶
func (s *AddressContext) AllAddress() []IAddressContext
func (*AddressContext) AllComma ¶
func (s *AddressContext) AllComma() []antlr.TerminalNode
func (*AddressContext) Any ¶
func (s *AddressContext) Any() antlr.TerminalNode
func (*AddressContext) Comma ¶
func (s *AddressContext) Comma(i int) antlr.TerminalNode
func (*AddressContext) Environment_var ¶
func (s *AddressContext) Environment_var() IEnvironment_varContext
func (*AddressContext) GetParser ¶
func (s *AddressContext) GetParser() antlr.Parser
func (*AddressContext) GetRuleContext ¶
func (s *AddressContext) GetRuleContext() antlr.RuleContext
func (*AddressContext) Ipv4 ¶
func (s *AddressContext) Ipv4() IIpv4Context
func (*AddressContext) Ipv6 ¶
func (s *AddressContext) Ipv6() IIpv6Context
func (*AddressContext) IsAddressContext ¶
func (*AddressContext) IsAddressContext()
func (*AddressContext) LBracket ¶
func (s *AddressContext) LBracket() antlr.TerminalNode
func (*AddressContext) Negative ¶
func (s *AddressContext) Negative() antlr.TerminalNode
func (*AddressContext) RBracket ¶
func (s *AddressContext) RBracket() antlr.TerminalNode
func (*AddressContext) ToStringTree ¶
func (s *AddressContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type BaseSuricataRuleParserVisitor ¶
type BaseSuricataRuleParserVisitor struct {
*antlr.BaseParseTreeVisitor
}
func (*BaseSuricataRuleParserVisitor) VisitAction ¶
func (v *BaseSuricataRuleParserVisitor) VisitAction(ctx *ActionContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitAddress ¶
func (v *BaseSuricataRuleParserVisitor) VisitAddress(ctx *AddressContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitDest_address ¶
func (v *BaseSuricataRuleParserVisitor) VisitDest_address(ctx *Dest_addressContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitDest_port ¶
func (v *BaseSuricataRuleParserVisitor) VisitDest_port(ctx *Dest_portContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitEnvironment_var ¶
func (v *BaseSuricataRuleParserVisitor) VisitEnvironment_var(ctx *Environment_varContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitIpv4 ¶
func (v *BaseSuricataRuleParserVisitor) VisitIpv4(ctx *Ipv4Context) interface{}
func (*BaseSuricataRuleParserVisitor) VisitIpv4block ¶
func (v *BaseSuricataRuleParserVisitor) VisitIpv4block(ctx *Ipv4blockContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitIpv4mask ¶
func (v *BaseSuricataRuleParserVisitor) VisitIpv4mask(ctx *Ipv4maskContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitIpv6 ¶
func (v *BaseSuricataRuleParserVisitor) VisitIpv6(ctx *Ipv6Context) interface{}
func (*BaseSuricataRuleParserVisitor) VisitIpv6block ¶ added in v1.2.3
func (v *BaseSuricataRuleParserVisitor) VisitIpv6block(ctx *Ipv6blockContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitIpv6compact ¶ added in v1.2.3
func (v *BaseSuricataRuleParserVisitor) VisitIpv6compact(ctx *Ipv6compactContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitIpv6full ¶ added in v1.2.3
func (v *BaseSuricataRuleParserVisitor) VisitIpv6full(ctx *Ipv6fullContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitIpv6mask ¶ added in v1.2.3
func (v *BaseSuricataRuleParserVisitor) VisitIpv6mask(ctx *Ipv6maskContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitIpv6part ¶ added in v1.2.3
func (v *BaseSuricataRuleParserVisitor) VisitIpv6part(ctx *Ipv6partContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitKeyword ¶ added in v1.2.4
func (v *BaseSuricataRuleParserVisitor) VisitKeyword(ctx *KeywordContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitNegative ¶ added in v1.2.4
func (v *BaseSuricataRuleParserVisitor) VisitNegative(ctx *NegativeContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitParam ¶
func (v *BaseSuricataRuleParserVisitor) VisitParam(ctx *ParamContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitParams ¶
func (v *BaseSuricataRuleParserVisitor) VisitParams(ctx *ParamsContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitPort ¶
func (v *BaseSuricataRuleParserVisitor) VisitPort(ctx *PortContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitProtocol ¶
func (v *BaseSuricataRuleParserVisitor) VisitProtocol(ctx *ProtocolContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitRule ¶
func (v *BaseSuricataRuleParserVisitor) VisitRule(ctx *RuleContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitRules ¶
func (v *BaseSuricataRuleParserVisitor) VisitRules(ctx *RulesContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitSep ¶ added in v1.3.1
func (v *BaseSuricataRuleParserVisitor) VisitSep(ctx *SepContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitSetting ¶ added in v1.2.4
func (v *BaseSuricataRuleParserVisitor) VisitSetting(ctx *SettingContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitSettingcontent ¶ added in v1.2.4
func (v *BaseSuricataRuleParserVisitor) VisitSettingcontent(ctx *SettingcontentContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitSingleSetting ¶ added in v1.2.4
func (v *BaseSuricataRuleParserVisitor) VisitSingleSetting(ctx *SingleSettingContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitSrc_address ¶
func (v *BaseSuricataRuleParserVisitor) VisitSrc_address(ctx *Src_addressContext) interface{}
func (*BaseSuricataRuleParserVisitor) VisitSrc_port ¶
func (v *BaseSuricataRuleParserVisitor) VisitSrc_port(ctx *Src_portContext) interface{}
type Dest_addressContext ¶
type Dest_addressContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDest_addressContext ¶
func NewDest_addressContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Dest_addressContext
func NewEmptyDest_addressContext ¶
func NewEmptyDest_addressContext() *Dest_addressContext
func (*Dest_addressContext) Accept ¶
func (s *Dest_addressContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Dest_addressContext) Address ¶
func (s *Dest_addressContext) Address() IAddressContext
func (*Dest_addressContext) GetParser ¶
func (s *Dest_addressContext) GetParser() antlr.Parser
func (*Dest_addressContext) GetRuleContext ¶
func (s *Dest_addressContext) GetRuleContext() antlr.RuleContext
func (*Dest_addressContext) IsDest_addressContext ¶
func (*Dest_addressContext) IsDest_addressContext()
func (*Dest_addressContext) ToStringTree ¶
func (s *Dest_addressContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Dest_portContext ¶
type Dest_portContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewDest_portContext ¶
func NewDest_portContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Dest_portContext
func NewEmptyDest_portContext ¶
func NewEmptyDest_portContext() *Dest_portContext
func (*Dest_portContext) Accept ¶
func (s *Dest_portContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Dest_portContext) GetParser ¶
func (s *Dest_portContext) GetParser() antlr.Parser
func (*Dest_portContext) GetRuleContext ¶
func (s *Dest_portContext) GetRuleContext() antlr.RuleContext
func (*Dest_portContext) IsDest_portContext ¶
func (*Dest_portContext) IsDest_portContext()
func (*Dest_portContext) Port ¶
func (s *Dest_portContext) Port() IPortContext
func (*Dest_portContext) ToStringTree ¶
func (s *Dest_portContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Environment_varContext ¶
type Environment_varContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyEnvironment_varContext ¶
func NewEmptyEnvironment_varContext() *Environment_varContext
func NewEnvironment_varContext ¶
func NewEnvironment_varContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Environment_varContext
func (*Environment_varContext) Accept ¶
func (s *Environment_varContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Environment_varContext) Dollar ¶
func (s *Environment_varContext) Dollar() antlr.TerminalNode
func (*Environment_varContext) GetParser ¶
func (s *Environment_varContext) GetParser() antlr.Parser
func (*Environment_varContext) GetRuleContext ¶
func (s *Environment_varContext) GetRuleContext() antlr.RuleContext
func (*Environment_varContext) ID ¶
func (s *Environment_varContext) ID() antlr.TerminalNode
func (*Environment_varContext) IsEnvironment_varContext ¶
func (*Environment_varContext) IsEnvironment_varContext()
func (*Environment_varContext) ToStringTree ¶
func (s *Environment_varContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IActionContext ¶
type IActionContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsActionContext differentiates from other interfaces. IsActionContext() }
IActionContext is an interface to support dynamic dispatch.
type IAddressContext ¶
type IAddressContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsAddressContext differentiates from other interfaces. IsAddressContext() }
IAddressContext is an interface to support dynamic dispatch.
type IDest_addressContext ¶
type IDest_addressContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsDest_addressContext differentiates from other interfaces. IsDest_addressContext() }
IDest_addressContext is an interface to support dynamic dispatch.
type IDest_portContext ¶
type IDest_portContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsDest_portContext differentiates from other interfaces. IsDest_portContext() }
IDest_portContext is an interface to support dynamic dispatch.
type IEnvironment_varContext ¶
type IEnvironment_varContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsEnvironment_varContext differentiates from other interfaces. IsEnvironment_varContext() }
IEnvironment_varContext is an interface to support dynamic dispatch.
type IIpv4Context ¶
type IIpv4Context interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIpv4Context differentiates from other interfaces. IsIpv4Context() }
IIpv4Context is an interface to support dynamic dispatch.
type IIpv4blockContext ¶
type IIpv4blockContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIpv4blockContext differentiates from other interfaces. IsIpv4blockContext() }
IIpv4blockContext is an interface to support dynamic dispatch.
type IIpv4maskContext ¶
type IIpv4maskContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIpv4maskContext differentiates from other interfaces. IsIpv4maskContext() }
IIpv4maskContext is an interface to support dynamic dispatch.
type IIpv6Context ¶
type IIpv6Context interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIpv6Context differentiates from other interfaces. IsIpv6Context() }
IIpv6Context is an interface to support dynamic dispatch.
type IIpv6blockContext ¶ added in v1.2.3
type IIpv6blockContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIpv6blockContext differentiates from other interfaces. IsIpv6blockContext() }
IIpv6blockContext is an interface to support dynamic dispatch.
type IIpv6compactContext ¶ added in v1.2.3
type IIpv6compactContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIpv6compactContext differentiates from other interfaces. IsIpv6compactContext() }
IIpv6compactContext is an interface to support dynamic dispatch.
type IIpv6fullContext ¶ added in v1.2.3
type IIpv6fullContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIpv6fullContext differentiates from other interfaces. IsIpv6fullContext() }
IIpv6fullContext is an interface to support dynamic dispatch.
type IIpv6maskContext ¶ added in v1.2.3
type IIpv6maskContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIpv6maskContext differentiates from other interfaces. IsIpv6maskContext() }
IIpv6maskContext is an interface to support dynamic dispatch.
type IIpv6partContext ¶ added in v1.2.3
type IIpv6partContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsIpv6partContext differentiates from other interfaces. IsIpv6partContext() }
IIpv6partContext is an interface to support dynamic dispatch.
type IKeywordContext ¶ added in v1.2.4
type IKeywordContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsKeywordContext differentiates from other interfaces. IsKeywordContext() }
IKeywordContext is an interface to support dynamic dispatch.
type INegativeContext ¶ added in v1.2.4
type INegativeContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsNegativeContext differentiates from other interfaces. IsNegativeContext() }
INegativeContext is an interface to support dynamic dispatch.
type IParamContext ¶
type IParamContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsParamContext differentiates from other interfaces. IsParamContext() }
IParamContext is an interface to support dynamic dispatch.
type IParamsContext ¶
type IParamsContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsParamsContext differentiates from other interfaces. IsParamsContext() }
IParamsContext is an interface to support dynamic dispatch.
type IPortContext ¶
type IPortContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsPortContext differentiates from other interfaces. IsPortContext() }
IPortContext is an interface to support dynamic dispatch.
type IProtocolContext ¶
type IProtocolContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsProtocolContext differentiates from other interfaces. IsProtocolContext() }
IProtocolContext is an interface to support dynamic dispatch.
type IRuleContext ¶
type IRuleContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRuleContext differentiates from other interfaces. IsRuleContext() }
IRuleContext is an interface to support dynamic dispatch.
type IRulesContext ¶
type IRulesContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsRulesContext differentiates from other interfaces. IsRulesContext() }
IRulesContext is an interface to support dynamic dispatch.
type ISepContext ¶ added in v1.3.1
type ISepContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSepContext differentiates from other interfaces. IsSepContext() }
ISepContext is an interface to support dynamic dispatch.
type ISettingContext ¶ added in v1.2.4
type ISettingContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSettingContext differentiates from other interfaces. IsSettingContext() }
ISettingContext is an interface to support dynamic dispatch.
type ISettingcontentContext ¶ added in v1.2.4
type ISettingcontentContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSettingcontentContext differentiates from other interfaces. IsSettingcontentContext() }
ISettingcontentContext is an interface to support dynamic dispatch.
type ISingleSettingContext ¶ added in v1.2.4
type ISingleSettingContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSingleSettingContext differentiates from other interfaces. IsSingleSettingContext() }
ISingleSettingContext is an interface to support dynamic dispatch.
type ISrc_addressContext ¶
type ISrc_addressContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSrc_addressContext differentiates from other interfaces. IsSrc_addressContext() }
ISrc_addressContext is an interface to support dynamic dispatch.
type ISrc_portContext ¶
type ISrc_portContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // IsSrc_portContext differentiates from other interfaces. IsSrc_portContext() }
ISrc_portContext is an interface to support dynamic dispatch.
type Ipv4Context ¶
type Ipv4Context struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIpv4Context ¶
func NewEmptyIpv4Context() *Ipv4Context
func NewIpv4Context ¶
func NewIpv4Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Ipv4Context
func (*Ipv4Context) Accept ¶
func (s *Ipv4Context) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Ipv4Context) AllDot ¶
func (s *Ipv4Context) AllDot() []antlr.TerminalNode
func (*Ipv4Context) AllIpv4block ¶
func (s *Ipv4Context) AllIpv4block() []IIpv4blockContext
func (*Ipv4Context) Div ¶
func (s *Ipv4Context) Div() antlr.TerminalNode
func (*Ipv4Context) Dot ¶
func (s *Ipv4Context) Dot(i int) antlr.TerminalNode
func (*Ipv4Context) GetParser ¶
func (s *Ipv4Context) GetParser() antlr.Parser
func (*Ipv4Context) GetRuleContext ¶
func (s *Ipv4Context) GetRuleContext() antlr.RuleContext
func (*Ipv4Context) Ipv4block ¶
func (s *Ipv4Context) Ipv4block(i int) IIpv4blockContext
func (*Ipv4Context) Ipv4mask ¶
func (s *Ipv4Context) Ipv4mask() IIpv4maskContext
func (*Ipv4Context) IsIpv4Context ¶
func (*Ipv4Context) IsIpv4Context()
func (*Ipv4Context) ToStringTree ¶
func (s *Ipv4Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Ipv4blockContext ¶
type Ipv4blockContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIpv4blockContext ¶
func NewEmptyIpv4blockContext() *Ipv4blockContext
func NewIpv4blockContext ¶
func NewIpv4blockContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Ipv4blockContext
func (*Ipv4blockContext) Accept ¶
func (s *Ipv4blockContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Ipv4blockContext) GetParser ¶
func (s *Ipv4blockContext) GetParser() antlr.Parser
func (*Ipv4blockContext) GetRuleContext ¶
func (s *Ipv4blockContext) GetRuleContext() antlr.RuleContext
func (*Ipv4blockContext) INT ¶
func (s *Ipv4blockContext) INT() antlr.TerminalNode
func (*Ipv4blockContext) IsIpv4blockContext ¶
func (*Ipv4blockContext) IsIpv4blockContext()
func (*Ipv4blockContext) ToStringTree ¶
func (s *Ipv4blockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Ipv4maskContext ¶
type Ipv4maskContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIpv4maskContext ¶
func NewEmptyIpv4maskContext() *Ipv4maskContext
func NewIpv4maskContext ¶
func NewIpv4maskContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Ipv4maskContext
func (*Ipv4maskContext) Accept ¶
func (s *Ipv4maskContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Ipv4maskContext) GetParser ¶
func (s *Ipv4maskContext) GetParser() antlr.Parser
func (*Ipv4maskContext) GetRuleContext ¶
func (s *Ipv4maskContext) GetRuleContext() antlr.RuleContext
func (*Ipv4maskContext) INT ¶
func (s *Ipv4maskContext) INT() antlr.TerminalNode
func (*Ipv4maskContext) IsIpv4maskContext ¶
func (*Ipv4maskContext) IsIpv4maskContext()
func (*Ipv4maskContext) ToStringTree ¶
func (s *Ipv4maskContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Ipv6Context ¶
type Ipv6Context struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIpv6Context ¶
func NewEmptyIpv6Context() *Ipv6Context
func NewIpv6Context ¶
func NewIpv6Context(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Ipv6Context
func (*Ipv6Context) Accept ¶
func (s *Ipv6Context) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Ipv6Context) Div ¶ added in v1.2.3
func (s *Ipv6Context) Div() antlr.TerminalNode
func (*Ipv6Context) GetParser ¶
func (s *Ipv6Context) GetParser() antlr.Parser
func (*Ipv6Context) GetRuleContext ¶
func (s *Ipv6Context) GetRuleContext() antlr.RuleContext
func (*Ipv6Context) Ipv6compact ¶ added in v1.2.3
func (s *Ipv6Context) Ipv6compact() IIpv6compactContext
func (*Ipv6Context) Ipv6full ¶ added in v1.2.3
func (s *Ipv6Context) Ipv6full() IIpv6fullContext
func (*Ipv6Context) Ipv6mask ¶ added in v1.2.3
func (s *Ipv6Context) Ipv6mask() IIpv6maskContext
func (*Ipv6Context) IsIpv6Context ¶
func (*Ipv6Context) IsIpv6Context()
func (*Ipv6Context) ToStringTree ¶
func (s *Ipv6Context) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Ipv6blockContext ¶ added in v1.2.3
type Ipv6blockContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIpv6blockContext ¶ added in v1.2.3
func NewEmptyIpv6blockContext() *Ipv6blockContext
func NewIpv6blockContext ¶ added in v1.2.3
func NewIpv6blockContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Ipv6blockContext
func (*Ipv6blockContext) Accept ¶ added in v1.2.3
func (s *Ipv6blockContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Ipv6blockContext) GetParser ¶ added in v1.2.3
func (s *Ipv6blockContext) GetParser() antlr.Parser
func (*Ipv6blockContext) GetRuleContext ¶ added in v1.2.3
func (s *Ipv6blockContext) GetRuleContext() antlr.RuleContext
func (*Ipv6blockContext) HEX ¶ added in v1.2.3
func (s *Ipv6blockContext) HEX() antlr.TerminalNode
func (*Ipv6blockContext) INT ¶ added in v1.2.3
func (s *Ipv6blockContext) INT() antlr.TerminalNode
func (*Ipv6blockContext) IsIpv6blockContext ¶ added in v1.2.3
func (*Ipv6blockContext) IsIpv6blockContext()
func (*Ipv6blockContext) ToStringTree ¶ added in v1.2.3
func (s *Ipv6blockContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Ipv6compactContext ¶ added in v1.2.3
type Ipv6compactContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIpv6compactContext ¶ added in v1.2.3
func NewEmptyIpv6compactContext() *Ipv6compactContext
func NewIpv6compactContext ¶ added in v1.2.3
func NewIpv6compactContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Ipv6compactContext
func (*Ipv6compactContext) Accept ¶ added in v1.2.3
func (s *Ipv6compactContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Ipv6compactContext) AllIpv6part ¶ added in v1.2.3
func (s *Ipv6compactContext) AllIpv6part() []IIpv6partContext
func (*Ipv6compactContext) DoubleColon ¶ added in v1.2.3
func (s *Ipv6compactContext) DoubleColon() antlr.TerminalNode
func (*Ipv6compactContext) GetParser ¶ added in v1.2.3
func (s *Ipv6compactContext) GetParser() antlr.Parser
func (*Ipv6compactContext) GetRuleContext ¶ added in v1.2.3
func (s *Ipv6compactContext) GetRuleContext() antlr.RuleContext
func (*Ipv6compactContext) Ipv6part ¶ added in v1.2.3
func (s *Ipv6compactContext) Ipv6part(i int) IIpv6partContext
func (*Ipv6compactContext) IsIpv6compactContext ¶ added in v1.2.3
func (*Ipv6compactContext) IsIpv6compactContext()
func (*Ipv6compactContext) ToStringTree ¶ added in v1.2.3
func (s *Ipv6compactContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Ipv6fullContext ¶ added in v1.2.3
type Ipv6fullContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIpv6fullContext ¶ added in v1.2.3
func NewEmptyIpv6fullContext() *Ipv6fullContext
func NewIpv6fullContext ¶ added in v1.2.3
func NewIpv6fullContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Ipv6fullContext
func (*Ipv6fullContext) Accept ¶ added in v1.2.3
func (s *Ipv6fullContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Ipv6fullContext) AllColon ¶ added in v1.2.3
func (s *Ipv6fullContext) AllColon() []antlr.TerminalNode
func (*Ipv6fullContext) AllIpv6block ¶ added in v1.2.3
func (s *Ipv6fullContext) AllIpv6block() []IIpv6blockContext
func (*Ipv6fullContext) Colon ¶ added in v1.2.3
func (s *Ipv6fullContext) Colon(i int) antlr.TerminalNode
func (*Ipv6fullContext) GetParser ¶ added in v1.2.3
func (s *Ipv6fullContext) GetParser() antlr.Parser
func (*Ipv6fullContext) GetRuleContext ¶ added in v1.2.3
func (s *Ipv6fullContext) GetRuleContext() antlr.RuleContext
func (*Ipv6fullContext) Ipv6block ¶ added in v1.2.3
func (s *Ipv6fullContext) Ipv6block(i int) IIpv6blockContext
func (*Ipv6fullContext) IsIpv6fullContext ¶ added in v1.2.3
func (*Ipv6fullContext) IsIpv6fullContext()
func (*Ipv6fullContext) ToStringTree ¶ added in v1.2.3
func (s *Ipv6fullContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Ipv6maskContext ¶ added in v1.2.3
type Ipv6maskContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIpv6maskContext ¶ added in v1.2.3
func NewEmptyIpv6maskContext() *Ipv6maskContext
func NewIpv6maskContext ¶ added in v1.2.3
func NewIpv6maskContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Ipv6maskContext
func (*Ipv6maskContext) Accept ¶ added in v1.2.3
func (s *Ipv6maskContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Ipv6maskContext) GetParser ¶ added in v1.2.3
func (s *Ipv6maskContext) GetParser() antlr.Parser
func (*Ipv6maskContext) GetRuleContext ¶ added in v1.2.3
func (s *Ipv6maskContext) GetRuleContext() antlr.RuleContext
func (*Ipv6maskContext) INT ¶ added in v1.2.3
func (s *Ipv6maskContext) INT() antlr.TerminalNode
func (*Ipv6maskContext) IsIpv6maskContext ¶ added in v1.2.3
func (*Ipv6maskContext) IsIpv6maskContext()
func (*Ipv6maskContext) ToStringTree ¶ added in v1.2.3
func (s *Ipv6maskContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Ipv6partContext ¶ added in v1.2.3
type Ipv6partContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIpv6partContext ¶ added in v1.2.3
func NewEmptyIpv6partContext() *Ipv6partContext
func NewIpv6partContext ¶ added in v1.2.3
func NewIpv6partContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Ipv6partContext
func (*Ipv6partContext) Accept ¶ added in v1.2.3
func (s *Ipv6partContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Ipv6partContext) Colon ¶ added in v1.2.3
func (s *Ipv6partContext) Colon() antlr.TerminalNode
func (*Ipv6partContext) GetParser ¶ added in v1.2.3
func (s *Ipv6partContext) GetParser() antlr.Parser
func (*Ipv6partContext) GetRuleContext ¶ added in v1.2.3
func (s *Ipv6partContext) GetRuleContext() antlr.RuleContext
func (*Ipv6partContext) Ipv6block ¶ added in v1.2.3
func (s *Ipv6partContext) Ipv6block() IIpv6blockContext
func (*Ipv6partContext) Ipv6part ¶ added in v1.2.3
func (s *Ipv6partContext) Ipv6part() IIpv6partContext
func (*Ipv6partContext) IsIpv6partContext ¶ added in v1.2.3
func (*Ipv6partContext) IsIpv6partContext()
func (*Ipv6partContext) ToStringTree ¶ added in v1.2.3
func (s *Ipv6partContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type KeywordContext ¶ added in v1.2.4
type KeywordContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyKeywordContext ¶ added in v1.2.4
func NewEmptyKeywordContext() *KeywordContext
func NewKeywordContext ¶ added in v1.2.4
func NewKeywordContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *KeywordContext
func (*KeywordContext) Accept ¶ added in v1.2.4
func (s *KeywordContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*KeywordContext) GetParser ¶ added in v1.2.4
func (s *KeywordContext) GetParser() antlr.Parser
func (*KeywordContext) GetRuleContext ¶ added in v1.2.4
func (s *KeywordContext) GetRuleContext() antlr.RuleContext
func (*KeywordContext) IsKeywordContext ¶ added in v1.2.4
func (*KeywordContext) IsKeywordContext()
func (*KeywordContext) ParamCommonString ¶ added in v1.2.4
func (s *KeywordContext) ParamCommonString() antlr.TerminalNode
func (*KeywordContext) ToStringTree ¶ added in v1.2.4
func (s *KeywordContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type NegativeContext ¶ added in v1.2.4
type NegativeContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyNegativeContext ¶ added in v1.2.4
func NewEmptyNegativeContext() *NegativeContext
func NewNegativeContext ¶ added in v1.2.4
func NewNegativeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NegativeContext
func (*NegativeContext) Accept ¶ added in v1.2.4
func (s *NegativeContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*NegativeContext) GetParser ¶ added in v1.2.4
func (s *NegativeContext) GetParser() antlr.Parser
func (*NegativeContext) GetRuleContext ¶ added in v1.2.4
func (s *NegativeContext) GetRuleContext() antlr.RuleContext
func (*NegativeContext) IsNegativeContext ¶ added in v1.2.4
func (*NegativeContext) IsNegativeContext()
func (*NegativeContext) ParamNegative ¶ added in v1.2.4
func (s *NegativeContext) ParamNegative() antlr.TerminalNode
func (*NegativeContext) ToStringTree ¶ added in v1.2.4
func (s *NegativeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ParamContext ¶
type ParamContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyParamContext ¶
func NewEmptyParamContext() *ParamContext
func NewParamContext ¶
func NewParamContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ParamContext
func (*ParamContext) Accept ¶
func (s *ParamContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ParamContext) GetParser ¶
func (s *ParamContext) GetParser() antlr.Parser
func (*ParamContext) GetRuleContext ¶
func (s *ParamContext) GetRuleContext() antlr.RuleContext
func (*ParamContext) IsParamContext ¶
func (*ParamContext) IsParamContext()
func (*ParamContext) Keyword ¶ added in v1.2.4
func (s *ParamContext) Keyword() IKeywordContext
func (*ParamContext) ParamColon ¶ added in v1.2.4
func (s *ParamContext) ParamColon() antlr.TerminalNode
func (*ParamContext) Setting ¶ added in v1.2.4
func (s *ParamContext) Setting() ISettingContext
func (*ParamContext) ToStringTree ¶
func (s *ParamContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ParamsContext ¶
type ParamsContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyParamsContext ¶
func NewEmptyParamsContext() *ParamsContext
func NewParamsContext ¶
func NewParamsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ParamsContext
func (*ParamsContext) Accept ¶
func (s *ParamsContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ParamsContext) AllParam ¶
func (s *ParamsContext) AllParam() []IParamContext
func (*ParamsContext) AllSep ¶ added in v1.3.1
func (s *ParamsContext) AllSep() []ISepContext
func (*ParamsContext) GetParser ¶
func (s *ParamsContext) GetParser() antlr.Parser
func (*ParamsContext) GetRuleContext ¶
func (s *ParamsContext) GetRuleContext() antlr.RuleContext
func (*ParamsContext) IsParamsContext ¶
func (*ParamsContext) IsParamsContext()
func (*ParamsContext) Param ¶
func (s *ParamsContext) Param(i int) IParamContext
func (*ParamsContext) ParamEnd ¶
func (s *ParamsContext) ParamEnd() antlr.TerminalNode
func (*ParamsContext) ParamStart ¶
func (s *ParamsContext) ParamStart() antlr.TerminalNode
func (*ParamsContext) Sep ¶ added in v1.3.1
func (s *ParamsContext) Sep(i int) ISepContext
func (*ParamsContext) ToStringTree ¶
func (s *ParamsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type PortContext ¶
type PortContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyPortContext ¶
func NewEmptyPortContext() *PortContext
func NewPortContext ¶
func NewPortContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PortContext
func (*PortContext) Accept ¶
func (s *PortContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*PortContext) AllComma ¶
func (s *PortContext) AllComma() []antlr.TerminalNode
func (*PortContext) AllINT ¶
func (s *PortContext) AllINT() []antlr.TerminalNode
func (*PortContext) AllPort ¶
func (s *PortContext) AllPort() []IPortContext
func (*PortContext) Any ¶
func (s *PortContext) Any() antlr.TerminalNode
func (*PortContext) Colon ¶
func (s *PortContext) Colon() antlr.TerminalNode
func (*PortContext) Comma ¶
func (s *PortContext) Comma(i int) antlr.TerminalNode
func (*PortContext) Environment_var ¶
func (s *PortContext) Environment_var() IEnvironment_varContext
func (*PortContext) GetParser ¶
func (s *PortContext) GetParser() antlr.Parser
func (*PortContext) GetRuleContext ¶
func (s *PortContext) GetRuleContext() antlr.RuleContext
func (*PortContext) INT ¶
func (s *PortContext) INT(i int) antlr.TerminalNode
func (*PortContext) IsPortContext ¶
func (*PortContext) IsPortContext()
func (*PortContext) LBracket ¶
func (s *PortContext) LBracket() antlr.TerminalNode
func (*PortContext) Negative ¶
func (s *PortContext) Negative() antlr.TerminalNode
func (*PortContext) Port ¶
func (s *PortContext) Port(i int) IPortContext
func (*PortContext) RBracket ¶
func (s *PortContext) RBracket() antlr.TerminalNode
func (*PortContext) ToStringTree ¶
func (s *PortContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ProtocolContext ¶
type ProtocolContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyProtocolContext ¶
func NewEmptyProtocolContext() *ProtocolContext
func NewProtocolContext ¶
func NewProtocolContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ProtocolContext
func (*ProtocolContext) Accept ¶
func (s *ProtocolContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ProtocolContext) GetParser ¶
func (s *ProtocolContext) GetParser() antlr.Parser
func (*ProtocolContext) GetRuleContext ¶
func (s *ProtocolContext) GetRuleContext() antlr.RuleContext
func (*ProtocolContext) ID ¶
func (s *ProtocolContext) ID() antlr.TerminalNode
func (*ProtocolContext) IsProtocolContext ¶
func (*ProtocolContext) IsProtocolContext()
func (*ProtocolContext) ToStringTree ¶
func (s *ProtocolContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RuleContext ¶
type RuleContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRuleContext ¶
func NewEmptyRuleContext() *RuleContext
func NewRuleContext ¶
func NewRuleContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RuleContext
func (*RuleContext) Accept ¶
func (s *RuleContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*RuleContext) Action_ ¶
func (s *RuleContext) Action_() IActionContext
func (*RuleContext) Arrow ¶
func (s *RuleContext) Arrow() antlr.TerminalNode
func (*RuleContext) BothDirect ¶ added in v1.2.3
func (s *RuleContext) BothDirect() antlr.TerminalNode
func (*RuleContext) Dest_address ¶
func (s *RuleContext) Dest_address() IDest_addressContext
func (*RuleContext) Dest_port ¶
func (s *RuleContext) Dest_port() IDest_portContext
func (*RuleContext) GetParser ¶
func (s *RuleContext) GetParser() antlr.Parser
func (*RuleContext) GetRuleContext ¶
func (s *RuleContext) GetRuleContext() antlr.RuleContext
func (*RuleContext) IsRuleContext ¶
func (*RuleContext) IsRuleContext()
func (*RuleContext) Params ¶
func (s *RuleContext) Params() IParamsContext
func (*RuleContext) Protocol ¶
func (s *RuleContext) Protocol() IProtocolContext
func (*RuleContext) Src_address ¶
func (s *RuleContext) Src_address() ISrc_addressContext
func (*RuleContext) Src_port ¶
func (s *RuleContext) Src_port() ISrc_portContext
func (*RuleContext) ToStringTree ¶
func (s *RuleContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type RulesContext ¶
type RulesContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyRulesContext ¶
func NewEmptyRulesContext() *RulesContext
func NewRulesContext ¶
func NewRulesContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RulesContext
func (*RulesContext) Accept ¶
func (s *RulesContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*RulesContext) AllRule_ ¶
func (s *RulesContext) AllRule_() []IRuleContext
func (*RulesContext) EOF ¶
func (s *RulesContext) EOF() antlr.TerminalNode
func (*RulesContext) GetParser ¶
func (s *RulesContext) GetParser() antlr.Parser
func (*RulesContext) GetRuleContext ¶
func (s *RulesContext) GetRuleContext() antlr.RuleContext
func (*RulesContext) IsRulesContext ¶
func (*RulesContext) IsRulesContext()
func (*RulesContext) Rule_ ¶
func (s *RulesContext) Rule_(i int) IRuleContext
func (*RulesContext) ToStringTree ¶
func (s *RulesContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SepContext ¶ added in v1.3.1
type SepContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySepContext ¶ added in v1.3.1
func NewEmptySepContext() *SepContext
func NewSepContext ¶ added in v1.3.1
func NewSepContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SepContext
func (*SepContext) Accept ¶ added in v1.3.1
func (s *SepContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*SepContext) GetParser ¶ added in v1.3.1
func (s *SepContext) GetParser() antlr.Parser
func (*SepContext) GetRuleContext ¶ added in v1.3.1
func (s *SepContext) GetRuleContext() antlr.RuleContext
func (*SepContext) IsSepContext ¶ added in v1.3.1
func (*SepContext) IsSepContext()
func (*SepContext) ParamSep ¶ added in v1.3.1
func (s *SepContext) ParamSep() antlr.TerminalNode
func (*SepContext) ToStringTree ¶ added in v1.3.1
func (s *SepContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*SepContext) UntilSepSettingEnd ¶ added in v1.3.1
func (s *SepContext) UntilSepSettingEnd() antlr.TerminalNode
type SettingContext ¶ added in v1.2.4
type SettingContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySettingContext ¶ added in v1.2.4
func NewEmptySettingContext() *SettingContext
func NewSettingContext ¶ added in v1.2.4
func NewSettingContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SettingContext
func (*SettingContext) Accept ¶ added in v1.2.4
func (s *SettingContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*SettingContext) AllParamComma ¶ added in v1.2.4
func (s *SettingContext) AllParamComma() []antlr.TerminalNode
func (*SettingContext) AllSingleSetting ¶ added in v1.2.4
func (s *SettingContext) AllSingleSetting() []ISingleSettingContext
func (*SettingContext) GetParser ¶ added in v1.2.4
func (s *SettingContext) GetParser() antlr.Parser
func (*SettingContext) GetRuleContext ¶ added in v1.2.4
func (s *SettingContext) GetRuleContext() antlr.RuleContext
func (*SettingContext) IsSettingContext ¶ added in v1.2.4
func (*SettingContext) IsSettingContext()
func (*SettingContext) ParamComma ¶ added in v1.2.4
func (s *SettingContext) ParamComma(i int) antlr.TerminalNode
func (*SettingContext) SingleSetting ¶ added in v1.2.4
func (s *SettingContext) SingleSetting(i int) ISingleSettingContext
func (*SettingContext) ToStringTree ¶ added in v1.2.4
func (s *SettingContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SettingcontentContext ¶ added in v1.2.4
type SettingcontentContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySettingcontentContext ¶ added in v1.2.4
func NewEmptySettingcontentContext() *SettingcontentContext
func NewSettingcontentContext ¶ added in v1.2.4
func NewSettingcontentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SettingcontentContext
func (*SettingcontentContext) Accept ¶ added in v1.2.4
func (s *SettingcontentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*SettingcontentContext) GetParser ¶ added in v1.2.4
func (s *SettingcontentContext) GetParser() antlr.Parser
func (*SettingcontentContext) GetRuleContext ¶ added in v1.2.4
func (s *SettingcontentContext) GetRuleContext() antlr.RuleContext
func (*SettingcontentContext) IsSettingcontentContext ¶ added in v1.2.4
func (*SettingcontentContext) IsSettingcontentContext()
func (*SettingcontentContext) ModeString ¶ added in v1.3.1
func (s *SettingcontentContext) ModeString() antlr.TerminalNode
func (*SettingcontentContext) ModeStringEnd ¶ added in v1.3.1
func (s *SettingcontentContext) ModeStringEnd() antlr.TerminalNode
func (*SettingcontentContext) ModeStringStart ¶ added in v1.3.1
func (s *SettingcontentContext) ModeStringStart() antlr.TerminalNode
func (*SettingcontentContext) ParamCommonString ¶ added in v1.2.4
func (s *SettingcontentContext) ParamCommonString() antlr.TerminalNode
func (*SettingcontentContext) ToStringTree ¶ added in v1.2.4
func (s *SettingcontentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SingleSettingContext ¶ added in v1.2.4
type SingleSettingContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySingleSettingContext ¶ added in v1.2.4
func NewEmptySingleSettingContext() *SingleSettingContext
func NewSingleSettingContext ¶ added in v1.2.4
func NewSingleSettingContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SingleSettingContext
func (*SingleSettingContext) Accept ¶ added in v1.2.4
func (s *SingleSettingContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*SingleSettingContext) GetParser ¶ added in v1.2.4
func (s *SingleSettingContext) GetParser() antlr.Parser
func (*SingleSettingContext) GetRuleContext ¶ added in v1.2.4
func (s *SingleSettingContext) GetRuleContext() antlr.RuleContext
func (*SingleSettingContext) IsSingleSettingContext ¶ added in v1.2.4
func (*SingleSettingContext) IsSingleSettingContext()
func (*SingleSettingContext) Negative ¶ added in v1.2.4
func (s *SingleSettingContext) Negative() INegativeContext
func (*SingleSettingContext) NonQuotedString ¶ added in v1.3.1
func (s *SingleSettingContext) NonQuotedString() antlr.TerminalNode
func (*SingleSettingContext) Settingcontent ¶ added in v1.2.4
func (s *SingleSettingContext) Settingcontent() ISettingcontentContext
func (*SingleSettingContext) ToStringTree ¶ added in v1.2.4
func (s *SingleSettingContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Src_addressContext ¶
type Src_addressContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySrc_addressContext ¶
func NewEmptySrc_addressContext() *Src_addressContext
func NewSrc_addressContext ¶
func NewSrc_addressContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Src_addressContext
func (*Src_addressContext) Accept ¶
func (s *Src_addressContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Src_addressContext) Address ¶
func (s *Src_addressContext) Address() IAddressContext
func (*Src_addressContext) GetParser ¶
func (s *Src_addressContext) GetParser() antlr.Parser
func (*Src_addressContext) GetRuleContext ¶
func (s *Src_addressContext) GetRuleContext() antlr.RuleContext
func (*Src_addressContext) IsSrc_addressContext ¶
func (*Src_addressContext) IsSrc_addressContext()
func (*Src_addressContext) ToStringTree ¶
func (s *Src_addressContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type Src_portContext ¶
type Src_portContext struct { *antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySrc_portContext ¶
func NewEmptySrc_portContext() *Src_portContext
func NewSrc_portContext ¶
func NewSrc_portContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Src_portContext
func (*Src_portContext) Accept ¶
func (s *Src_portContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*Src_portContext) GetParser ¶
func (s *Src_portContext) GetParser() antlr.Parser
func (*Src_portContext) GetRuleContext ¶
func (s *Src_portContext) GetRuleContext() antlr.RuleContext
func (*Src_portContext) IsSrc_portContext ¶
func (*Src_portContext) IsSrc_portContext()
func (*Src_portContext) Port ¶
func (s *Src_portContext) Port() IPortContext
func (*Src_portContext) ToStringTree ¶
func (s *Src_portContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SuricataRuleLexer ¶
type SuricataRuleLexer struct { *antlr.BaseLexer // contains filtered or unexported fields }
func NewSuricataRuleLexer ¶
func NewSuricataRuleLexer(input antlr.CharStream) *SuricataRuleLexer
NewSuricataRuleLexer produces a new lexer instance for the optional input antlr.CharStream.
type SuricataRuleParser ¶
type SuricataRuleParser struct {
*antlr.BaseParser
}
func NewSuricataRuleParser ¶
func NewSuricataRuleParser(input antlr.TokenStream) *SuricataRuleParser
NewSuricataRuleParser produces a new parser instance for the optional input antlr.TokenStream.
func (*SuricataRuleParser) Action_ ¶
func (p *SuricataRuleParser) Action_() (localctx IActionContext)
func (*SuricataRuleParser) Address ¶
func (p *SuricataRuleParser) Address() (localctx IAddressContext)
func (*SuricataRuleParser) Dest_address ¶
func (p *SuricataRuleParser) Dest_address() (localctx IDest_addressContext)
func (*SuricataRuleParser) Dest_port ¶
func (p *SuricataRuleParser) Dest_port() (localctx IDest_portContext)
func (*SuricataRuleParser) Environment_var ¶
func (p *SuricataRuleParser) Environment_var() (localctx IEnvironment_varContext)
func (*SuricataRuleParser) Ipv4 ¶
func (p *SuricataRuleParser) Ipv4() (localctx IIpv4Context)
func (*SuricataRuleParser) Ipv4block ¶
func (p *SuricataRuleParser) Ipv4block() (localctx IIpv4blockContext)
func (*SuricataRuleParser) Ipv4mask ¶
func (p *SuricataRuleParser) Ipv4mask() (localctx IIpv4maskContext)
func (*SuricataRuleParser) Ipv6 ¶
func (p *SuricataRuleParser) Ipv6() (localctx IIpv6Context)
func (*SuricataRuleParser) Ipv6block ¶ added in v1.2.3
func (p *SuricataRuleParser) Ipv6block() (localctx IIpv6blockContext)
func (*SuricataRuleParser) Ipv6compact ¶ added in v1.2.3
func (p *SuricataRuleParser) Ipv6compact() (localctx IIpv6compactContext)
func (*SuricataRuleParser) Ipv6full ¶ added in v1.2.3
func (p *SuricataRuleParser) Ipv6full() (localctx IIpv6fullContext)
func (*SuricataRuleParser) Ipv6mask ¶ added in v1.2.3
func (p *SuricataRuleParser) Ipv6mask() (localctx IIpv6maskContext)
func (*SuricataRuleParser) Ipv6part ¶ added in v1.2.3
func (p *SuricataRuleParser) Ipv6part() (localctx IIpv6partContext)
func (*SuricataRuleParser) Ipv6part_Sempred ¶ added in v1.2.3
func (p *SuricataRuleParser) Ipv6part_Sempred(localctx antlr.RuleContext, predIndex int) bool
func (*SuricataRuleParser) Keyword ¶ added in v1.2.4
func (p *SuricataRuleParser) Keyword() (localctx IKeywordContext)
func (*SuricataRuleParser) Negative ¶ added in v1.2.4
func (p *SuricataRuleParser) Negative() (localctx INegativeContext)
func (*SuricataRuleParser) Param ¶
func (p *SuricataRuleParser) Param() (localctx IParamContext)
func (*SuricataRuleParser) Params ¶
func (p *SuricataRuleParser) Params() (localctx IParamsContext)
func (*SuricataRuleParser) Port ¶
func (p *SuricataRuleParser) Port() (localctx IPortContext)
func (*SuricataRuleParser) Protocol ¶
func (p *SuricataRuleParser) Protocol() (localctx IProtocolContext)
func (*SuricataRuleParser) Rule_ ¶
func (p *SuricataRuleParser) Rule_() (localctx IRuleContext)
func (*SuricataRuleParser) Rules ¶
func (p *SuricataRuleParser) Rules() (localctx IRulesContext)
func (*SuricataRuleParser) Sempred ¶ added in v1.2.3
func (p *SuricataRuleParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
func (*SuricataRuleParser) Sep ¶ added in v1.3.1
func (p *SuricataRuleParser) Sep() (localctx ISepContext)
func (*SuricataRuleParser) Setting ¶ added in v1.2.4
func (p *SuricataRuleParser) Setting() (localctx ISettingContext)
func (*SuricataRuleParser) Settingcontent ¶ added in v1.2.4
func (p *SuricataRuleParser) Settingcontent() (localctx ISettingcontentContext)
func (*SuricataRuleParser) SingleSetting ¶ added in v1.2.4
func (p *SuricataRuleParser) SingleSetting() (localctx ISingleSettingContext)
func (*SuricataRuleParser) Src_address ¶
func (p *SuricataRuleParser) Src_address() (localctx ISrc_addressContext)
func (*SuricataRuleParser) Src_port ¶
func (p *SuricataRuleParser) Src_port() (localctx ISrc_portContext)
type SuricataRuleParserVisitor ¶
type SuricataRuleParserVisitor interface { antlr.ParseTreeVisitor // Visit a parse tree produced by SuricataRuleParser#rules. VisitRules(ctx *RulesContext) interface{} // Visit a parse tree produced by SuricataRuleParser#rule. VisitRule(ctx *RuleContext) interface{} // Visit a parse tree produced by SuricataRuleParser#action. VisitAction(ctx *ActionContext) interface{} // Visit a parse tree produced by SuricataRuleParser#protocol. VisitProtocol(ctx *ProtocolContext) interface{} // Visit a parse tree produced by SuricataRuleParser#src_address. VisitSrc_address(ctx *Src_addressContext) interface{} // Visit a parse tree produced by SuricataRuleParser#dest_address. VisitDest_address(ctx *Dest_addressContext) interface{} // Visit a parse tree produced by SuricataRuleParser#address. VisitAddress(ctx *AddressContext) interface{} // Visit a parse tree produced by SuricataRuleParser#ipv4. VisitIpv4(ctx *Ipv4Context) interface{} // Visit a parse tree produced by SuricataRuleParser#ipv4block. VisitIpv4block(ctx *Ipv4blockContext) interface{} // Visit a parse tree produced by SuricataRuleParser#ipv4mask. VisitIpv4mask(ctx *Ipv4maskContext) interface{} // Visit a parse tree produced by SuricataRuleParser#environment_var. VisitEnvironment_var(ctx *Environment_varContext) interface{} // Visit a parse tree produced by SuricataRuleParser#ipv6. VisitIpv6(ctx *Ipv6Context) interface{} // Visit a parse tree produced by SuricataRuleParser#ipv6full. VisitIpv6full(ctx *Ipv6fullContext) interface{} // Visit a parse tree produced by SuricataRuleParser#ipv6compact. VisitIpv6compact(ctx *Ipv6compactContext) interface{} // Visit a parse tree produced by SuricataRuleParser#ipv6part. VisitIpv6part(ctx *Ipv6partContext) interface{} // Visit a parse tree produced by SuricataRuleParser#ipv6block. VisitIpv6block(ctx *Ipv6blockContext) interface{} // Visit a parse tree produced by SuricataRuleParser#ipv6mask. VisitIpv6mask(ctx *Ipv6maskContext) interface{} // Visit a parse tree produced by SuricataRuleParser#src_port. VisitSrc_port(ctx *Src_portContext) interface{} // Visit a parse tree produced by SuricataRuleParser#dest_port. VisitDest_port(ctx *Dest_portContext) interface{} // Visit a parse tree produced by SuricataRuleParser#port. VisitPort(ctx *PortContext) interface{} // Visit a parse tree produced by SuricataRuleParser#params. VisitParams(ctx *ParamsContext) interface{} // Visit a parse tree produced by SuricataRuleParser#param. VisitParam(ctx *ParamContext) interface{} // Visit a parse tree produced by SuricataRuleParser#keyword. VisitKeyword(ctx *KeywordContext) interface{} // Visit a parse tree produced by SuricataRuleParser#setting. VisitSetting(ctx *SettingContext) interface{} // Visit a parse tree produced by SuricataRuleParser#singleSetting. VisitSingleSetting(ctx *SingleSettingContext) interface{} // Visit a parse tree produced by SuricataRuleParser#negative. VisitNegative(ctx *NegativeContext) interface{} // Visit a parse tree produced by SuricataRuleParser#settingcontent. VisitSettingcontent(ctx *SettingcontentContext) interface{} // Visit a parse tree produced by SuricataRuleParser#sep. VisitSep(ctx *SepContext) interface{} }
A complete Visitor for a parse tree produced by SuricataRuleParser.