Documentation ¶
Index ¶
- Constants
- Variables
- func InitEmptyCbfStmtContext(p *CbfStmtContext)
- func InitEmptyClauseContext(p *ClauseContext)
- func InitEmptyEcStmtContext(p *EcStmtContext)
- func InitEmptyExprContext(p *ExprContext)
- func InitEmptyFilterExprContext(p *FilterExprContext)
- func InitEmptyFilterKeyContext(p *FilterKeyContext)
- func InitEmptyFilterStmtContext(p *FilterStmtContext)
- func InitEmptyFilterValueContext(p *FilterValueContext)
- func InitEmptyIdentContext(p *IdentContext)
- func InitEmptyIdentWCContext(p *IdentWCContext)
- func InitEmptyKeywordContext(p *KeywordContext)
- func InitEmptyNumberContext(p *NumberContext)
- func InitEmptyPolicyContext(p *PolicyContext)
- func InitEmptyRepStmtContext(p *RepStmtContext)
- func InitEmptySelectFilterExprContext(p *SelectFilterExprContext)
- func InitEmptySelectStmtContext(p *SelectStmtContext)
- func QueryInit()
- func QueryLexerInit()
- type BaseQueryVisitor
- func (v *BaseQueryVisitor) VisitCbfStmt(ctx *CbfStmtContext) interface{}
- func (v *BaseQueryVisitor) VisitClause(ctx *ClauseContext) interface{}
- func (v *BaseQueryVisitor) VisitEcStmt(ctx *EcStmtContext) interface{}
- func (v *BaseQueryVisitor) VisitExpr(ctx *ExprContext) interface{}
- func (v *BaseQueryVisitor) VisitFilterExpr(ctx *FilterExprContext) interface{}
- func (v *BaseQueryVisitor) VisitFilterKey(ctx *FilterKeyContext) interface{}
- func (v *BaseQueryVisitor) VisitFilterStmt(ctx *FilterStmtContext) interface{}
- func (v *BaseQueryVisitor) VisitFilterValue(ctx *FilterValueContext) interface{}
- func (v *BaseQueryVisitor) VisitIdent(ctx *IdentContext) interface{}
- func (v *BaseQueryVisitor) VisitIdentWC(ctx *IdentWCContext) interface{}
- func (v *BaseQueryVisitor) VisitKeyword(ctx *KeywordContext) interface{}
- func (v *BaseQueryVisitor) VisitNumber(ctx *NumberContext) interface{}
- func (v *BaseQueryVisitor) VisitPolicy(ctx *PolicyContext) interface{}
- func (v *BaseQueryVisitor) VisitRepStmt(ctx *RepStmtContext) interface{}
- func (v *BaseQueryVisitor) VisitSelectFilterExpr(ctx *SelectFilterExprContext) interface{}
- func (v *BaseQueryVisitor) VisitSelectStmt(ctx *SelectStmtContext) interface{}
- type CbfStmtContext
- func (s *CbfStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *CbfStmtContext) CBF() antlr.TerminalNode
- func (s *CbfStmtContext) GetBackupFactor() antlr.Token
- func (s *CbfStmtContext) GetParser() antlr.Parser
- func (s *CbfStmtContext) GetRuleContext() antlr.RuleContext
- func (*CbfStmtContext) IsCbfStmtContext()
- func (s *CbfStmtContext) NUMBER1() antlr.TerminalNode
- func (s *CbfStmtContext) SetBackupFactor(v antlr.Token)
- func (s *CbfStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ClauseContext
- func (s *ClauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ClauseContext) CLAUSE_DISTINCT() antlr.TerminalNode
- func (s *ClauseContext) CLAUSE_SAME() antlr.TerminalNode
- func (s *ClauseContext) GetParser() antlr.Parser
- func (s *ClauseContext) GetRuleContext() antlr.RuleContext
- func (*ClauseContext) IsClauseContext()
- func (s *ClauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type EcStmtContext
- func (s *EcStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *EcStmtContext) AllNUMBER1() []antlr.TerminalNode
- func (s *EcStmtContext) DOT() antlr.TerminalNode
- func (s *EcStmtContext) EC() antlr.TerminalNode
- func (s *EcStmtContext) GetData() antlr.Token
- func (s *EcStmtContext) GetParity() antlr.Token
- func (s *EcStmtContext) GetParser() antlr.Parser
- func (s *EcStmtContext) GetRuleContext() antlr.RuleContext
- func (s *EcStmtContext) GetSelector() IIdentContext
- func (s *EcStmtContext) IN() antlr.TerminalNode
- func (s *EcStmtContext) Ident() IIdentContext
- func (*EcStmtContext) IsEcStmtContext()
- func (s *EcStmtContext) NUMBER1(i int) antlr.TerminalNode
- func (s *EcStmtContext) SetData(v antlr.Token)
- func (s *EcStmtContext) SetParity(v antlr.Token)
- func (s *EcStmtContext) SetSelector(v IIdentContext)
- func (s *EcStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ExprContext
- func (s *ExprContext) AT() antlr.TerminalNode
- func (s *ExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *ExprContext) FilterKey() IFilterKeyContext
- func (s *ExprContext) FilterValue() IFilterValueContext
- func (s *ExprContext) GetFilter() IIdentContext
- func (s *ExprContext) GetKey() IFilterKeyContext
- func (s *ExprContext) GetParser() antlr.Parser
- func (s *ExprContext) GetRuleContext() antlr.RuleContext
- func (s *ExprContext) GetValue() IFilterValueContext
- func (s *ExprContext) Ident() IIdentContext
- func (*ExprContext) IsExprContext()
- func (s *ExprContext) SIMPLE_OP() antlr.TerminalNode
- func (s *ExprContext) SetFilter(v IIdentContext)
- func (s *ExprContext) SetKey(v IFilterKeyContext)
- func (s *ExprContext) SetValue(v IFilterValueContext)
- func (s *ExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FilterExprContext
- func (s *FilterExprContext) AND_OP() antlr.TerminalNode
- func (s *FilterExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *FilterExprContext) AllFilterExpr() []IFilterExprContext
- func (s *FilterExprContext) Expr() IExprContext
- func (s *FilterExprContext) FilterExpr(i int) IFilterExprContext
- func (s *FilterExprContext) GetF1() IFilterExprContext
- func (s *FilterExprContext) GetF2() IFilterExprContext
- func (s *FilterExprContext) GetInner() IFilterExprContext
- func (s *FilterExprContext) GetOp() antlr.Token
- func (s *FilterExprContext) GetParser() antlr.Parser
- func (s *FilterExprContext) GetRuleContext() antlr.RuleContext
- func (*FilterExprContext) IsFilterExprContext()
- func (s *FilterExprContext) L_PAREN() antlr.TerminalNode
- func (s *FilterExprContext) NOT_OP() antlr.TerminalNode
- func (s *FilterExprContext) OR_OP() antlr.TerminalNode
- func (s *FilterExprContext) R_PAREN() antlr.TerminalNode
- func (s *FilterExprContext) SetF1(v IFilterExprContext)
- func (s *FilterExprContext) SetF2(v IFilterExprContext)
- func (s *FilterExprContext) SetInner(v IFilterExprContext)
- func (s *FilterExprContext) SetOp(v antlr.Token)
- func (s *FilterExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FilterKeyContext
- func (s *FilterKeyContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *FilterKeyContext) GetParser() antlr.Parser
- func (s *FilterKeyContext) GetRuleContext() antlr.RuleContext
- func (s *FilterKeyContext) Ident() IIdentContext
- func (*FilterKeyContext) IsFilterKeyContext()
- func (s *FilterKeyContext) STRING() antlr.TerminalNode
- func (s *FilterKeyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FilterStmtContext
- func (s *FilterStmtContext) AS() antlr.TerminalNode
- func (s *FilterStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *FilterStmtContext) FILTER() antlr.TerminalNode
- func (s *FilterStmtContext) FilterExpr() IFilterExprContext
- func (s *FilterStmtContext) GetExpr() IFilterExprContext
- func (s *FilterStmtContext) GetName() IIdentContext
- func (s *FilterStmtContext) GetParser() antlr.Parser
- func (s *FilterStmtContext) GetRuleContext() antlr.RuleContext
- func (s *FilterStmtContext) Ident() IIdentContext
- func (*FilterStmtContext) IsFilterStmtContext()
- func (s *FilterStmtContext) SetExpr(v IFilterExprContext)
- func (s *FilterStmtContext) SetName(v IIdentContext)
- func (s *FilterStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type FilterValueContext
- func (s *FilterValueContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *FilterValueContext) GetParser() antlr.Parser
- func (s *FilterValueContext) GetRuleContext() antlr.RuleContext
- func (s *FilterValueContext) Ident() IIdentContext
- func (*FilterValueContext) IsFilterValueContext()
- func (s *FilterValueContext) Number() INumberContext
- func (s *FilterValueContext) STRING() antlr.TerminalNode
- func (s *FilterValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type ICbfStmtContext
- type IClauseContext
- type IEcStmtContext
- type IExprContext
- type IFilterExprContext
- type IFilterKeyContext
- type IFilterStmtContext
- type IFilterValueContext
- type IIdentContext
- type IIdentWCContext
- type IKeywordContext
- type INumberContext
- type IPolicyContext
- type IRepStmtContext
- type ISelectFilterExprContext
- type ISelectStmtContext
- type IdentContext
- func (s *IdentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *IdentContext) GetParser() antlr.Parser
- func (s *IdentContext) GetRuleContext() antlr.RuleContext
- func (s *IdentContext) IDENT() antlr.TerminalNode
- func (*IdentContext) IsIdentContext()
- func (s *IdentContext) Keyword() IKeywordContext
- func (s *IdentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type IdentWCContext
- func (s *IdentWCContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *IdentWCContext) GetParser() antlr.Parser
- func (s *IdentWCContext) GetRuleContext() antlr.RuleContext
- func (s *IdentWCContext) Ident() IIdentContext
- func (*IdentWCContext) IsIdentWCContext()
- func (s *IdentWCContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *IdentWCContext) WILDCARD() antlr.TerminalNode
- type KeywordContext
- func (s *KeywordContext) AS() antlr.TerminalNode
- func (s *KeywordContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *KeywordContext) FILTER() antlr.TerminalNode
- func (s *KeywordContext) FROM() antlr.TerminalNode
- func (s *KeywordContext) GetParser() antlr.Parser
- func (s *KeywordContext) GetRuleContext() antlr.RuleContext
- func (s *KeywordContext) IN() antlr.TerminalNode
- func (*KeywordContext) IsKeywordContext()
- func (s *KeywordContext) REP() antlr.TerminalNode
- func (s *KeywordContext) SELECT() antlr.TerminalNode
- func (s *KeywordContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type NumberContext
- func (s *NumberContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *NumberContext) GetParser() antlr.Parser
- func (s *NumberContext) GetRuleContext() antlr.RuleContext
- func (*NumberContext) IsNumberContext()
- func (s *NumberContext) NUMBER1() antlr.TerminalNode
- func (s *NumberContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *NumberContext) ZERO() antlr.TerminalNode
- type PolicyContext
- func (s *PolicyContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *PolicyContext) AllEcStmt() []IEcStmtContext
- func (s *PolicyContext) AllFilterStmt() []IFilterStmtContext
- func (s *PolicyContext) AllRepStmt() []IRepStmtContext
- func (s *PolicyContext) AllSelectStmt() []ISelectStmtContext
- func (s *PolicyContext) CbfStmt() ICbfStmtContext
- func (s *PolicyContext) EOF() antlr.TerminalNode
- func (s *PolicyContext) EcStmt(i int) IEcStmtContext
- func (s *PolicyContext) FilterStmt(i int) IFilterStmtContext
- func (s *PolicyContext) GetParser() antlr.Parser
- func (s *PolicyContext) GetRuleContext() antlr.RuleContext
- func (*PolicyContext) IsPolicyContext()
- func (s *PolicyContext) RepStmt(i int) IRepStmtContext
- func (s *PolicyContext) SelectStmt(i int) ISelectStmtContext
- func (s *PolicyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- func (s *PolicyContext) UNIQUE() antlr.TerminalNode
- type Query
- func (p *Query) CbfStmt() (localctx ICbfStmtContext)
- func (p *Query) Clause() (localctx IClauseContext)
- func (p *Query) EcStmt() (localctx IEcStmtContext)
- func (p *Query) Expr() (localctx IExprContext)
- func (p *Query) FilterExpr() (localctx IFilterExprContext)
- func (p *Query) FilterExpr_Sempred(localctx antlr.RuleContext, predIndex int) bool
- func (p *Query) FilterKey() (localctx IFilterKeyContext)
- func (p *Query) FilterStmt() (localctx IFilterStmtContext)
- func (p *Query) FilterValue() (localctx IFilterValueContext)
- func (p *Query) Ident() (localctx IIdentContext)
- func (p *Query) IdentWC() (localctx IIdentWCContext)
- func (p *Query) Keyword() (localctx IKeywordContext)
- func (p *Query) Number() (localctx INumberContext)
- func (p *Query) Policy() (localctx IPolicyContext)
- func (p *Query) RepStmt() (localctx IRepStmtContext)
- func (p *Query) SelectFilterExpr() (localctx ISelectFilterExprContext)
- func (p *Query) SelectStmt() (localctx ISelectStmtContext)
- func (p *Query) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool
- type QueryLexer
- type QueryVisitor
- type RepStmtContext
- func (s *RepStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *RepStmtContext) GetCount() antlr.Token
- func (s *RepStmtContext) GetParser() antlr.Parser
- func (s *RepStmtContext) GetRuleContext() antlr.RuleContext
- func (s *RepStmtContext) GetSelector() IIdentContext
- func (s *RepStmtContext) IN() antlr.TerminalNode
- func (s *RepStmtContext) Ident() IIdentContext
- func (*RepStmtContext) IsRepStmtContext()
- func (s *RepStmtContext) NUMBER1() antlr.TerminalNode
- func (s *RepStmtContext) REP() antlr.TerminalNode
- func (s *RepStmtContext) SetCount(v antlr.Token)
- func (s *RepStmtContext) SetSelector(v IIdentContext)
- func (s *RepStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SelectFilterExprContext
- func (s *SelectFilterExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *SelectFilterExprContext) AllFilterStmt() []IFilterStmtContext
- func (s *SelectFilterExprContext) CbfStmt() ICbfStmtContext
- func (s *SelectFilterExprContext) EOF() antlr.TerminalNode
- func (s *SelectFilterExprContext) FilterStmt(i int) IFilterStmtContext
- func (s *SelectFilterExprContext) GetParser() antlr.Parser
- func (s *SelectFilterExprContext) GetRuleContext() antlr.RuleContext
- func (*SelectFilterExprContext) IsSelectFilterExprContext()
- func (s *SelectFilterExprContext) SelectStmt() ISelectStmtContext
- func (s *SelectFilterExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
- type SelectStmtContext
- func (s *SelectStmtContext) AS() antlr.TerminalNode
- func (s *SelectStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
- func (s *SelectStmtContext) Clause() IClauseContext
- func (s *SelectStmtContext) FROM() antlr.TerminalNode
- func (s *SelectStmtContext) FilterKey() IFilterKeyContext
- func (s *SelectStmtContext) GetBucket() IFilterKeyContext
- func (s *SelectStmtContext) GetCount() antlr.Token
- func (s *SelectStmtContext) GetFilter() IIdentWCContext
- func (s *SelectStmtContext) GetName() IIdentContext
- func (s *SelectStmtContext) GetParser() antlr.Parser
- func (s *SelectStmtContext) GetRuleContext() antlr.RuleContext
- func (s *SelectStmtContext) IN() antlr.TerminalNode
- func (s *SelectStmtContext) Ident() IIdentContext
- func (s *SelectStmtContext) IdentWC() IIdentWCContext
- func (*SelectStmtContext) IsSelectStmtContext()
- func (s *SelectStmtContext) NUMBER1() antlr.TerminalNode
- func (s *SelectStmtContext) SELECT() antlr.TerminalNode
- func (s *SelectStmtContext) SetBucket(v IFilterKeyContext)
- func (s *SelectStmtContext) SetCount(v antlr.Token)
- func (s *SelectStmtContext) SetFilter(v IIdentWCContext)
- func (s *SelectStmtContext) SetName(v IIdentContext)
- func (s *SelectStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
Constants ¶
const ( QueryLexerNOT_OP = 1 QueryLexerAND_OP = 2 QueryLexerOR_OP = 3 QueryLexerSIMPLE_OP = 4 QueryLexerUNIQUE = 5 QueryLexerREP = 6 QueryLexerEC = 7 QueryLexerIN = 8 QueryLexerAS = 9 QueryLexerCBF = 10 QueryLexerSELECT = 11 QueryLexerFROM = 12 QueryLexerFILTER = 13 QueryLexerWILDCARD = 14 QueryLexerDOT = 15 QueryLexerCLAUSE_SAME = 16 QueryLexerCLAUSE_DISTINCT = 17 QueryLexerL_PAREN = 18 QueryLexerR_PAREN = 19 QueryLexerAT = 20 QueryLexerIDENT = 21 QueryLexerNUMBER1 = 22 QueryLexerZERO = 23 QueryLexerSTRING = 24 QueryLexerWS = 25 )
QueryLexer tokens.
const ( QueryEOF = antlr.TokenEOF QueryNOT_OP = 1 QueryAND_OP = 2 QueryOR_OP = 3 QuerySIMPLE_OP = 4 QueryUNIQUE = 5 QueryREP = 6 QueryEC = 7 QueryIN = 8 QueryAS = 9 QueryCBF = 10 QuerySELECT = 11 QueryFROM = 12 QueryFILTER = 13 QueryWILDCARD = 14 QueryDOT = 15 QueryCLAUSE_SAME = 16 QueryCLAUSE_DISTINCT = 17 QueryL_PAREN = 18 QueryR_PAREN = 19 QueryAT = 20 QueryIDENT = 21 QueryNUMBER1 = 22 QueryZERO = 23 QuerySTRING = 24 QueryWS = 25 )
Query tokens.
const ( QueryRULE_policy = 0 QueryRULE_selectFilterExpr = 1 QueryRULE_ecStmt = 2 QueryRULE_repStmt = 3 QueryRULE_cbfStmt = 4 QueryRULE_selectStmt = 5 QueryRULE_clause = 6 QueryRULE_filterExpr = 7 QueryRULE_filterStmt = 8 QueryRULE_expr = 9 QueryRULE_filterKey = 10 QueryRULE_filterValue = 11 QueryRULE_number = 12 QueryRULE_keyword = 13 QueryRULE_ident = 14 QueryRULE_identWC = 15 )
Query rules.
Variables ¶
var QueryLexerLexerStaticData struct { ChannelNames []string ModeNames []string LiteralNames []string SymbolicNames []string RuleNames []string PredictionContextCache *antlr.PredictionContextCache // contains filtered or unexported fields }
var QueryParserStaticData struct { LiteralNames []string SymbolicNames []string RuleNames []string PredictionContextCache *antlr.PredictionContextCache // contains filtered or unexported fields }
Functions ¶
func InitEmptyCbfStmtContext ¶
func InitEmptyCbfStmtContext(p *CbfStmtContext)
func InitEmptyClauseContext ¶
func InitEmptyClauseContext(p *ClauseContext)
func InitEmptyEcStmtContext ¶
func InitEmptyEcStmtContext(p *EcStmtContext)
func InitEmptyExprContext ¶
func InitEmptyExprContext(p *ExprContext)
func InitEmptyFilterExprContext ¶
func InitEmptyFilterExprContext(p *FilterExprContext)
func InitEmptyFilterKeyContext ¶
func InitEmptyFilterKeyContext(p *FilterKeyContext)
func InitEmptyFilterStmtContext ¶
func InitEmptyFilterStmtContext(p *FilterStmtContext)
func InitEmptyFilterValueContext ¶
func InitEmptyFilterValueContext(p *FilterValueContext)
func InitEmptyIdentContext ¶
func InitEmptyIdentContext(p *IdentContext)
func InitEmptyIdentWCContext ¶
func InitEmptyIdentWCContext(p *IdentWCContext)
func InitEmptyKeywordContext ¶
func InitEmptyKeywordContext(p *KeywordContext)
func InitEmptyNumberContext ¶
func InitEmptyNumberContext(p *NumberContext)
func InitEmptyPolicyContext ¶
func InitEmptyPolicyContext(p *PolicyContext)
func InitEmptyRepStmtContext ¶
func InitEmptyRepStmtContext(p *RepStmtContext)
func InitEmptySelectFilterExprContext ¶
func InitEmptySelectFilterExprContext(p *SelectFilterExprContext)
func InitEmptySelectStmtContext ¶
func InitEmptySelectStmtContext(p *SelectStmtContext)
func QueryInit ¶
func QueryInit()
QueryInit initializes any static state used to implement Query. By default the static state used to implement the parser is lazily initialized during the first call to NewQuery(). You can call this function if you wish to initialize the static state ahead of time.
func QueryLexerInit ¶
func QueryLexerInit()
QueryLexerInit initializes any static state used to implement QueryLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewQueryLexer(). You can call this function if you wish to initialize the static state ahead of time.
Types ¶
type BaseQueryVisitor ¶
type BaseQueryVisitor struct {
*antlr.BaseParseTreeVisitor
}
func (*BaseQueryVisitor) VisitCbfStmt ¶
func (v *BaseQueryVisitor) VisitCbfStmt(ctx *CbfStmtContext) interface{}
func (*BaseQueryVisitor) VisitClause ¶
func (v *BaseQueryVisitor) VisitClause(ctx *ClauseContext) interface{}
func (*BaseQueryVisitor) VisitEcStmt ¶
func (v *BaseQueryVisitor) VisitEcStmt(ctx *EcStmtContext) interface{}
func (*BaseQueryVisitor) VisitExpr ¶
func (v *BaseQueryVisitor) VisitExpr(ctx *ExprContext) interface{}
func (*BaseQueryVisitor) VisitFilterExpr ¶
func (v *BaseQueryVisitor) VisitFilterExpr(ctx *FilterExprContext) interface{}
func (*BaseQueryVisitor) VisitFilterKey ¶
func (v *BaseQueryVisitor) VisitFilterKey(ctx *FilterKeyContext) interface{}
func (*BaseQueryVisitor) VisitFilterStmt ¶
func (v *BaseQueryVisitor) VisitFilterStmt(ctx *FilterStmtContext) interface{}
func (*BaseQueryVisitor) VisitFilterValue ¶
func (v *BaseQueryVisitor) VisitFilterValue(ctx *FilterValueContext) interface{}
func (*BaseQueryVisitor) VisitIdent ¶
func (v *BaseQueryVisitor) VisitIdent(ctx *IdentContext) interface{}
func (*BaseQueryVisitor) VisitIdentWC ¶
func (v *BaseQueryVisitor) VisitIdentWC(ctx *IdentWCContext) interface{}
func (*BaseQueryVisitor) VisitKeyword ¶
func (v *BaseQueryVisitor) VisitKeyword(ctx *KeywordContext) interface{}
func (*BaseQueryVisitor) VisitNumber ¶
func (v *BaseQueryVisitor) VisitNumber(ctx *NumberContext) interface{}
func (*BaseQueryVisitor) VisitPolicy ¶
func (v *BaseQueryVisitor) VisitPolicy(ctx *PolicyContext) interface{}
func (*BaseQueryVisitor) VisitRepStmt ¶
func (v *BaseQueryVisitor) VisitRepStmt(ctx *RepStmtContext) interface{}
func (*BaseQueryVisitor) VisitSelectFilterExpr ¶
func (v *BaseQueryVisitor) VisitSelectFilterExpr(ctx *SelectFilterExprContext) interface{}
func (*BaseQueryVisitor) VisitSelectStmt ¶
func (v *BaseQueryVisitor) VisitSelectStmt(ctx *SelectStmtContext) interface{}
type CbfStmtContext ¶
type CbfStmtContext struct { antlr.BaseParserRuleContext BackupFactor antlr.Token // contains filtered or unexported fields }
func NewCbfStmtContext ¶
func NewCbfStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CbfStmtContext
func NewEmptyCbfStmtContext ¶
func NewEmptyCbfStmtContext() *CbfStmtContext
func (*CbfStmtContext) Accept ¶
func (s *CbfStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*CbfStmtContext) CBF ¶
func (s *CbfStmtContext) CBF() antlr.TerminalNode
func (*CbfStmtContext) GetBackupFactor ¶
func (s *CbfStmtContext) GetBackupFactor() antlr.Token
func (*CbfStmtContext) GetParser ¶
func (s *CbfStmtContext) GetParser() antlr.Parser
func (*CbfStmtContext) GetRuleContext ¶
func (s *CbfStmtContext) GetRuleContext() antlr.RuleContext
func (*CbfStmtContext) IsCbfStmtContext ¶
func (*CbfStmtContext) IsCbfStmtContext()
func (*CbfStmtContext) NUMBER1 ¶
func (s *CbfStmtContext) NUMBER1() antlr.TerminalNode
func (*CbfStmtContext) SetBackupFactor ¶
func (s *CbfStmtContext) SetBackupFactor(v antlr.Token)
func (*CbfStmtContext) ToStringTree ¶
func (s *CbfStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ClauseContext ¶
type ClauseContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewClauseContext ¶
func NewClauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ClauseContext
func NewEmptyClauseContext ¶
func NewEmptyClauseContext() *ClauseContext
func (*ClauseContext) Accept ¶
func (s *ClauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ClauseContext) CLAUSE_DISTINCT ¶
func (s *ClauseContext) CLAUSE_DISTINCT() antlr.TerminalNode
func (*ClauseContext) CLAUSE_SAME ¶
func (s *ClauseContext) CLAUSE_SAME() antlr.TerminalNode
func (*ClauseContext) GetParser ¶
func (s *ClauseContext) GetParser() antlr.Parser
func (*ClauseContext) GetRuleContext ¶
func (s *ClauseContext) GetRuleContext() antlr.RuleContext
func (*ClauseContext) IsClauseContext ¶
func (*ClauseContext) IsClauseContext()
func (*ClauseContext) ToStringTree ¶
func (s *ClauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type EcStmtContext ¶
type EcStmtContext struct { antlr.BaseParserRuleContext Data antlr.Token Parity antlr.Token Selector IIdentContext // contains filtered or unexported fields }
func NewEcStmtContext ¶
func NewEcStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EcStmtContext
func NewEmptyEcStmtContext ¶
func NewEmptyEcStmtContext() *EcStmtContext
func (*EcStmtContext) Accept ¶
func (s *EcStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*EcStmtContext) AllNUMBER1 ¶
func (s *EcStmtContext) AllNUMBER1() []antlr.TerminalNode
func (*EcStmtContext) DOT ¶
func (s *EcStmtContext) DOT() antlr.TerminalNode
func (*EcStmtContext) EC ¶
func (s *EcStmtContext) EC() antlr.TerminalNode
func (*EcStmtContext) GetData ¶
func (s *EcStmtContext) GetData() antlr.Token
func (*EcStmtContext) GetParity ¶
func (s *EcStmtContext) GetParity() antlr.Token
func (*EcStmtContext) GetParser ¶
func (s *EcStmtContext) GetParser() antlr.Parser
func (*EcStmtContext) GetRuleContext ¶
func (s *EcStmtContext) GetRuleContext() antlr.RuleContext
func (*EcStmtContext) GetSelector ¶
func (s *EcStmtContext) GetSelector() IIdentContext
func (*EcStmtContext) IN ¶
func (s *EcStmtContext) IN() antlr.TerminalNode
func (*EcStmtContext) Ident ¶
func (s *EcStmtContext) Ident() IIdentContext
func (*EcStmtContext) IsEcStmtContext ¶
func (*EcStmtContext) IsEcStmtContext()
func (*EcStmtContext) NUMBER1 ¶
func (s *EcStmtContext) NUMBER1(i int) antlr.TerminalNode
func (*EcStmtContext) SetData ¶
func (s *EcStmtContext) SetData(v antlr.Token)
func (*EcStmtContext) SetParity ¶
func (s *EcStmtContext) SetParity(v antlr.Token)
func (*EcStmtContext) SetSelector ¶
func (s *EcStmtContext) SetSelector(v IIdentContext)
func (*EcStmtContext) ToStringTree ¶
func (s *EcStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ExprContext ¶
type ExprContext struct { antlr.BaseParserRuleContext Filter IIdentContext Key IFilterKeyContext Value IFilterValueContext // contains filtered or unexported fields }
func NewEmptyExprContext ¶
func NewEmptyExprContext() *ExprContext
func NewExprContext ¶
func NewExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExprContext
func (*ExprContext) AT ¶
func (s *ExprContext) AT() antlr.TerminalNode
func (*ExprContext) Accept ¶
func (s *ExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*ExprContext) FilterKey ¶
func (s *ExprContext) FilterKey() IFilterKeyContext
func (*ExprContext) FilterValue ¶
func (s *ExprContext) FilterValue() IFilterValueContext
func (*ExprContext) GetFilter ¶
func (s *ExprContext) GetFilter() IIdentContext
func (*ExprContext) GetKey ¶
func (s *ExprContext) GetKey() IFilterKeyContext
func (*ExprContext) GetParser ¶
func (s *ExprContext) GetParser() antlr.Parser
func (*ExprContext) GetRuleContext ¶
func (s *ExprContext) GetRuleContext() antlr.RuleContext
func (*ExprContext) GetValue ¶
func (s *ExprContext) GetValue() IFilterValueContext
func (*ExprContext) Ident ¶
func (s *ExprContext) Ident() IIdentContext
func (*ExprContext) IsExprContext ¶
func (*ExprContext) IsExprContext()
func (*ExprContext) SIMPLE_OP ¶
func (s *ExprContext) SIMPLE_OP() antlr.TerminalNode
func (*ExprContext) SetFilter ¶
func (s *ExprContext) SetFilter(v IIdentContext)
func (*ExprContext) SetKey ¶
func (s *ExprContext) SetKey(v IFilterKeyContext)
func (*ExprContext) SetValue ¶
func (s *ExprContext) SetValue(v IFilterValueContext)
func (*ExprContext) ToStringTree ¶
func (s *ExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type FilterExprContext ¶
type FilterExprContext struct { antlr.BaseParserRuleContext F1 IFilterExprContext Op antlr.Token Inner IFilterExprContext F2 IFilterExprContext // contains filtered or unexported fields }
func NewEmptyFilterExprContext ¶
func NewEmptyFilterExprContext() *FilterExprContext
func NewFilterExprContext ¶
func NewFilterExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FilterExprContext
func (*FilterExprContext) AND_OP ¶
func (s *FilterExprContext) AND_OP() antlr.TerminalNode
func (*FilterExprContext) Accept ¶
func (s *FilterExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*FilterExprContext) AllFilterExpr ¶
func (s *FilterExprContext) AllFilterExpr() []IFilterExprContext
func (*FilterExprContext) Expr ¶
func (s *FilterExprContext) Expr() IExprContext
func (*FilterExprContext) FilterExpr ¶
func (s *FilterExprContext) FilterExpr(i int) IFilterExprContext
func (*FilterExprContext) GetF1 ¶
func (s *FilterExprContext) GetF1() IFilterExprContext
func (*FilterExprContext) GetF2 ¶
func (s *FilterExprContext) GetF2() IFilterExprContext
func (*FilterExprContext) GetInner ¶
func (s *FilterExprContext) GetInner() IFilterExprContext
func (*FilterExprContext) GetOp ¶
func (s *FilterExprContext) GetOp() antlr.Token
func (*FilterExprContext) GetParser ¶
func (s *FilterExprContext) GetParser() antlr.Parser
func (*FilterExprContext) GetRuleContext ¶
func (s *FilterExprContext) GetRuleContext() antlr.RuleContext
func (*FilterExprContext) IsFilterExprContext ¶
func (*FilterExprContext) IsFilterExprContext()
func (*FilterExprContext) L_PAREN ¶
func (s *FilterExprContext) L_PAREN() antlr.TerminalNode
func (*FilterExprContext) NOT_OP ¶
func (s *FilterExprContext) NOT_OP() antlr.TerminalNode
func (*FilterExprContext) OR_OP ¶
func (s *FilterExprContext) OR_OP() antlr.TerminalNode
func (*FilterExprContext) R_PAREN ¶
func (s *FilterExprContext) R_PAREN() antlr.TerminalNode
func (*FilterExprContext) SetF1 ¶
func (s *FilterExprContext) SetF1(v IFilterExprContext)
func (*FilterExprContext) SetF2 ¶
func (s *FilterExprContext) SetF2(v IFilterExprContext)
func (*FilterExprContext) SetInner ¶
func (s *FilterExprContext) SetInner(v IFilterExprContext)
func (*FilterExprContext) SetOp ¶
func (s *FilterExprContext) SetOp(v antlr.Token)
func (*FilterExprContext) ToStringTree ¶
func (s *FilterExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type FilterKeyContext ¶
type FilterKeyContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFilterKeyContext ¶
func NewEmptyFilterKeyContext() *FilterKeyContext
func NewFilterKeyContext ¶
func NewFilterKeyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FilterKeyContext
func (*FilterKeyContext) Accept ¶
func (s *FilterKeyContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*FilterKeyContext) GetParser ¶
func (s *FilterKeyContext) GetParser() antlr.Parser
func (*FilterKeyContext) GetRuleContext ¶
func (s *FilterKeyContext) GetRuleContext() antlr.RuleContext
func (*FilterKeyContext) Ident ¶
func (s *FilterKeyContext) Ident() IIdentContext
func (*FilterKeyContext) IsFilterKeyContext ¶
func (*FilterKeyContext) IsFilterKeyContext()
func (*FilterKeyContext) STRING ¶
func (s *FilterKeyContext) STRING() antlr.TerminalNode
func (*FilterKeyContext) ToStringTree ¶
func (s *FilterKeyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type FilterStmtContext ¶
type FilterStmtContext struct { antlr.BaseParserRuleContext Expr IFilterExprContext Name IIdentContext // contains filtered or unexported fields }
func NewEmptyFilterStmtContext ¶
func NewEmptyFilterStmtContext() *FilterStmtContext
func NewFilterStmtContext ¶
func NewFilterStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FilterStmtContext
func (*FilterStmtContext) AS ¶
func (s *FilterStmtContext) AS() antlr.TerminalNode
func (*FilterStmtContext) Accept ¶
func (s *FilterStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*FilterStmtContext) FILTER ¶
func (s *FilterStmtContext) FILTER() antlr.TerminalNode
func (*FilterStmtContext) FilterExpr ¶
func (s *FilterStmtContext) FilterExpr() IFilterExprContext
func (*FilterStmtContext) GetExpr ¶
func (s *FilterStmtContext) GetExpr() IFilterExprContext
func (*FilterStmtContext) GetName ¶
func (s *FilterStmtContext) GetName() IIdentContext
func (*FilterStmtContext) GetParser ¶
func (s *FilterStmtContext) GetParser() antlr.Parser
func (*FilterStmtContext) GetRuleContext ¶
func (s *FilterStmtContext) GetRuleContext() antlr.RuleContext
func (*FilterStmtContext) Ident ¶
func (s *FilterStmtContext) Ident() IIdentContext
func (*FilterStmtContext) IsFilterStmtContext ¶
func (*FilterStmtContext) IsFilterStmtContext()
func (*FilterStmtContext) SetExpr ¶
func (s *FilterStmtContext) SetExpr(v IFilterExprContext)
func (*FilterStmtContext) SetName ¶
func (s *FilterStmtContext) SetName(v IIdentContext)
func (*FilterStmtContext) ToStringTree ¶
func (s *FilterStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type FilterValueContext ¶
type FilterValueContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyFilterValueContext ¶
func NewEmptyFilterValueContext() *FilterValueContext
func NewFilterValueContext ¶
func NewFilterValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FilterValueContext
func (*FilterValueContext) Accept ¶
func (s *FilterValueContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*FilterValueContext) GetParser ¶
func (s *FilterValueContext) GetParser() antlr.Parser
func (*FilterValueContext) GetRuleContext ¶
func (s *FilterValueContext) GetRuleContext() antlr.RuleContext
func (*FilterValueContext) Ident ¶
func (s *FilterValueContext) Ident() IIdentContext
func (*FilterValueContext) IsFilterValueContext ¶
func (*FilterValueContext) IsFilterValueContext()
func (*FilterValueContext) Number ¶
func (s *FilterValueContext) Number() INumberContext
func (*FilterValueContext) STRING ¶
func (s *FilterValueContext) STRING() antlr.TerminalNode
func (*FilterValueContext) ToStringTree ¶
func (s *FilterValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type ICbfStmtContext ¶
type ICbfStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetBackupFactor returns the BackupFactor token. GetBackupFactor() antlr.Token // SetBackupFactor sets the BackupFactor token. SetBackupFactor(antlr.Token) // Getter signatures CBF() antlr.TerminalNode NUMBER1() antlr.TerminalNode // IsCbfStmtContext differentiates from other interfaces. IsCbfStmtContext() }
ICbfStmtContext is an interface to support dynamic dispatch.
type IClauseContext ¶
type IClauseContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures CLAUSE_SAME() antlr.TerminalNode CLAUSE_DISTINCT() antlr.TerminalNode // IsClauseContext differentiates from other interfaces. IsClauseContext() }
IClauseContext is an interface to support dynamic dispatch.
type IEcStmtContext ¶
type IEcStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetData returns the Data token. GetData() antlr.Token // GetParity returns the Parity token. GetParity() antlr.Token // SetData sets the Data token. SetData(antlr.Token) // SetParity sets the Parity token. SetParity(antlr.Token) // GetSelector returns the Selector rule contexts. GetSelector() IIdentContext // SetSelector sets the Selector rule contexts. SetSelector(IIdentContext) // Getter signatures EC() antlr.TerminalNode DOT() antlr.TerminalNode AllNUMBER1() []antlr.TerminalNode NUMBER1(i int) antlr.TerminalNode IN() antlr.TerminalNode Ident() IIdentContext // IsEcStmtContext differentiates from other interfaces. IsEcStmtContext() }
IEcStmtContext is an interface to support dynamic dispatch.
type IExprContext ¶
type IExprContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetFilter returns the Filter rule contexts. GetFilter() IIdentContext // GetKey returns the Key rule contexts. GetKey() IFilterKeyContext // GetValue returns the Value rule contexts. GetValue() IFilterValueContext // SetFilter sets the Filter rule contexts. SetFilter(IIdentContext) // SetKey sets the Key rule contexts. SetKey(IFilterKeyContext) // SetValue sets the Value rule contexts. SetValue(IFilterValueContext) // Getter signatures AT() antlr.TerminalNode Ident() IIdentContext SIMPLE_OP() antlr.TerminalNode FilterKey() IFilterKeyContext FilterValue() IFilterValueContext // IsExprContext differentiates from other interfaces. IsExprContext() }
IExprContext is an interface to support dynamic dispatch.
type IFilterExprContext ¶
type IFilterExprContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetOp returns the Op token. GetOp() antlr.Token // SetOp sets the Op token. SetOp(antlr.Token) // GetF1 returns the F1 rule contexts. GetF1() IFilterExprContext // GetInner returns the Inner rule contexts. GetInner() IFilterExprContext // GetF2 returns the F2 rule contexts. GetF2() IFilterExprContext // SetF1 sets the F1 rule contexts. SetF1(IFilterExprContext) // SetInner sets the Inner rule contexts. SetInner(IFilterExprContext) // SetF2 sets the F2 rule contexts. SetF2(IFilterExprContext) // Getter signatures L_PAREN() antlr.TerminalNode R_PAREN() antlr.TerminalNode NOT_OP() antlr.TerminalNode AllFilterExpr() []IFilterExprContext FilterExpr(i int) IFilterExprContext Expr() IExprContext AND_OP() antlr.TerminalNode OR_OP() antlr.TerminalNode // IsFilterExprContext differentiates from other interfaces. IsFilterExprContext() }
IFilterExprContext is an interface to support dynamic dispatch.
type IFilterKeyContext ¶
type IFilterKeyContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures Ident() IIdentContext STRING() antlr.TerminalNode // IsFilterKeyContext differentiates from other interfaces. IsFilterKeyContext() }
IFilterKeyContext is an interface to support dynamic dispatch.
type IFilterStmtContext ¶
type IFilterStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetExpr returns the Expr rule contexts. GetExpr() IFilterExprContext // GetName returns the Name rule contexts. GetName() IIdentContext // SetExpr sets the Expr rule contexts. SetExpr(IFilterExprContext) // SetName sets the Name rule contexts. SetName(IIdentContext) // Getter signatures FILTER() antlr.TerminalNode AS() antlr.TerminalNode FilterExpr() IFilterExprContext Ident() IIdentContext // IsFilterStmtContext differentiates from other interfaces. IsFilterStmtContext() }
IFilterStmtContext is an interface to support dynamic dispatch.
type IFilterValueContext ¶
type IFilterValueContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures Ident() IIdentContext Number() INumberContext STRING() antlr.TerminalNode // IsFilterValueContext differentiates from other interfaces. IsFilterValueContext() }
IFilterValueContext is an interface to support dynamic dispatch.
type IIdentContext ¶
type IIdentContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures Keyword() IKeywordContext IDENT() antlr.TerminalNode // IsIdentContext differentiates from other interfaces. IsIdentContext() }
IIdentContext is an interface to support dynamic dispatch.
type IIdentWCContext ¶
type IIdentWCContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures Ident() IIdentContext WILDCARD() antlr.TerminalNode // IsIdentWCContext differentiates from other interfaces. IsIdentWCContext() }
IIdentWCContext is an interface to support dynamic dispatch.
type IKeywordContext ¶
type IKeywordContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures REP() antlr.TerminalNode IN() antlr.TerminalNode AS() antlr.TerminalNode SELECT() antlr.TerminalNode FROM() antlr.TerminalNode FILTER() antlr.TerminalNode // IsKeywordContext differentiates from other interfaces. IsKeywordContext() }
IKeywordContext is an interface to support dynamic dispatch.
type INumberContext ¶
type INumberContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures ZERO() antlr.TerminalNode NUMBER1() antlr.TerminalNode // IsNumberContext differentiates from other interfaces. IsNumberContext() }
INumberContext is an interface to support dynamic dispatch.
type IPolicyContext ¶
type IPolicyContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures EOF() antlr.TerminalNode UNIQUE() antlr.TerminalNode AllRepStmt() []IRepStmtContext RepStmt(i int) IRepStmtContext AllEcStmt() []IEcStmtContext EcStmt(i int) IEcStmtContext CbfStmt() ICbfStmtContext AllSelectStmt() []ISelectStmtContext SelectStmt(i int) ISelectStmtContext AllFilterStmt() []IFilterStmtContext FilterStmt(i int) IFilterStmtContext // IsPolicyContext differentiates from other interfaces. IsPolicyContext() }
IPolicyContext is an interface to support dynamic dispatch.
type IRepStmtContext ¶
type IRepStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetCount returns the Count token. GetCount() antlr.Token // SetCount sets the Count token. SetCount(antlr.Token) // GetSelector returns the Selector rule contexts. GetSelector() IIdentContext // SetSelector sets the Selector rule contexts. SetSelector(IIdentContext) // Getter signatures REP() antlr.TerminalNode NUMBER1() antlr.TerminalNode IN() antlr.TerminalNode Ident() IIdentContext // IsRepStmtContext differentiates from other interfaces. IsRepStmtContext() }
IRepStmtContext is an interface to support dynamic dispatch.
type ISelectFilterExprContext ¶
type ISelectFilterExprContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // Getter signatures EOF() antlr.TerminalNode CbfStmt() ICbfStmtContext SelectStmt() ISelectStmtContext AllFilterStmt() []IFilterStmtContext FilterStmt(i int) IFilterStmtContext // IsSelectFilterExprContext differentiates from other interfaces. IsSelectFilterExprContext() }
ISelectFilterExprContext is an interface to support dynamic dispatch.
type ISelectStmtContext ¶
type ISelectStmtContext interface { antlr.ParserRuleContext // GetParser returns the parser. GetParser() antlr.Parser // GetCount returns the Count token. GetCount() antlr.Token // SetCount sets the Count token. SetCount(antlr.Token) // GetBucket returns the Bucket rule contexts. GetBucket() IFilterKeyContext // GetFilter returns the Filter rule contexts. GetFilter() IIdentWCContext // GetName returns the Name rule contexts. GetName() IIdentContext // SetBucket sets the Bucket rule contexts. SetBucket(IFilterKeyContext) // SetFilter sets the Filter rule contexts. SetFilter(IIdentWCContext) // SetName sets the Name rule contexts. SetName(IIdentContext) // Getter signatures SELECT() antlr.TerminalNode FROM() antlr.TerminalNode NUMBER1() antlr.TerminalNode IdentWC() IIdentWCContext IN() antlr.TerminalNode AS() antlr.TerminalNode FilterKey() IFilterKeyContext Ident() IIdentContext Clause() IClauseContext // IsSelectStmtContext differentiates from other interfaces. IsSelectStmtContext() }
ISelectStmtContext is an interface to support dynamic dispatch.
type IdentContext ¶
type IdentContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIdentContext ¶
func NewEmptyIdentContext() *IdentContext
func NewIdentContext ¶
func NewIdentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IdentContext
func (*IdentContext) Accept ¶
func (s *IdentContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*IdentContext) GetParser ¶
func (s *IdentContext) GetParser() antlr.Parser
func (*IdentContext) GetRuleContext ¶
func (s *IdentContext) GetRuleContext() antlr.RuleContext
func (*IdentContext) IDENT ¶
func (s *IdentContext) IDENT() antlr.TerminalNode
func (*IdentContext) IsIdentContext ¶
func (*IdentContext) IsIdentContext()
func (*IdentContext) Keyword ¶
func (s *IdentContext) Keyword() IKeywordContext
func (*IdentContext) ToStringTree ¶
func (s *IdentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type IdentWCContext ¶
type IdentWCContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyIdentWCContext ¶
func NewEmptyIdentWCContext() *IdentWCContext
func NewIdentWCContext ¶
func NewIdentWCContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IdentWCContext
func (*IdentWCContext) Accept ¶
func (s *IdentWCContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*IdentWCContext) GetParser ¶
func (s *IdentWCContext) GetParser() antlr.Parser
func (*IdentWCContext) GetRuleContext ¶
func (s *IdentWCContext) GetRuleContext() antlr.RuleContext
func (*IdentWCContext) Ident ¶
func (s *IdentWCContext) Ident() IIdentContext
func (*IdentWCContext) IsIdentWCContext ¶
func (*IdentWCContext) IsIdentWCContext()
func (*IdentWCContext) ToStringTree ¶
func (s *IdentWCContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*IdentWCContext) WILDCARD ¶
func (s *IdentWCContext) WILDCARD() antlr.TerminalNode
type KeywordContext ¶
type KeywordContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyKeywordContext ¶
func NewEmptyKeywordContext() *KeywordContext
func NewKeywordContext ¶
func NewKeywordContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *KeywordContext
func (*KeywordContext) AS ¶
func (s *KeywordContext) AS() antlr.TerminalNode
func (*KeywordContext) Accept ¶
func (s *KeywordContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*KeywordContext) FILTER ¶
func (s *KeywordContext) FILTER() antlr.TerminalNode
func (*KeywordContext) FROM ¶
func (s *KeywordContext) FROM() antlr.TerminalNode
func (*KeywordContext) GetParser ¶
func (s *KeywordContext) GetParser() antlr.Parser
func (*KeywordContext) GetRuleContext ¶
func (s *KeywordContext) GetRuleContext() antlr.RuleContext
func (*KeywordContext) IN ¶
func (s *KeywordContext) IN() antlr.TerminalNode
func (*KeywordContext) IsKeywordContext ¶
func (*KeywordContext) IsKeywordContext()
func (*KeywordContext) REP ¶
func (s *KeywordContext) REP() antlr.TerminalNode
func (*KeywordContext) SELECT ¶
func (s *KeywordContext) SELECT() antlr.TerminalNode
func (*KeywordContext) ToStringTree ¶
func (s *KeywordContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type NumberContext ¶
type NumberContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyNumberContext ¶
func NewEmptyNumberContext() *NumberContext
func NewNumberContext ¶
func NewNumberContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *NumberContext
func (*NumberContext) Accept ¶
func (s *NumberContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*NumberContext) GetParser ¶
func (s *NumberContext) GetParser() antlr.Parser
func (*NumberContext) GetRuleContext ¶
func (s *NumberContext) GetRuleContext() antlr.RuleContext
func (*NumberContext) IsNumberContext ¶
func (*NumberContext) IsNumberContext()
func (*NumberContext) NUMBER1 ¶
func (s *NumberContext) NUMBER1() antlr.TerminalNode
func (*NumberContext) ToStringTree ¶
func (s *NumberContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*NumberContext) ZERO ¶
func (s *NumberContext) ZERO() antlr.TerminalNode
type PolicyContext ¶
type PolicyContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptyPolicyContext ¶
func NewEmptyPolicyContext() *PolicyContext
func NewPolicyContext ¶
func NewPolicyContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PolicyContext
func (*PolicyContext) Accept ¶
func (s *PolicyContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*PolicyContext) AllEcStmt ¶
func (s *PolicyContext) AllEcStmt() []IEcStmtContext
func (*PolicyContext) AllFilterStmt ¶
func (s *PolicyContext) AllFilterStmt() []IFilterStmtContext
func (*PolicyContext) AllRepStmt ¶
func (s *PolicyContext) AllRepStmt() []IRepStmtContext
func (*PolicyContext) AllSelectStmt ¶
func (s *PolicyContext) AllSelectStmt() []ISelectStmtContext
func (*PolicyContext) CbfStmt ¶
func (s *PolicyContext) CbfStmt() ICbfStmtContext
func (*PolicyContext) EOF ¶
func (s *PolicyContext) EOF() antlr.TerminalNode
func (*PolicyContext) EcStmt ¶
func (s *PolicyContext) EcStmt(i int) IEcStmtContext
func (*PolicyContext) FilterStmt ¶
func (s *PolicyContext) FilterStmt(i int) IFilterStmtContext
func (*PolicyContext) GetParser ¶
func (s *PolicyContext) GetParser() antlr.Parser
func (*PolicyContext) GetRuleContext ¶
func (s *PolicyContext) GetRuleContext() antlr.RuleContext
func (*PolicyContext) IsPolicyContext ¶
func (*PolicyContext) IsPolicyContext()
func (*PolicyContext) RepStmt ¶
func (s *PolicyContext) RepStmt(i int) IRepStmtContext
func (*PolicyContext) SelectStmt ¶
func (s *PolicyContext) SelectStmt(i int) ISelectStmtContext
func (*PolicyContext) ToStringTree ¶
func (s *PolicyContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
func (*PolicyContext) UNIQUE ¶
func (s *PolicyContext) UNIQUE() antlr.TerminalNode
type Query ¶
type Query struct {
*antlr.BaseParser
}
func NewQuery ¶
func NewQuery(input antlr.TokenStream) *Query
NewQuery produces a new parser instance for the optional input antlr.TokenStream.
func (*Query) CbfStmt ¶
func (p *Query) CbfStmt() (localctx ICbfStmtContext)
func (*Query) Clause ¶
func (p *Query) Clause() (localctx IClauseContext)
func (*Query) EcStmt ¶
func (p *Query) EcStmt() (localctx IEcStmtContext)
func (*Query) Expr ¶
func (p *Query) Expr() (localctx IExprContext)
func (*Query) FilterExpr ¶
func (p *Query) FilterExpr() (localctx IFilterExprContext)
func (*Query) FilterExpr_Sempred ¶
func (*Query) FilterKey ¶
func (p *Query) FilterKey() (localctx IFilterKeyContext)
func (*Query) FilterStmt ¶
func (p *Query) FilterStmt() (localctx IFilterStmtContext)
func (*Query) FilterValue ¶
func (p *Query) FilterValue() (localctx IFilterValueContext)
func (*Query) Ident ¶
func (p *Query) Ident() (localctx IIdentContext)
func (*Query) IdentWC ¶
func (p *Query) IdentWC() (localctx IIdentWCContext)
func (*Query) Keyword ¶
func (p *Query) Keyword() (localctx IKeywordContext)
func (*Query) Number ¶
func (p *Query) Number() (localctx INumberContext)
func (*Query) Policy ¶
func (p *Query) Policy() (localctx IPolicyContext)
func (*Query) RepStmt ¶
func (p *Query) RepStmt() (localctx IRepStmtContext)
func (*Query) SelectFilterExpr ¶
func (p *Query) SelectFilterExpr() (localctx ISelectFilterExprContext)
func (*Query) SelectStmt ¶
func (p *Query) SelectStmt() (localctx ISelectStmtContext)
type QueryLexer ¶
type QueryLexer struct { *antlr.BaseLexer // contains filtered or unexported fields }
func NewQueryLexer ¶
func NewQueryLexer(input antlr.CharStream) *QueryLexer
NewQueryLexer produces a new lexer instance for the optional input antlr.CharStream.
type QueryVisitor ¶
type QueryVisitor interface { antlr.ParseTreeVisitor // Visit a parse tree produced by Query#policy. VisitPolicy(ctx *PolicyContext) interface{} // Visit a parse tree produced by Query#selectFilterExpr. VisitSelectFilterExpr(ctx *SelectFilterExprContext) interface{} // Visit a parse tree produced by Query#ecStmt. VisitEcStmt(ctx *EcStmtContext) interface{} // Visit a parse tree produced by Query#repStmt. VisitRepStmt(ctx *RepStmtContext) interface{} // Visit a parse tree produced by Query#cbfStmt. VisitCbfStmt(ctx *CbfStmtContext) interface{} // Visit a parse tree produced by Query#selectStmt. VisitSelectStmt(ctx *SelectStmtContext) interface{} // Visit a parse tree produced by Query#clause. VisitClause(ctx *ClauseContext) interface{} // Visit a parse tree produced by Query#filterExpr. VisitFilterExpr(ctx *FilterExprContext) interface{} // Visit a parse tree produced by Query#filterStmt. VisitFilterStmt(ctx *FilterStmtContext) interface{} // Visit a parse tree produced by Query#expr. VisitExpr(ctx *ExprContext) interface{} // Visit a parse tree produced by Query#filterKey. VisitFilterKey(ctx *FilterKeyContext) interface{} // Visit a parse tree produced by Query#filterValue. VisitFilterValue(ctx *FilterValueContext) interface{} // Visit a parse tree produced by Query#number. VisitNumber(ctx *NumberContext) interface{} // Visit a parse tree produced by Query#keyword. VisitKeyword(ctx *KeywordContext) interface{} // Visit a parse tree produced by Query#ident. VisitIdent(ctx *IdentContext) interface{} // Visit a parse tree produced by Query#identWC. VisitIdentWC(ctx *IdentWCContext) interface{} }
A complete Visitor for a parse tree produced by Query.
type RepStmtContext ¶
type RepStmtContext struct { antlr.BaseParserRuleContext Count antlr.Token Selector IIdentContext // contains filtered or unexported fields }
func NewEmptyRepStmtContext ¶
func NewEmptyRepStmtContext() *RepStmtContext
func NewRepStmtContext ¶
func NewRepStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RepStmtContext
func (*RepStmtContext) Accept ¶
func (s *RepStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*RepStmtContext) GetCount ¶
func (s *RepStmtContext) GetCount() antlr.Token
func (*RepStmtContext) GetParser ¶
func (s *RepStmtContext) GetParser() antlr.Parser
func (*RepStmtContext) GetRuleContext ¶
func (s *RepStmtContext) GetRuleContext() antlr.RuleContext
func (*RepStmtContext) GetSelector ¶
func (s *RepStmtContext) GetSelector() IIdentContext
func (*RepStmtContext) IN ¶
func (s *RepStmtContext) IN() antlr.TerminalNode
func (*RepStmtContext) Ident ¶
func (s *RepStmtContext) Ident() IIdentContext
func (*RepStmtContext) IsRepStmtContext ¶
func (*RepStmtContext) IsRepStmtContext()
func (*RepStmtContext) NUMBER1 ¶
func (s *RepStmtContext) NUMBER1() antlr.TerminalNode
func (*RepStmtContext) REP ¶
func (s *RepStmtContext) REP() antlr.TerminalNode
func (*RepStmtContext) SetCount ¶
func (s *RepStmtContext) SetCount(v antlr.Token)
func (*RepStmtContext) SetSelector ¶
func (s *RepStmtContext) SetSelector(v IIdentContext)
func (*RepStmtContext) ToStringTree ¶
func (s *RepStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SelectFilterExprContext ¶
type SelectFilterExprContext struct { antlr.BaseParserRuleContext // contains filtered or unexported fields }
func NewEmptySelectFilterExprContext ¶
func NewEmptySelectFilterExprContext() *SelectFilterExprContext
func NewSelectFilterExprContext ¶
func NewSelectFilterExprContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SelectFilterExprContext
func (*SelectFilterExprContext) Accept ¶
func (s *SelectFilterExprContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*SelectFilterExprContext) AllFilterStmt ¶
func (s *SelectFilterExprContext) AllFilterStmt() []IFilterStmtContext
func (*SelectFilterExprContext) CbfStmt ¶
func (s *SelectFilterExprContext) CbfStmt() ICbfStmtContext
func (*SelectFilterExprContext) EOF ¶
func (s *SelectFilterExprContext) EOF() antlr.TerminalNode
func (*SelectFilterExprContext) FilterStmt ¶
func (s *SelectFilterExprContext) FilterStmt(i int) IFilterStmtContext
func (*SelectFilterExprContext) GetParser ¶
func (s *SelectFilterExprContext) GetParser() antlr.Parser
func (*SelectFilterExprContext) GetRuleContext ¶
func (s *SelectFilterExprContext) GetRuleContext() antlr.RuleContext
func (*SelectFilterExprContext) IsSelectFilterExprContext ¶
func (*SelectFilterExprContext) IsSelectFilterExprContext()
func (*SelectFilterExprContext) SelectStmt ¶
func (s *SelectFilterExprContext) SelectStmt() ISelectStmtContext
func (*SelectFilterExprContext) ToStringTree ¶
func (s *SelectFilterExprContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string
type SelectStmtContext ¶
type SelectStmtContext struct { antlr.BaseParserRuleContext Count antlr.Token Bucket IFilterKeyContext Filter IIdentWCContext Name IIdentContext // contains filtered or unexported fields }
func NewEmptySelectStmtContext ¶
func NewEmptySelectStmtContext() *SelectStmtContext
func NewSelectStmtContext ¶
func NewSelectStmtContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SelectStmtContext
func (*SelectStmtContext) AS ¶
func (s *SelectStmtContext) AS() antlr.TerminalNode
func (*SelectStmtContext) Accept ¶
func (s *SelectStmtContext) Accept(visitor antlr.ParseTreeVisitor) interface{}
func (*SelectStmtContext) Clause ¶
func (s *SelectStmtContext) Clause() IClauseContext
func (*SelectStmtContext) FROM ¶
func (s *SelectStmtContext) FROM() antlr.TerminalNode
func (*SelectStmtContext) FilterKey ¶
func (s *SelectStmtContext) FilterKey() IFilterKeyContext
func (*SelectStmtContext) GetBucket ¶
func (s *SelectStmtContext) GetBucket() IFilterKeyContext
func (*SelectStmtContext) GetCount ¶
func (s *SelectStmtContext) GetCount() antlr.Token
func (*SelectStmtContext) GetFilter ¶
func (s *SelectStmtContext) GetFilter() IIdentWCContext
func (*SelectStmtContext) GetName ¶
func (s *SelectStmtContext) GetName() IIdentContext
func (*SelectStmtContext) GetParser ¶
func (s *SelectStmtContext) GetParser() antlr.Parser
func (*SelectStmtContext) GetRuleContext ¶
func (s *SelectStmtContext) GetRuleContext() antlr.RuleContext
func (*SelectStmtContext) IN ¶
func (s *SelectStmtContext) IN() antlr.TerminalNode
func (*SelectStmtContext) Ident ¶
func (s *SelectStmtContext) Ident() IIdentContext
func (*SelectStmtContext) IdentWC ¶
func (s *SelectStmtContext) IdentWC() IIdentWCContext
func (*SelectStmtContext) IsSelectStmtContext ¶
func (*SelectStmtContext) IsSelectStmtContext()
func (*SelectStmtContext) NUMBER1 ¶
func (s *SelectStmtContext) NUMBER1() antlr.TerminalNode
func (*SelectStmtContext) SELECT ¶
func (s *SelectStmtContext) SELECT() antlr.TerminalNode
func (*SelectStmtContext) SetBucket ¶
func (s *SelectStmtContext) SetBucket(v IFilterKeyContext)
func (*SelectStmtContext) SetCount ¶
func (s *SelectStmtContext) SetCount(v antlr.Token)
func (*SelectStmtContext) SetFilter ¶
func (s *SelectStmtContext) SetFilter(v IIdentWCContext)
func (*SelectStmtContext) SetName ¶
func (s *SelectStmtContext) SetName(v IIdentContext)
func (*SelectStmtContext) ToStringTree ¶
func (s *SelectStmtContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string