parser

package
v0.0.0-...-67abdce Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryLexerT__0                 = 1
	QueryLexerT__1                 = 2
	QueryLexerT__2                 = 3
	QueryLexerT__3                 = 4
	QueryLexerT__4                 = 5
	QueryLexerT__5                 = 6
	QueryLexerT__6                 = 7
	QueryLexerT__7                 = 8
	QueryLexerT__8                 = 9
	QueryLexerT__9                 = 10
	QueryLexerT__10                = 11
	QueryLexerT__11                = 12
	QueryLexerT__12                = 13
	QueryLexerT__13                = 14
	QueryLexerT__14                = 15
	QueryLexerT__15                = 16
	QueryLexerT__16                = 17
	QueryLexerT__17                = 18
	QueryLexerT__18                = 19
	QueryLexerT__19                = 20
	QueryLexerT__20                = 21
	QueryLexerT__21                = 22
	QueryLexerT__22                = 23
	QueryLexerT__23                = 24
	QueryLexerSTRING               = 25
	QueryLexerSTRING_WITH_WILDCARD = 26
	QueryLexerNUMBER               = 27
	QueryLexerPREDICATE            = 28
	QueryLexerFROM                 = 29
	QueryLexerWHERE                = 30
	QueryLexerAS                   = 31
	QueryLexerSELECT               = 32
	QueryLexerIDENTIFIER           = 33
	QueryLexerWS                   = 34
)

QueryLexer tokens.

View Source
const (
	QueryParserEOF                  = antlr.TokenEOF
	QueryParserT__0                 = 1
	QueryParserT__1                 = 2
	QueryParserT__2                 = 3
	QueryParserT__3                 = 4
	QueryParserT__4                 = 5
	QueryParserT__5                 = 6
	QueryParserT__6                 = 7
	QueryParserT__7                 = 8
	QueryParserT__8                 = 9
	QueryParserT__9                 = 10
	QueryParserT__10                = 11
	QueryParserT__11                = 12
	QueryParserT__12                = 13
	QueryParserT__13                = 14
	QueryParserT__14                = 15
	QueryParserT__15                = 16
	QueryParserT__16                = 17
	QueryParserT__17                = 18
	QueryParserT__18                = 19
	QueryParserT__19                = 20
	QueryParserT__20                = 21
	QueryParserT__21                = 22
	QueryParserT__22                = 23
	QueryParserT__23                = 24
	QueryParserSTRING               = 25
	QueryParserSTRING_WITH_WILDCARD = 26
	QueryParserNUMBER               = 27
	QueryParserPREDICATE            = 28
	QueryParserFROM                 = 29
	QueryParserWHERE                = 30
	QueryParserAS                   = 31
	QueryParserSELECT               = 32
	QueryParserIDENTIFIER           = 33
	QueryParserWS                   = 34
)

QueryParser tokens.

View Source
const (
	QueryParserRULE_query                    = 0
	QueryParserRULE_predicate_declarations   = 1
	QueryParserRULE_predicate_declaration    = 2
	QueryParserRULE_predicate_name           = 3
	QueryParserRULE_parameter_list           = 4
	QueryParserRULE_parameter                = 5
	QueryParserRULE_type                     = 6
	QueryParserRULE_select_list              = 7
	QueryParserRULE_select_item              = 8
	QueryParserRULE_entity                   = 9
	QueryParserRULE_alias                    = 10
	QueryParserRULE_expression               = 11
	QueryParserRULE_orExpression             = 12
	QueryParserRULE_andExpression            = 13
	QueryParserRULE_equalityExpression       = 14
	QueryParserRULE_relationalExpression     = 15
	QueryParserRULE_additiveExpression       = 16
	QueryParserRULE_multiplicativeExpression = 17
	QueryParserRULE_unaryExpression          = 18
	QueryParserRULE_primary                  = 19
	QueryParserRULE_operand                  = 20
	QueryParserRULE_method_chain             = 21
	QueryParserRULE_method_or_variable       = 22
	QueryParserRULE_method_invocation        = 23
	QueryParserRULE_variable                 = 24
	QueryParserRULE_predicate_invocation     = 25
	QueryParserRULE_argument_list            = 26
	QueryParserRULE_argument                 = 27
	QueryParserRULE_comparator               = 28
	QueryParserRULE_value                    = 29
	QueryParserRULE_value_list               = 30
	QueryParserRULE_select_clause            = 31
	QueryParserRULE_select_expression        = 32
)

QueryParser rules.

Variables

View Source
var QueryLexerLexerStaticData struct {
	ChannelNames           []string
	ModeNames              []string
	LiteralNames           []string
	SymbolicNames          []string
	RuleNames              []string
	PredictionContextCache *antlr.PredictionContextCache
	// contains filtered or unexported fields
}
View Source
var QueryParserStaticData struct {
	LiteralNames           []string
	SymbolicNames          []string
	RuleNames              []string
	PredictionContextCache *antlr.PredictionContextCache
	// contains filtered or unexported fields
}

Functions

func InitEmptyAdditiveExpressionContext

func InitEmptyAdditiveExpressionContext(p *AdditiveExpressionContext)

func InitEmptyAliasContext

func InitEmptyAliasContext(p *AliasContext)

func InitEmptyAndExpressionContext

func InitEmptyAndExpressionContext(p *AndExpressionContext)

func InitEmptyArgumentContext

func InitEmptyArgumentContext(p *ArgumentContext)

func InitEmptyArgument_listContext

func InitEmptyArgument_listContext(p *Argument_listContext)

func InitEmptyComparatorContext

func InitEmptyComparatorContext(p *ComparatorContext)

func InitEmptyEntityContext

func InitEmptyEntityContext(p *EntityContext)

func InitEmptyEqualityExpressionContext

func InitEmptyEqualityExpressionContext(p *EqualityExpressionContext)

func InitEmptyExpressionContext

func InitEmptyExpressionContext(p *ExpressionContext)

func InitEmptyMethod_chainContext

func InitEmptyMethod_chainContext(p *Method_chainContext)

func InitEmptyMethod_invocationContext

func InitEmptyMethod_invocationContext(p *Method_invocationContext)

func InitEmptyMethod_or_variableContext

func InitEmptyMethod_or_variableContext(p *Method_or_variableContext)

func InitEmptyMultiplicativeExpressionContext

func InitEmptyMultiplicativeExpressionContext(p *MultiplicativeExpressionContext)

func InitEmptyOperandContext

func InitEmptyOperandContext(p *OperandContext)

func InitEmptyOrExpressionContext

func InitEmptyOrExpressionContext(p *OrExpressionContext)

func InitEmptyParameterContext

func InitEmptyParameterContext(p *ParameterContext)

func InitEmptyParameter_listContext

func InitEmptyParameter_listContext(p *Parameter_listContext)

func InitEmptyPredicate_declarationContext

func InitEmptyPredicate_declarationContext(p *Predicate_declarationContext)

func InitEmptyPredicate_declarationsContext

func InitEmptyPredicate_declarationsContext(p *Predicate_declarationsContext)

func InitEmptyPredicate_invocationContext

func InitEmptyPredicate_invocationContext(p *Predicate_invocationContext)

func InitEmptyPredicate_nameContext

func InitEmptyPredicate_nameContext(p *Predicate_nameContext)

func InitEmptyPrimaryContext

func InitEmptyPrimaryContext(p *PrimaryContext)

func InitEmptyQueryContext

func InitEmptyQueryContext(p *QueryContext)

func InitEmptyRelationalExpressionContext

func InitEmptyRelationalExpressionContext(p *RelationalExpressionContext)

func InitEmptySelect_clauseContext

func InitEmptySelect_clauseContext(p *Select_clauseContext)

func InitEmptySelect_expressionContext

func InitEmptySelect_expressionContext(p *Select_expressionContext)

func InitEmptySelect_itemContext

func InitEmptySelect_itemContext(p *Select_itemContext)

func InitEmptySelect_listContext

func InitEmptySelect_listContext(p *Select_listContext)

func InitEmptyTypeContext

func InitEmptyTypeContext(p *TypeContext)

func InitEmptyUnaryExpressionContext

func InitEmptyUnaryExpressionContext(p *UnaryExpressionContext)

func InitEmptyValueContext

func InitEmptyValueContext(p *ValueContext)

func InitEmptyValue_listContext

func InitEmptyValue_listContext(p *Value_listContext)

func InitEmptyVariableContext

func InitEmptyVariableContext(p *VariableContext)

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.

func QueryParserInit

func QueryParserInit()

QueryParserInit initializes any static state used to implement QueryParser. By default the static state used to implement the parser is lazily initialized during the first call to NewQueryParser(). You can call this function if you wish to initialize the static state ahead of time.

Types

type AdditiveExpressionContext

type AdditiveExpressionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAdditiveExpressionContext

func NewAdditiveExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AdditiveExpressionContext

func NewEmptyAdditiveExpressionContext

func NewEmptyAdditiveExpressionContext() *AdditiveExpressionContext

func (*AdditiveExpressionContext) AllMultiplicativeExpression

func (s *AdditiveExpressionContext) AllMultiplicativeExpression() []IMultiplicativeExpressionContext

func (*AdditiveExpressionContext) EnterRule

func (s *AdditiveExpressionContext) EnterRule(listener antlr.ParseTreeListener)

func (*AdditiveExpressionContext) ExitRule

func (s *AdditiveExpressionContext) ExitRule(listener antlr.ParseTreeListener)

func (*AdditiveExpressionContext) GetParser

func (s *AdditiveExpressionContext) GetParser() antlr.Parser

func (*AdditiveExpressionContext) GetRuleContext

func (s *AdditiveExpressionContext) GetRuleContext() antlr.RuleContext

func (*AdditiveExpressionContext) IsAdditiveExpressionContext

func (*AdditiveExpressionContext) IsAdditiveExpressionContext()

func (*AdditiveExpressionContext) MultiplicativeExpression

func (s *AdditiveExpressionContext) MultiplicativeExpression(i int) IMultiplicativeExpressionContext

func (*AdditiveExpressionContext) ToStringTree

func (s *AdditiveExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type AliasContext

type AliasContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAliasContext

func NewAliasContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AliasContext

func NewEmptyAliasContext

func NewEmptyAliasContext() *AliasContext

func (*AliasContext) EnterRule

func (s *AliasContext) EnterRule(listener antlr.ParseTreeListener)

func (*AliasContext) ExitRule

func (s *AliasContext) ExitRule(listener antlr.ParseTreeListener)

func (*AliasContext) GetParser

func (s *AliasContext) GetParser() antlr.Parser

func (*AliasContext) GetRuleContext

func (s *AliasContext) GetRuleContext() antlr.RuleContext

func (*AliasContext) IDENTIFIER

func (s *AliasContext) IDENTIFIER() antlr.TerminalNode

func (*AliasContext) IsAliasContext

func (*AliasContext) IsAliasContext()

func (*AliasContext) ToStringTree

func (s *AliasContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type AndExpressionContext

type AndExpressionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewAndExpressionContext

func NewAndExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AndExpressionContext

func NewEmptyAndExpressionContext

func NewEmptyAndExpressionContext() *AndExpressionContext

func (*AndExpressionContext) AllEqualityExpression

func (s *AndExpressionContext) AllEqualityExpression() []IEqualityExpressionContext

func (*AndExpressionContext) EnterRule

func (s *AndExpressionContext) EnterRule(listener antlr.ParseTreeListener)

func (*AndExpressionContext) EqualityExpression

func (s *AndExpressionContext) EqualityExpression(i int) IEqualityExpressionContext

func (*AndExpressionContext) ExitRule

func (s *AndExpressionContext) ExitRule(listener antlr.ParseTreeListener)

func (*AndExpressionContext) GetParser

func (s *AndExpressionContext) GetParser() antlr.Parser

func (*AndExpressionContext) GetRuleContext

func (s *AndExpressionContext) GetRuleContext() antlr.RuleContext

func (*AndExpressionContext) IsAndExpressionContext

func (*AndExpressionContext) IsAndExpressionContext()

func (*AndExpressionContext) ToStringTree

func (s *AndExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ArgumentContext

type ArgumentContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewArgumentContext

func NewArgumentContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ArgumentContext

func NewEmptyArgumentContext

func NewEmptyArgumentContext() *ArgumentContext

func (*ArgumentContext) EnterRule

func (s *ArgumentContext) EnterRule(listener antlr.ParseTreeListener)

func (*ArgumentContext) ExitRule

func (s *ArgumentContext) ExitRule(listener antlr.ParseTreeListener)

func (*ArgumentContext) Expression

func (s *ArgumentContext) Expression() IExpressionContext

func (*ArgumentContext) GetParser

func (s *ArgumentContext) GetParser() antlr.Parser

func (*ArgumentContext) GetRuleContext

func (s *ArgumentContext) GetRuleContext() antlr.RuleContext

func (*ArgumentContext) IsArgumentContext

func (*ArgumentContext) IsArgumentContext()

func (*ArgumentContext) STRING

func (s *ArgumentContext) STRING() antlr.TerminalNode

func (*ArgumentContext) ToStringTree

func (s *ArgumentContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Argument_listContext

type Argument_listContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewArgument_listContext

func NewArgument_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Argument_listContext

func NewEmptyArgument_listContext

func NewEmptyArgument_listContext() *Argument_listContext

func (*Argument_listContext) AllArgument

func (s *Argument_listContext) AllArgument() []IArgumentContext

func (*Argument_listContext) Argument

func (s *Argument_listContext) Argument(i int) IArgumentContext

func (*Argument_listContext) EnterRule

func (s *Argument_listContext) EnterRule(listener antlr.ParseTreeListener)

func (*Argument_listContext) ExitRule

func (s *Argument_listContext) ExitRule(listener antlr.ParseTreeListener)

func (*Argument_listContext) GetParser

func (s *Argument_listContext) GetParser() antlr.Parser

func (*Argument_listContext) GetRuleContext

func (s *Argument_listContext) GetRuleContext() antlr.RuleContext

func (*Argument_listContext) IsArgument_listContext

func (*Argument_listContext) IsArgument_listContext()

func (*Argument_listContext) ToStringTree

func (s *Argument_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type BaseQueryListener

type BaseQueryListener struct{}

BaseQueryListener is a complete listener for a parse tree produced by QueryParser.

func (*BaseQueryListener) EnterAdditiveExpression

func (s *BaseQueryListener) EnterAdditiveExpression(ctx *AdditiveExpressionContext)

EnterAdditiveExpression is called when production additiveExpression is entered.

func (*BaseQueryListener) EnterAlias

func (s *BaseQueryListener) EnterAlias(ctx *AliasContext)

EnterAlias is called when production alias is entered.

func (*BaseQueryListener) EnterAndExpression

func (s *BaseQueryListener) EnterAndExpression(ctx *AndExpressionContext)

EnterAndExpression is called when production andExpression is entered.

func (*BaseQueryListener) EnterArgument

func (s *BaseQueryListener) EnterArgument(ctx *ArgumentContext)

EnterArgument is called when production argument is entered.

func (*BaseQueryListener) EnterArgument_list

func (s *BaseQueryListener) EnterArgument_list(ctx *Argument_listContext)

EnterArgument_list is called when production argument_list is entered.

func (*BaseQueryListener) EnterComparator

func (s *BaseQueryListener) EnterComparator(ctx *ComparatorContext)

EnterComparator is called when production comparator is entered.

func (*BaseQueryListener) EnterEntity

func (s *BaseQueryListener) EnterEntity(ctx *EntityContext)

EnterEntity is called when production entity is entered.

func (*BaseQueryListener) EnterEqualityExpression

func (s *BaseQueryListener) EnterEqualityExpression(ctx *EqualityExpressionContext)

EnterEqualityExpression is called when production equalityExpression is entered.

func (*BaseQueryListener) EnterEveryRule

func (s *BaseQueryListener) EnterEveryRule(ctx antlr.ParserRuleContext)

EnterEveryRule is called when any rule is entered.

func (*BaseQueryListener) EnterExpression

func (s *BaseQueryListener) EnterExpression(ctx *ExpressionContext)

EnterExpression is called when production expression is entered.

func (*BaseQueryListener) EnterMethod_chain

func (s *BaseQueryListener) EnterMethod_chain(ctx *Method_chainContext)

EnterMethod_chain is called when production method_chain is entered.

func (*BaseQueryListener) EnterMethod_invocation

func (s *BaseQueryListener) EnterMethod_invocation(ctx *Method_invocationContext)

EnterMethod_invocation is called when production method_invocation is entered.

func (*BaseQueryListener) EnterMethod_or_variable

func (s *BaseQueryListener) EnterMethod_or_variable(ctx *Method_or_variableContext)

EnterMethod_or_variable is called when production method_or_variable is entered.

func (*BaseQueryListener) EnterMultiplicativeExpression

func (s *BaseQueryListener) EnterMultiplicativeExpression(ctx *MultiplicativeExpressionContext)

EnterMultiplicativeExpression is called when production multiplicativeExpression is entered.

func (*BaseQueryListener) EnterOperand

func (s *BaseQueryListener) EnterOperand(ctx *OperandContext)

EnterOperand is called when production operand is entered.

func (*BaseQueryListener) EnterOrExpression

func (s *BaseQueryListener) EnterOrExpression(ctx *OrExpressionContext)

EnterOrExpression is called when production orExpression is entered.

func (*BaseQueryListener) EnterParameter

func (s *BaseQueryListener) EnterParameter(ctx *ParameterContext)

EnterParameter is called when production parameter is entered.

func (*BaseQueryListener) EnterParameter_list

func (s *BaseQueryListener) EnterParameter_list(ctx *Parameter_listContext)

EnterParameter_list is called when production parameter_list is entered.

func (*BaseQueryListener) EnterPredicate_declaration

func (s *BaseQueryListener) EnterPredicate_declaration(ctx *Predicate_declarationContext)

EnterPredicate_declaration is called when production predicate_declaration is entered.

func (*BaseQueryListener) EnterPredicate_declarations

func (s *BaseQueryListener) EnterPredicate_declarations(ctx *Predicate_declarationsContext)

EnterPredicate_declarations is called when production predicate_declarations is entered.

func (*BaseQueryListener) EnterPredicate_invocation

func (s *BaseQueryListener) EnterPredicate_invocation(ctx *Predicate_invocationContext)

EnterPredicate_invocation is called when production predicate_invocation is entered.

func (*BaseQueryListener) EnterPredicate_name

func (s *BaseQueryListener) EnterPredicate_name(ctx *Predicate_nameContext)

EnterPredicate_name is called when production predicate_name is entered.

func (*BaseQueryListener) EnterPrimary

func (s *BaseQueryListener) EnterPrimary(ctx *PrimaryContext)

EnterPrimary is called when production primary is entered.

func (*BaseQueryListener) EnterQuery

func (s *BaseQueryListener) EnterQuery(ctx *QueryContext)

EnterQuery is called when production query is entered.

func (*BaseQueryListener) EnterRelationalExpression

func (s *BaseQueryListener) EnterRelationalExpression(ctx *RelationalExpressionContext)

EnterRelationalExpression is called when production relationalExpression is entered.

func (*BaseQueryListener) EnterSelect_clause

func (s *BaseQueryListener) EnterSelect_clause(ctx *Select_clauseContext)

EnterSelect_clause is called when production select_clause is entered.

func (*BaseQueryListener) EnterSelect_expression

func (s *BaseQueryListener) EnterSelect_expression(ctx *Select_expressionContext)

EnterSelect_expression is called when production select_expression is entered.

func (*BaseQueryListener) EnterSelect_item

func (s *BaseQueryListener) EnterSelect_item(ctx *Select_itemContext)

EnterSelect_item is called when production select_item is entered.

func (*BaseQueryListener) EnterSelect_list

func (s *BaseQueryListener) EnterSelect_list(ctx *Select_listContext)

EnterSelect_list is called when production select_list is entered.

func (*BaseQueryListener) EnterType

func (s *BaseQueryListener) EnterType(ctx *TypeContext)

EnterType is called when production type is entered.

func (*BaseQueryListener) EnterUnaryExpression

func (s *BaseQueryListener) EnterUnaryExpression(ctx *UnaryExpressionContext)

EnterUnaryExpression is called when production unaryExpression is entered.

func (*BaseQueryListener) EnterValue

func (s *BaseQueryListener) EnterValue(ctx *ValueContext)

EnterValue is called when production value is entered.

func (*BaseQueryListener) EnterValue_list

func (s *BaseQueryListener) EnterValue_list(ctx *Value_listContext)

EnterValue_list is called when production value_list is entered.

func (*BaseQueryListener) EnterVariable

func (s *BaseQueryListener) EnterVariable(ctx *VariableContext)

EnterVariable is called when production variable is entered.

func (*BaseQueryListener) ExitAdditiveExpression

func (s *BaseQueryListener) ExitAdditiveExpression(ctx *AdditiveExpressionContext)

ExitAdditiveExpression is called when production additiveExpression is exited.

func (*BaseQueryListener) ExitAlias

func (s *BaseQueryListener) ExitAlias(ctx *AliasContext)

ExitAlias is called when production alias is exited.

func (*BaseQueryListener) ExitAndExpression

func (s *BaseQueryListener) ExitAndExpression(ctx *AndExpressionContext)

ExitAndExpression is called when production andExpression is exited.

func (*BaseQueryListener) ExitArgument

func (s *BaseQueryListener) ExitArgument(ctx *ArgumentContext)

ExitArgument is called when production argument is exited.

func (*BaseQueryListener) ExitArgument_list

func (s *BaseQueryListener) ExitArgument_list(ctx *Argument_listContext)

ExitArgument_list is called when production argument_list is exited.

func (*BaseQueryListener) ExitComparator

func (s *BaseQueryListener) ExitComparator(ctx *ComparatorContext)

ExitComparator is called when production comparator is exited.

func (*BaseQueryListener) ExitEntity

func (s *BaseQueryListener) ExitEntity(ctx *EntityContext)

ExitEntity is called when production entity is exited.

func (*BaseQueryListener) ExitEqualityExpression

func (s *BaseQueryListener) ExitEqualityExpression(ctx *EqualityExpressionContext)

ExitEqualityExpression is called when production equalityExpression is exited.

func (*BaseQueryListener) ExitEveryRule

func (s *BaseQueryListener) ExitEveryRule(ctx antlr.ParserRuleContext)

ExitEveryRule is called when any rule is exited.

func (*BaseQueryListener) ExitExpression

func (s *BaseQueryListener) ExitExpression(ctx *ExpressionContext)

ExitExpression is called when production expression is exited.

func (*BaseQueryListener) ExitMethod_chain

func (s *BaseQueryListener) ExitMethod_chain(ctx *Method_chainContext)

ExitMethod_chain is called when production method_chain is exited.

func (*BaseQueryListener) ExitMethod_invocation

func (s *BaseQueryListener) ExitMethod_invocation(ctx *Method_invocationContext)

ExitMethod_invocation is called when production method_invocation is exited.

func (*BaseQueryListener) ExitMethod_or_variable

func (s *BaseQueryListener) ExitMethod_or_variable(ctx *Method_or_variableContext)

ExitMethod_or_variable is called when production method_or_variable is exited.

func (*BaseQueryListener) ExitMultiplicativeExpression

func (s *BaseQueryListener) ExitMultiplicativeExpression(ctx *MultiplicativeExpressionContext)

ExitMultiplicativeExpression is called when production multiplicativeExpression is exited.

func (*BaseQueryListener) ExitOperand

func (s *BaseQueryListener) ExitOperand(ctx *OperandContext)

ExitOperand is called when production operand is exited.

func (*BaseQueryListener) ExitOrExpression

func (s *BaseQueryListener) ExitOrExpression(ctx *OrExpressionContext)

ExitOrExpression is called when production orExpression is exited.

func (*BaseQueryListener) ExitParameter

func (s *BaseQueryListener) ExitParameter(ctx *ParameterContext)

ExitParameter is called when production parameter is exited.

func (*BaseQueryListener) ExitParameter_list

func (s *BaseQueryListener) ExitParameter_list(ctx *Parameter_listContext)

ExitParameter_list is called when production parameter_list is exited.

func (*BaseQueryListener) ExitPredicate_declaration

func (s *BaseQueryListener) ExitPredicate_declaration(ctx *Predicate_declarationContext)

ExitPredicate_declaration is called when production predicate_declaration is exited.

func (*BaseQueryListener) ExitPredicate_declarations

func (s *BaseQueryListener) ExitPredicate_declarations(ctx *Predicate_declarationsContext)

ExitPredicate_declarations is called when production predicate_declarations is exited.

func (*BaseQueryListener) ExitPredicate_invocation

func (s *BaseQueryListener) ExitPredicate_invocation(ctx *Predicate_invocationContext)

ExitPredicate_invocation is called when production predicate_invocation is exited.

func (*BaseQueryListener) ExitPredicate_name

func (s *BaseQueryListener) ExitPredicate_name(ctx *Predicate_nameContext)

ExitPredicate_name is called when production predicate_name is exited.

func (*BaseQueryListener) ExitPrimary

func (s *BaseQueryListener) ExitPrimary(ctx *PrimaryContext)

ExitPrimary is called when production primary is exited.

func (*BaseQueryListener) ExitQuery

func (s *BaseQueryListener) ExitQuery(ctx *QueryContext)

ExitQuery is called when production query is exited.

func (*BaseQueryListener) ExitRelationalExpression

func (s *BaseQueryListener) ExitRelationalExpression(ctx *RelationalExpressionContext)

ExitRelationalExpression is called when production relationalExpression is exited.

func (*BaseQueryListener) ExitSelect_clause

func (s *BaseQueryListener) ExitSelect_clause(ctx *Select_clauseContext)

ExitSelect_clause is called when production select_clause is exited.

func (*BaseQueryListener) ExitSelect_expression

func (s *BaseQueryListener) ExitSelect_expression(ctx *Select_expressionContext)

ExitSelect_expression is called when production select_expression is exited.

func (*BaseQueryListener) ExitSelect_item

func (s *BaseQueryListener) ExitSelect_item(ctx *Select_itemContext)

ExitSelect_item is called when production select_item is exited.

func (*BaseQueryListener) ExitSelect_list

func (s *BaseQueryListener) ExitSelect_list(ctx *Select_listContext)

ExitSelect_list is called when production select_list is exited.

func (*BaseQueryListener) ExitType

func (s *BaseQueryListener) ExitType(ctx *TypeContext)

ExitType is called when production type is exited.

func (*BaseQueryListener) ExitUnaryExpression

func (s *BaseQueryListener) ExitUnaryExpression(ctx *UnaryExpressionContext)

ExitUnaryExpression is called when production unaryExpression is exited.

func (*BaseQueryListener) ExitValue

func (s *BaseQueryListener) ExitValue(ctx *ValueContext)

ExitValue is called when production value is exited.

func (*BaseQueryListener) ExitValue_list

func (s *BaseQueryListener) ExitValue_list(ctx *Value_listContext)

ExitValue_list is called when production value_list is exited.

func (*BaseQueryListener) ExitVariable

func (s *BaseQueryListener) ExitVariable(ctx *VariableContext)

ExitVariable is called when production variable is exited.

func (*BaseQueryListener) VisitErrorNode

func (s *BaseQueryListener) VisitErrorNode(node antlr.ErrorNode)

VisitErrorNode is called when an error node is visited.

func (*BaseQueryListener) VisitTerminal

func (s *BaseQueryListener) VisitTerminal(node antlr.TerminalNode)

VisitTerminal is called when a terminal node is visited.

type ComparatorContext

type ComparatorContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewComparatorContext

func NewComparatorContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ComparatorContext

func NewEmptyComparatorContext

func NewEmptyComparatorContext() *ComparatorContext

func (*ComparatorContext) EnterRule

func (s *ComparatorContext) EnterRule(listener antlr.ParseTreeListener)

func (*ComparatorContext) ExitRule

func (s *ComparatorContext) ExitRule(listener antlr.ParseTreeListener)

func (*ComparatorContext) GetParser

func (s *ComparatorContext) GetParser() antlr.Parser

func (*ComparatorContext) GetRuleContext

func (s *ComparatorContext) GetRuleContext() antlr.RuleContext

func (*ComparatorContext) IsComparatorContext

func (*ComparatorContext) IsComparatorContext()

func (*ComparatorContext) ToStringTree

func (s *ComparatorContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type CustomQueryListener

type CustomQueryListener struct {
	BaseQueryListener

	Predicate           []Predicate
	PredicateInvocation []PredicateInvocation
	State               State
	SelectOutput        []SelectOutput
	// contains filtered or unexported fields
}

func NewCustomQueryListener

func NewCustomQueryListener() *CustomQueryListener

func (*CustomQueryListener) EnterEqualityExpression

func (l *CustomQueryListener) EnterEqualityExpression(ctx *EqualityExpressionContext)

func (*CustomQueryListener) EnterExpression

func (l *CustomQueryListener) EnterExpression(ctx *ExpressionContext)

func (*CustomQueryListener) EnterPredicate_declaration

func (l *CustomQueryListener) EnterPredicate_declaration(ctx *Predicate_declarationContext)

func (*CustomQueryListener) EnterPredicate_invocation

func (l *CustomQueryListener) EnterPredicate_invocation(ctx *Predicate_invocationContext)

func (*CustomQueryListener) EnterRelationalExpression

func (l *CustomQueryListener) EnterRelationalExpression(ctx *RelationalExpressionContext)

func (*CustomQueryListener) EnterSelect_expression

func (l *CustomQueryListener) EnterSelect_expression(ctx *Select_expressionContext)

func (*CustomQueryListener) EnterSelect_list

func (l *CustomQueryListener) EnterSelect_list(ctx *Select_listContext)

func (*CustomQueryListener) ExitAndExpression

func (l *CustomQueryListener) ExitAndExpression(ctx *AndExpressionContext)

func (*CustomQueryListener) ExitOrExpression

func (l *CustomQueryListener) ExitOrExpression(ctx *OrExpressionContext)

func (*CustomQueryListener) ExitPredicate_declaration

func (l *CustomQueryListener) ExitPredicate_declaration(_ *Predicate_declarationContext)

type EntityContext

type EntityContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyEntityContext

func NewEmptyEntityContext() *EntityContext

func NewEntityContext

func NewEntityContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EntityContext

func (*EntityContext) EnterRule

func (s *EntityContext) EnterRule(listener antlr.ParseTreeListener)

func (*EntityContext) ExitRule

func (s *EntityContext) ExitRule(listener antlr.ParseTreeListener)

func (*EntityContext) GetParser

func (s *EntityContext) GetParser() antlr.Parser

func (*EntityContext) GetRuleContext

func (s *EntityContext) GetRuleContext() antlr.RuleContext

func (*EntityContext) IDENTIFIER

func (s *EntityContext) IDENTIFIER() antlr.TerminalNode

func (*EntityContext) IsEntityContext

func (*EntityContext) IsEntityContext()

func (*EntityContext) ToStringTree

func (s *EntityContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type EqualityExpressionContext

type EqualityExpressionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyEqualityExpressionContext

func NewEmptyEqualityExpressionContext() *EqualityExpressionContext

func NewEqualityExpressionContext

func NewEqualityExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *EqualityExpressionContext

func (*EqualityExpressionContext) AllRelationalExpression

func (s *EqualityExpressionContext) AllRelationalExpression() []IRelationalExpressionContext

func (*EqualityExpressionContext) EnterRule

func (s *EqualityExpressionContext) EnterRule(listener antlr.ParseTreeListener)

func (*EqualityExpressionContext) ExitRule

func (s *EqualityExpressionContext) ExitRule(listener antlr.ParseTreeListener)

func (*EqualityExpressionContext) GetParser

func (s *EqualityExpressionContext) GetParser() antlr.Parser

func (*EqualityExpressionContext) GetRuleContext

func (s *EqualityExpressionContext) GetRuleContext() antlr.RuleContext

func (*EqualityExpressionContext) IsEqualityExpressionContext

func (*EqualityExpressionContext) IsEqualityExpressionContext()

func (*EqualityExpressionContext) RelationalExpression

func (s *EqualityExpressionContext) RelationalExpression(i int) IRelationalExpressionContext

func (*EqualityExpressionContext) ToStringTree

func (s *EqualityExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type ExpressionContext

type ExpressionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyExpressionContext

func NewEmptyExpressionContext() *ExpressionContext

func NewExpressionContext

func NewExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ExpressionContext

func (*ExpressionContext) EnterRule

func (s *ExpressionContext) EnterRule(listener antlr.ParseTreeListener)

func (*ExpressionContext) ExitRule

func (s *ExpressionContext) ExitRule(listener antlr.ParseTreeListener)

func (*ExpressionContext) GetParser

func (s *ExpressionContext) GetParser() antlr.Parser

func (*ExpressionContext) GetRuleContext

func (s *ExpressionContext) GetRuleContext() antlr.RuleContext

func (*ExpressionContext) IsExpressionContext

func (*ExpressionContext) IsExpressionContext()

func (*ExpressionContext) OrExpression

func (s *ExpressionContext) OrExpression() IOrExpressionContext

func (*ExpressionContext) ToStringTree

func (s *ExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type IAdditiveExpressionContext

type IAdditiveExpressionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllMultiplicativeExpression() []IMultiplicativeExpressionContext
	MultiplicativeExpression(i int) IMultiplicativeExpressionContext

	// IsAdditiveExpressionContext differentiates from other interfaces.
	IsAdditiveExpressionContext()
}

IAdditiveExpressionContext is an interface to support dynamic dispatch.

type IAliasContext

type IAliasContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	IDENTIFIER() antlr.TerminalNode

	// IsAliasContext differentiates from other interfaces.
	IsAliasContext()
}

IAliasContext is an interface to support dynamic dispatch.

type IAndExpressionContext

type IAndExpressionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllEqualityExpression() []IEqualityExpressionContext
	EqualityExpression(i int) IEqualityExpressionContext

	// IsAndExpressionContext differentiates from other interfaces.
	IsAndExpressionContext()
}

IAndExpressionContext is an interface to support dynamic dispatch.

type IArgumentContext

type IArgumentContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	Expression() IExpressionContext
	STRING() antlr.TerminalNode

	// IsArgumentContext differentiates from other interfaces.
	IsArgumentContext()
}

IArgumentContext is an interface to support dynamic dispatch.

type IArgument_listContext

type IArgument_listContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllArgument() []IArgumentContext
	Argument(i int) IArgumentContext

	// IsArgument_listContext differentiates from other interfaces.
	IsArgument_listContext()
}

IArgument_listContext is an interface to support dynamic dispatch.

type IComparatorContext

type IComparatorContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser
	// IsComparatorContext differentiates from other interfaces.
	IsComparatorContext()
}

IComparatorContext is an interface to support dynamic dispatch.

type IEntityContext

type IEntityContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	IDENTIFIER() antlr.TerminalNode

	// IsEntityContext differentiates from other interfaces.
	IsEntityContext()
}

IEntityContext is an interface to support dynamic dispatch.

type IEqualityExpressionContext

type IEqualityExpressionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllRelationalExpression() []IRelationalExpressionContext
	RelationalExpression(i int) IRelationalExpressionContext

	// IsEqualityExpressionContext differentiates from other interfaces.
	IsEqualityExpressionContext()
}

IEqualityExpressionContext is an interface to support dynamic dispatch.

type IExpressionContext

type IExpressionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	OrExpression() IOrExpressionContext

	// IsExpressionContext differentiates from other interfaces.
	IsExpressionContext()
}

IExpressionContext is an interface to support dynamic dispatch.

type IMethod_chainContext

type IMethod_chainContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllMethod_or_variable() []IMethod_or_variableContext
	Method_or_variable(i int) IMethod_or_variableContext
	Alias() IAliasContext

	// IsMethod_chainContext differentiates from other interfaces.
	IsMethod_chainContext()
}

IMethod_chainContext is an interface to support dynamic dispatch.

type IMethod_invocationContext

type IMethod_invocationContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	IDENTIFIER() antlr.TerminalNode
	Argument_list() IArgument_listContext

	// IsMethod_invocationContext differentiates from other interfaces.
	IsMethod_invocationContext()
}

IMethod_invocationContext is an interface to support dynamic dispatch.

type IMethod_or_variableContext

type IMethod_or_variableContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	Method_invocation() IMethod_invocationContext
	Variable() IVariableContext
	Predicate_invocation() IPredicate_invocationContext

	// IsMethod_or_variableContext differentiates from other interfaces.
	IsMethod_or_variableContext()
}

IMethod_or_variableContext is an interface to support dynamic dispatch.

type IMultiplicativeExpressionContext

type IMultiplicativeExpressionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllUnaryExpression() []IUnaryExpressionContext
	UnaryExpression(i int) IUnaryExpressionContext

	// IsMultiplicativeExpressionContext differentiates from other interfaces.
	IsMultiplicativeExpressionContext()
}

IMultiplicativeExpressionContext is an interface to support dynamic dispatch.

type IOperandContext

type IOperandContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	Value() IValueContext
	Variable() IVariableContext
	Alias() IAliasContext
	Method_chain() IMethod_chainContext
	Value_list() IValue_listContext

	// IsOperandContext differentiates from other interfaces.
	IsOperandContext()
}

IOperandContext is an interface to support dynamic dispatch.

type IOrExpressionContext

type IOrExpressionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllAndExpression() []IAndExpressionContext
	AndExpression(i int) IAndExpressionContext

	// IsOrExpressionContext differentiates from other interfaces.
	IsOrExpressionContext()
}

IOrExpressionContext is an interface to support dynamic dispatch.

type IParameterContext

type IParameterContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	Type_() ITypeContext
	IDENTIFIER() antlr.TerminalNode

	// IsParameterContext differentiates from other interfaces.
	IsParameterContext()
}

IParameterContext is an interface to support dynamic dispatch.

type IParameter_listContext

type IParameter_listContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllParameter() []IParameterContext
	Parameter(i int) IParameterContext

	// IsParameter_listContext differentiates from other interfaces.
	IsParameter_listContext()
}

IParameter_listContext is an interface to support dynamic dispatch.

type IPredicate_declarationContext

type IPredicate_declarationContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	PREDICATE() antlr.TerminalNode
	Predicate_name() IPredicate_nameContext
	Expression() IExpressionContext
	Parameter_list() IParameter_listContext

	// IsPredicate_declarationContext differentiates from other interfaces.
	IsPredicate_declarationContext()
}

IPredicate_declarationContext is an interface to support dynamic dispatch.

type IPredicate_declarationsContext

type IPredicate_declarationsContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllPredicate_declaration() []IPredicate_declarationContext
	Predicate_declaration(i int) IPredicate_declarationContext

	// IsPredicate_declarationsContext differentiates from other interfaces.
	IsPredicate_declarationsContext()
}

IPredicate_declarationsContext is an interface to support dynamic dispatch.

type IPredicate_invocationContext

type IPredicate_invocationContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	Predicate_name() IPredicate_nameContext
	Argument_list() IArgument_listContext

	// IsPredicate_invocationContext differentiates from other interfaces.
	IsPredicate_invocationContext()
}

IPredicate_invocationContext is an interface to support dynamic dispatch.

type IPredicate_nameContext

type IPredicate_nameContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	IDENTIFIER() antlr.TerminalNode

	// IsPredicate_nameContext differentiates from other interfaces.
	IsPredicate_nameContext()
}

IPredicate_nameContext is an interface to support dynamic dispatch.

type IPrimaryContext

type IPrimaryContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	Operand() IOperandContext
	Predicate_invocation() IPredicate_invocationContext
	Expression() IExpressionContext

	// IsPrimaryContext differentiates from other interfaces.
	IsPrimaryContext()
}

IPrimaryContext is an interface to support dynamic dispatch.

type IQueryContext

type IQueryContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	FROM() antlr.TerminalNode
	Select_list() ISelect_listContext
	SELECT() antlr.TerminalNode
	Select_clause() ISelect_clauseContext
	Predicate_declarations() IPredicate_declarationsContext
	WHERE() antlr.TerminalNode
	Expression() IExpressionContext

	// IsQueryContext differentiates from other interfaces.
	IsQueryContext()
}

IQueryContext is an interface to support dynamic dispatch.

type IRelationalExpressionContext

type IRelationalExpressionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllAdditiveExpression() []IAdditiveExpressionContext
	AdditiveExpression(i int) IAdditiveExpressionContext

	// IsRelationalExpressionContext differentiates from other interfaces.
	IsRelationalExpressionContext()
}

IRelationalExpressionContext is an interface to support dynamic dispatch.

type ISelect_clauseContext

type ISelect_clauseContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllSelect_expression() []ISelect_expressionContext
	Select_expression(i int) ISelect_expressionContext

	// IsSelect_clauseContext differentiates from other interfaces.
	IsSelect_clauseContext()
}

ISelect_clauseContext is an interface to support dynamic dispatch.

type ISelect_expressionContext

type ISelect_expressionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	Variable() IVariableContext
	Method_chain() IMethod_chainContext
	STRING() antlr.TerminalNode

	// IsSelect_expressionContext differentiates from other interfaces.
	IsSelect_expressionContext()
}

ISelect_expressionContext is an interface to support dynamic dispatch.

type ISelect_itemContext

type ISelect_itemContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	Entity() IEntityContext
	AS() antlr.TerminalNode
	Alias() IAliasContext

	// IsSelect_itemContext differentiates from other interfaces.
	IsSelect_itemContext()
}

ISelect_itemContext is an interface to support dynamic dispatch.

type ISelect_listContext

type ISelect_listContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllSelect_item() []ISelect_itemContext
	Select_item(i int) ISelect_itemContext

	// IsSelect_listContext differentiates from other interfaces.
	IsSelect_listContext()
}

ISelect_listContext is an interface to support dynamic dispatch.

type ITypeContext

type ITypeContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	IDENTIFIER() antlr.TerminalNode

	// IsTypeContext differentiates from other interfaces.
	IsTypeContext()
}

ITypeContext is an interface to support dynamic dispatch.

type IUnaryExpressionContext

type IUnaryExpressionContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	UnaryExpression() IUnaryExpressionContext
	Primary() IPrimaryContext

	// IsUnaryExpressionContext differentiates from other interfaces.
	IsUnaryExpressionContext()
}

IUnaryExpressionContext is an interface to support dynamic dispatch.

type IValueContext

type IValueContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	STRING() antlr.TerminalNode
	NUMBER() antlr.TerminalNode
	STRING_WITH_WILDCARD() antlr.TerminalNode

	// IsValueContext differentiates from other interfaces.
	IsValueContext()
}

IValueContext is an interface to support dynamic dispatch.

type IValue_listContext

type IValue_listContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	AllValue() []IValueContext
	Value(i int) IValueContext

	// IsValue_listContext differentiates from other interfaces.
	IsValue_listContext()
}

IValue_listContext is an interface to support dynamic dispatch.

type IVariableContext

type IVariableContext interface {
	antlr.ParserRuleContext

	// GetParser returns the parser.
	GetParser() antlr.Parser

	// Getter signatures
	IDENTIFIER() antlr.TerminalNode

	// IsVariableContext differentiates from other interfaces.
	IsVariableContext()
}

IVariableContext is an interface to support dynamic dispatch.

type Method_chainContext

type Method_chainContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyMethod_chainContext

func NewEmptyMethod_chainContext() *Method_chainContext

func NewMethod_chainContext

func NewMethod_chainContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Method_chainContext

func (*Method_chainContext) Alias

func (*Method_chainContext) AllMethod_or_variable

func (s *Method_chainContext) AllMethod_or_variable() []IMethod_or_variableContext

func (*Method_chainContext) EnterRule

func (s *Method_chainContext) EnterRule(listener antlr.ParseTreeListener)

func (*Method_chainContext) ExitRule

func (s *Method_chainContext) ExitRule(listener antlr.ParseTreeListener)

func (*Method_chainContext) GetParser

func (s *Method_chainContext) GetParser() antlr.Parser

func (*Method_chainContext) GetRuleContext

func (s *Method_chainContext) GetRuleContext() antlr.RuleContext

func (*Method_chainContext) IsMethod_chainContext

func (*Method_chainContext) IsMethod_chainContext()

func (*Method_chainContext) Method_or_variable

func (s *Method_chainContext) Method_or_variable(i int) IMethod_or_variableContext

func (*Method_chainContext) ToStringTree

func (s *Method_chainContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Method_invocationContext

type Method_invocationContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyMethod_invocationContext

func NewEmptyMethod_invocationContext() *Method_invocationContext

func NewMethod_invocationContext

func NewMethod_invocationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Method_invocationContext

func (*Method_invocationContext) Argument_list

func (*Method_invocationContext) EnterRule

func (s *Method_invocationContext) EnterRule(listener antlr.ParseTreeListener)

func (*Method_invocationContext) ExitRule

func (s *Method_invocationContext) ExitRule(listener antlr.ParseTreeListener)

func (*Method_invocationContext) GetParser

func (s *Method_invocationContext) GetParser() antlr.Parser

func (*Method_invocationContext) GetRuleContext

func (s *Method_invocationContext) GetRuleContext() antlr.RuleContext

func (*Method_invocationContext) IDENTIFIER

func (s *Method_invocationContext) IDENTIFIER() antlr.TerminalNode

func (*Method_invocationContext) IsMethod_invocationContext

func (*Method_invocationContext) IsMethod_invocationContext()

func (*Method_invocationContext) ToStringTree

func (s *Method_invocationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Method_or_variableContext

type Method_or_variableContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyMethod_or_variableContext

func NewEmptyMethod_or_variableContext() *Method_or_variableContext

func NewMethod_or_variableContext

func NewMethod_or_variableContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Method_or_variableContext

func (*Method_or_variableContext) EnterRule

func (s *Method_or_variableContext) EnterRule(listener antlr.ParseTreeListener)

func (*Method_or_variableContext) ExitRule

func (s *Method_or_variableContext) ExitRule(listener antlr.ParseTreeListener)

func (*Method_or_variableContext) GetParser

func (s *Method_or_variableContext) GetParser() antlr.Parser

func (*Method_or_variableContext) GetRuleContext

func (s *Method_or_variableContext) GetRuleContext() antlr.RuleContext

func (*Method_or_variableContext) IsMethod_or_variableContext

func (*Method_or_variableContext) IsMethod_or_variableContext()

func (*Method_or_variableContext) Method_invocation

func (*Method_or_variableContext) Predicate_invocation

func (s *Method_or_variableContext) Predicate_invocation() IPredicate_invocationContext

func (*Method_or_variableContext) ToStringTree

func (s *Method_or_variableContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*Method_or_variableContext) Variable

type MultiplicativeExpressionContext

type MultiplicativeExpressionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyMultiplicativeExpressionContext

func NewEmptyMultiplicativeExpressionContext() *MultiplicativeExpressionContext

func NewMultiplicativeExpressionContext

func NewMultiplicativeExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *MultiplicativeExpressionContext

func (*MultiplicativeExpressionContext) AllUnaryExpression

func (s *MultiplicativeExpressionContext) AllUnaryExpression() []IUnaryExpressionContext

func (*MultiplicativeExpressionContext) EnterRule

func (s *MultiplicativeExpressionContext) EnterRule(listener antlr.ParseTreeListener)

func (*MultiplicativeExpressionContext) ExitRule

func (s *MultiplicativeExpressionContext) ExitRule(listener antlr.ParseTreeListener)

func (*MultiplicativeExpressionContext) GetParser

func (s *MultiplicativeExpressionContext) GetParser() antlr.Parser

func (*MultiplicativeExpressionContext) GetRuleContext

func (s *MultiplicativeExpressionContext) GetRuleContext() antlr.RuleContext

func (*MultiplicativeExpressionContext) IsMultiplicativeExpressionContext

func (*MultiplicativeExpressionContext) IsMultiplicativeExpressionContext()

func (*MultiplicativeExpressionContext) ToStringTree

func (s *MultiplicativeExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*MultiplicativeExpressionContext) UnaryExpression

type OperandContext

type OperandContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyOperandContext

func NewEmptyOperandContext() *OperandContext

func NewOperandContext

func NewOperandContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *OperandContext

func (*OperandContext) Alias

func (s *OperandContext) Alias() IAliasContext

func (*OperandContext) EnterRule

func (s *OperandContext) EnterRule(listener antlr.ParseTreeListener)

func (*OperandContext) ExitRule

func (s *OperandContext) ExitRule(listener antlr.ParseTreeListener)

func (*OperandContext) GetParser

func (s *OperandContext) GetParser() antlr.Parser

func (*OperandContext) GetRuleContext

func (s *OperandContext) GetRuleContext() antlr.RuleContext

func (*OperandContext) IsOperandContext

func (*OperandContext) IsOperandContext()

func (*OperandContext) Method_chain

func (s *OperandContext) Method_chain() IMethod_chainContext

func (*OperandContext) ToStringTree

func (s *OperandContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*OperandContext) Value

func (s *OperandContext) Value() IValueContext

func (*OperandContext) Value_list

func (s *OperandContext) Value_list() IValue_listContext

func (*OperandContext) Variable

func (s *OperandContext) Variable() IVariableContext

type OrExpressionContext

type OrExpressionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyOrExpressionContext

func NewEmptyOrExpressionContext() *OrExpressionContext

func NewOrExpressionContext

func NewOrExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *OrExpressionContext

func (*OrExpressionContext) AllAndExpression

func (s *OrExpressionContext) AllAndExpression() []IAndExpressionContext

func (*OrExpressionContext) AndExpression

func (s *OrExpressionContext) AndExpression(i int) IAndExpressionContext

func (*OrExpressionContext) EnterRule

func (s *OrExpressionContext) EnterRule(listener antlr.ParseTreeListener)

func (*OrExpressionContext) ExitRule

func (s *OrExpressionContext) ExitRule(listener antlr.ParseTreeListener)

func (*OrExpressionContext) GetParser

func (s *OrExpressionContext) GetParser() antlr.Parser

func (*OrExpressionContext) GetRuleContext

func (s *OrExpressionContext) GetRuleContext() antlr.RuleContext

func (*OrExpressionContext) IsOrExpressionContext

func (*OrExpressionContext) IsOrExpressionContext()

func (*OrExpressionContext) ToStringTree

func (s *OrExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Parameter

type Parameter struct {
	Name         string
	Type         string
	DefaultValue string
}

type ParameterContext

type ParameterContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyParameterContext

func NewEmptyParameterContext() *ParameterContext

func NewParameterContext

func NewParameterContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ParameterContext

func (*ParameterContext) EnterRule

func (s *ParameterContext) EnterRule(listener antlr.ParseTreeListener)

func (*ParameterContext) ExitRule

func (s *ParameterContext) ExitRule(listener antlr.ParseTreeListener)

func (*ParameterContext) GetParser

func (s *ParameterContext) GetParser() antlr.Parser

func (*ParameterContext) GetRuleContext

func (s *ParameterContext) GetRuleContext() antlr.RuleContext

func (*ParameterContext) IDENTIFIER

func (s *ParameterContext) IDENTIFIER() antlr.TerminalNode

func (*ParameterContext) IsParameterContext

func (*ParameterContext) IsParameterContext()

func (*ParameterContext) ToStringTree

func (s *ParameterContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*ParameterContext) Type_

func (s *ParameterContext) Type_() ITypeContext

type Parameter_listContext

type Parameter_listContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyParameter_listContext

func NewEmptyParameter_listContext() *Parameter_listContext

func NewParameter_listContext

func NewParameter_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Parameter_listContext

func (*Parameter_listContext) AllParameter

func (s *Parameter_listContext) AllParameter() []IParameterContext

func (*Parameter_listContext) EnterRule

func (s *Parameter_listContext) EnterRule(listener antlr.ParseTreeListener)

func (*Parameter_listContext) ExitRule

func (s *Parameter_listContext) ExitRule(listener antlr.ParseTreeListener)

func (*Parameter_listContext) GetParser

func (s *Parameter_listContext) GetParser() antlr.Parser

func (*Parameter_listContext) GetRuleContext

func (s *Parameter_listContext) GetRuleContext() antlr.RuleContext

func (*Parameter_listContext) IsParameter_listContext

func (*Parameter_listContext) IsParameter_listContext()

func (*Parameter_listContext) Parameter

func (*Parameter_listContext) ToStringTree

func (s *Parameter_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Predicate

type Predicate struct {
	PredicateName string
	Parameter     []Parameter
	Body          string
}

type PredicateInvocation

type PredicateInvocation struct {
	PredicateName string
	Parameter     []Parameter
	Predicate     Predicate
}

type Predicate_declarationContext

type Predicate_declarationContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyPredicate_declarationContext

func NewEmptyPredicate_declarationContext() *Predicate_declarationContext

func NewPredicate_declarationContext

func NewPredicate_declarationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Predicate_declarationContext

func (*Predicate_declarationContext) EnterRule

func (s *Predicate_declarationContext) EnterRule(listener antlr.ParseTreeListener)

func (*Predicate_declarationContext) ExitRule

func (s *Predicate_declarationContext) ExitRule(listener antlr.ParseTreeListener)

func (*Predicate_declarationContext) Expression

func (*Predicate_declarationContext) GetParser

func (s *Predicate_declarationContext) GetParser() antlr.Parser

func (*Predicate_declarationContext) GetRuleContext

func (s *Predicate_declarationContext) GetRuleContext() antlr.RuleContext

func (*Predicate_declarationContext) IsPredicate_declarationContext

func (*Predicate_declarationContext) IsPredicate_declarationContext()

func (*Predicate_declarationContext) PREDICATE

func (s *Predicate_declarationContext) PREDICATE() antlr.TerminalNode

func (*Predicate_declarationContext) Parameter_list

func (*Predicate_declarationContext) Predicate_name

func (*Predicate_declarationContext) ToStringTree

func (s *Predicate_declarationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Predicate_declarationsContext

type Predicate_declarationsContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyPredicate_declarationsContext

func NewEmptyPredicate_declarationsContext() *Predicate_declarationsContext

func NewPredicate_declarationsContext

func NewPredicate_declarationsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Predicate_declarationsContext

func (*Predicate_declarationsContext) AllPredicate_declaration

func (s *Predicate_declarationsContext) AllPredicate_declaration() []IPredicate_declarationContext

func (*Predicate_declarationsContext) EnterRule

func (s *Predicate_declarationsContext) EnterRule(listener antlr.ParseTreeListener)

func (*Predicate_declarationsContext) ExitRule

func (s *Predicate_declarationsContext) ExitRule(listener antlr.ParseTreeListener)

func (*Predicate_declarationsContext) GetParser

func (s *Predicate_declarationsContext) GetParser() antlr.Parser

func (*Predicate_declarationsContext) GetRuleContext

func (s *Predicate_declarationsContext) GetRuleContext() antlr.RuleContext

func (*Predicate_declarationsContext) IsPredicate_declarationsContext

func (*Predicate_declarationsContext) IsPredicate_declarationsContext()

func (*Predicate_declarationsContext) Predicate_declaration

func (*Predicate_declarationsContext) ToStringTree

func (s *Predicate_declarationsContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Predicate_invocationContext

type Predicate_invocationContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyPredicate_invocationContext

func NewEmptyPredicate_invocationContext() *Predicate_invocationContext

func NewPredicate_invocationContext

func NewPredicate_invocationContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Predicate_invocationContext

func (*Predicate_invocationContext) Argument_list

func (*Predicate_invocationContext) EnterRule

func (s *Predicate_invocationContext) EnterRule(listener antlr.ParseTreeListener)

func (*Predicate_invocationContext) ExitRule

func (s *Predicate_invocationContext) ExitRule(listener antlr.ParseTreeListener)

func (*Predicate_invocationContext) GetParser

func (s *Predicate_invocationContext) GetParser() antlr.Parser

func (*Predicate_invocationContext) GetRuleContext

func (s *Predicate_invocationContext) GetRuleContext() antlr.RuleContext

func (*Predicate_invocationContext) IsPredicate_invocationContext

func (*Predicate_invocationContext) IsPredicate_invocationContext()

func (*Predicate_invocationContext) Predicate_name

func (*Predicate_invocationContext) ToStringTree

func (s *Predicate_invocationContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Predicate_nameContext

type Predicate_nameContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyPredicate_nameContext

func NewEmptyPredicate_nameContext() *Predicate_nameContext

func NewPredicate_nameContext

func NewPredicate_nameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Predicate_nameContext

func (*Predicate_nameContext) EnterRule

func (s *Predicate_nameContext) EnterRule(listener antlr.ParseTreeListener)

func (*Predicate_nameContext) ExitRule

func (s *Predicate_nameContext) ExitRule(listener antlr.ParseTreeListener)

func (*Predicate_nameContext) GetParser

func (s *Predicate_nameContext) GetParser() antlr.Parser

func (*Predicate_nameContext) GetRuleContext

func (s *Predicate_nameContext) GetRuleContext() antlr.RuleContext

func (*Predicate_nameContext) IDENTIFIER

func (s *Predicate_nameContext) IDENTIFIER() antlr.TerminalNode

func (*Predicate_nameContext) IsPredicate_nameContext

func (*Predicate_nameContext) IsPredicate_nameContext()

func (*Predicate_nameContext) ToStringTree

func (s *Predicate_nameContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type PrimaryContext

type PrimaryContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyPrimaryContext

func NewEmptyPrimaryContext() *PrimaryContext

func NewPrimaryContext

func NewPrimaryContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *PrimaryContext

func (*PrimaryContext) EnterRule

func (s *PrimaryContext) EnterRule(listener antlr.ParseTreeListener)

func (*PrimaryContext) ExitRule

func (s *PrimaryContext) ExitRule(listener antlr.ParseTreeListener)

func (*PrimaryContext) Expression

func (s *PrimaryContext) Expression() IExpressionContext

func (*PrimaryContext) GetParser

func (s *PrimaryContext) GetParser() antlr.Parser

func (*PrimaryContext) GetRuleContext

func (s *PrimaryContext) GetRuleContext() antlr.RuleContext

func (*PrimaryContext) IsPrimaryContext

func (*PrimaryContext) IsPrimaryContext()

func (*PrimaryContext) Operand

func (s *PrimaryContext) Operand() IOperandContext

func (*PrimaryContext) Predicate_invocation

func (s *PrimaryContext) Predicate_invocation() IPredicate_invocationContext

func (*PrimaryContext) ToStringTree

func (s *PrimaryContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Query

type Query struct {
	SelectList          []SelectList
	Expression          string
	Condition           []string
	Predicate           []Predicate
	PredicateInvocation []PredicateInvocation
	SelectOutput        []SelectOutput
}

func ParseQuery

func ParseQuery(inputQuery string) (Query, error)

type QueryContext

type QueryContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyQueryContext

func NewEmptyQueryContext() *QueryContext

func NewQueryContext

func NewQueryContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *QueryContext

func (*QueryContext) EnterRule

func (s *QueryContext) EnterRule(listener antlr.ParseTreeListener)

func (*QueryContext) ExitRule

func (s *QueryContext) ExitRule(listener antlr.ParseTreeListener)

func (*QueryContext) Expression

func (s *QueryContext) Expression() IExpressionContext

func (*QueryContext) FROM

func (s *QueryContext) FROM() antlr.TerminalNode

func (*QueryContext) GetParser

func (s *QueryContext) GetParser() antlr.Parser

func (*QueryContext) GetRuleContext

func (s *QueryContext) GetRuleContext() antlr.RuleContext

func (*QueryContext) IsQueryContext

func (*QueryContext) IsQueryContext()

func (*QueryContext) Predicate_declarations

func (s *QueryContext) Predicate_declarations() IPredicate_declarationsContext

func (*QueryContext) SELECT

func (s *QueryContext) SELECT() antlr.TerminalNode

func (*QueryContext) Select_clause

func (s *QueryContext) Select_clause() ISelect_clauseContext

func (*QueryContext) Select_list

func (s *QueryContext) Select_list() ISelect_listContext

func (*QueryContext) ToStringTree

func (s *QueryContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*QueryContext) WHERE

func (s *QueryContext) WHERE() antlr.TerminalNode

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 QueryListener

type QueryListener interface {
	antlr.ParseTreeListener

	// EnterQuery is called when entering the query production.
	EnterQuery(c *QueryContext)

	// EnterPredicate_declarations is called when entering the predicate_declarations production.
	EnterPredicate_declarations(c *Predicate_declarationsContext)

	// EnterPredicate_declaration is called when entering the predicate_declaration production.
	EnterPredicate_declaration(c *Predicate_declarationContext)

	// EnterPredicate_name is called when entering the predicate_name production.
	EnterPredicate_name(c *Predicate_nameContext)

	// EnterParameter_list is called when entering the parameter_list production.
	EnterParameter_list(c *Parameter_listContext)

	// EnterParameter is called when entering the parameter production.
	EnterParameter(c *ParameterContext)

	// EnterType is called when entering the type production.
	EnterType(c *TypeContext)

	// EnterSelect_list is called when entering the select_list production.
	EnterSelect_list(c *Select_listContext)

	// EnterSelect_item is called when entering the select_item production.
	EnterSelect_item(c *Select_itemContext)

	// EnterEntity is called when entering the entity production.
	EnterEntity(c *EntityContext)

	// EnterAlias is called when entering the alias production.
	EnterAlias(c *AliasContext)

	// EnterExpression is called when entering the expression production.
	EnterExpression(c *ExpressionContext)

	// EnterOrExpression is called when entering the orExpression production.
	EnterOrExpression(c *OrExpressionContext)

	// EnterAndExpression is called when entering the andExpression production.
	EnterAndExpression(c *AndExpressionContext)

	// EnterEqualityExpression is called when entering the equalityExpression production.
	EnterEqualityExpression(c *EqualityExpressionContext)

	// EnterRelationalExpression is called when entering the relationalExpression production.
	EnterRelationalExpression(c *RelationalExpressionContext)

	// EnterAdditiveExpression is called when entering the additiveExpression production.
	EnterAdditiveExpression(c *AdditiveExpressionContext)

	// EnterMultiplicativeExpression is called when entering the multiplicativeExpression production.
	EnterMultiplicativeExpression(c *MultiplicativeExpressionContext)

	// EnterUnaryExpression is called when entering the unaryExpression production.
	EnterUnaryExpression(c *UnaryExpressionContext)

	// EnterPrimary is called when entering the primary production.
	EnterPrimary(c *PrimaryContext)

	// EnterOperand is called when entering the operand production.
	EnterOperand(c *OperandContext)

	// EnterMethod_chain is called when entering the method_chain production.
	EnterMethod_chain(c *Method_chainContext)

	// EnterMethod_or_variable is called when entering the method_or_variable production.
	EnterMethod_or_variable(c *Method_or_variableContext)

	// EnterMethod_invocation is called when entering the method_invocation production.
	EnterMethod_invocation(c *Method_invocationContext)

	// EnterVariable is called when entering the variable production.
	EnterVariable(c *VariableContext)

	// EnterPredicate_invocation is called when entering the predicate_invocation production.
	EnterPredicate_invocation(c *Predicate_invocationContext)

	// EnterArgument_list is called when entering the argument_list production.
	EnterArgument_list(c *Argument_listContext)

	// EnterArgument is called when entering the argument production.
	EnterArgument(c *ArgumentContext)

	// EnterComparator is called when entering the comparator production.
	EnterComparator(c *ComparatorContext)

	// EnterValue is called when entering the value production.
	EnterValue(c *ValueContext)

	// EnterValue_list is called when entering the value_list production.
	EnterValue_list(c *Value_listContext)

	// EnterSelect_clause is called when entering the select_clause production.
	EnterSelect_clause(c *Select_clauseContext)

	// EnterSelect_expression is called when entering the select_expression production.
	EnterSelect_expression(c *Select_expressionContext)

	// ExitQuery is called when exiting the query production.
	ExitQuery(c *QueryContext)

	// ExitPredicate_declarations is called when exiting the predicate_declarations production.
	ExitPredicate_declarations(c *Predicate_declarationsContext)

	// ExitPredicate_declaration is called when exiting the predicate_declaration production.
	ExitPredicate_declaration(c *Predicate_declarationContext)

	// ExitPredicate_name is called when exiting the predicate_name production.
	ExitPredicate_name(c *Predicate_nameContext)

	// ExitParameter_list is called when exiting the parameter_list production.
	ExitParameter_list(c *Parameter_listContext)

	// ExitParameter is called when exiting the parameter production.
	ExitParameter(c *ParameterContext)

	// ExitType is called when exiting the type production.
	ExitType(c *TypeContext)

	// ExitSelect_list is called when exiting the select_list production.
	ExitSelect_list(c *Select_listContext)

	// ExitSelect_item is called when exiting the select_item production.
	ExitSelect_item(c *Select_itemContext)

	// ExitEntity is called when exiting the entity production.
	ExitEntity(c *EntityContext)

	// ExitAlias is called when exiting the alias production.
	ExitAlias(c *AliasContext)

	// ExitExpression is called when exiting the expression production.
	ExitExpression(c *ExpressionContext)

	// ExitOrExpression is called when exiting the orExpression production.
	ExitOrExpression(c *OrExpressionContext)

	// ExitAndExpression is called when exiting the andExpression production.
	ExitAndExpression(c *AndExpressionContext)

	// ExitEqualityExpression is called when exiting the equalityExpression production.
	ExitEqualityExpression(c *EqualityExpressionContext)

	// ExitRelationalExpression is called when exiting the relationalExpression production.
	ExitRelationalExpression(c *RelationalExpressionContext)

	// ExitAdditiveExpression is called when exiting the additiveExpression production.
	ExitAdditiveExpression(c *AdditiveExpressionContext)

	// ExitMultiplicativeExpression is called when exiting the multiplicativeExpression production.
	ExitMultiplicativeExpression(c *MultiplicativeExpressionContext)

	// ExitUnaryExpression is called when exiting the unaryExpression production.
	ExitUnaryExpression(c *UnaryExpressionContext)

	// ExitPrimary is called when exiting the primary production.
	ExitPrimary(c *PrimaryContext)

	// ExitOperand is called when exiting the operand production.
	ExitOperand(c *OperandContext)

	// ExitMethod_chain is called when exiting the method_chain production.
	ExitMethod_chain(c *Method_chainContext)

	// ExitMethod_or_variable is called when exiting the method_or_variable production.
	ExitMethod_or_variable(c *Method_or_variableContext)

	// ExitMethod_invocation is called when exiting the method_invocation production.
	ExitMethod_invocation(c *Method_invocationContext)

	// ExitVariable is called when exiting the variable production.
	ExitVariable(c *VariableContext)

	// ExitPredicate_invocation is called when exiting the predicate_invocation production.
	ExitPredicate_invocation(c *Predicate_invocationContext)

	// ExitArgument_list is called when exiting the argument_list production.
	ExitArgument_list(c *Argument_listContext)

	// ExitArgument is called when exiting the argument production.
	ExitArgument(c *ArgumentContext)

	// ExitComparator is called when exiting the comparator production.
	ExitComparator(c *ComparatorContext)

	// ExitValue is called when exiting the value production.
	ExitValue(c *ValueContext)

	// ExitValue_list is called when exiting the value_list production.
	ExitValue_list(c *Value_listContext)

	// ExitSelect_clause is called when exiting the select_clause production.
	ExitSelect_clause(c *Select_clauseContext)

	// ExitSelect_expression is called when exiting the select_expression production.
	ExitSelect_expression(c *Select_expressionContext)
}

QueryListener is a complete listener for a parse tree produced by QueryParser.

type QueryParser

type QueryParser struct {
	*antlr.BaseParser
}

func NewQueryParser

func NewQueryParser(input antlr.TokenStream) *QueryParser

NewQueryParser produces a new parser instance for the optional input antlr.TokenStream.

func (*QueryParser) AdditiveExpression

func (p *QueryParser) AdditiveExpression() (localctx IAdditiveExpressionContext)

func (*QueryParser) Alias

func (p *QueryParser) Alias() (localctx IAliasContext)

func (*QueryParser) AndExpression

func (p *QueryParser) AndExpression() (localctx IAndExpressionContext)

func (*QueryParser) Argument

func (p *QueryParser) Argument() (localctx IArgumentContext)

func (*QueryParser) Argument_list

func (p *QueryParser) Argument_list() (localctx IArgument_listContext)

func (*QueryParser) Comparator

func (p *QueryParser) Comparator() (localctx IComparatorContext)

func (*QueryParser) Entity

func (p *QueryParser) Entity() (localctx IEntityContext)

func (*QueryParser) EqualityExpression

func (p *QueryParser) EqualityExpression() (localctx IEqualityExpressionContext)

func (*QueryParser) Expression

func (p *QueryParser) Expression() (localctx IExpressionContext)

func (*QueryParser) Method_chain

func (p *QueryParser) Method_chain() (localctx IMethod_chainContext)

func (*QueryParser) Method_invocation

func (p *QueryParser) Method_invocation() (localctx IMethod_invocationContext)

func (*QueryParser) Method_or_variable

func (p *QueryParser) Method_or_variable() (localctx IMethod_or_variableContext)

func (*QueryParser) MultiplicativeExpression

func (p *QueryParser) MultiplicativeExpression() (localctx IMultiplicativeExpressionContext)

func (*QueryParser) Operand

func (p *QueryParser) Operand() (localctx IOperandContext)

func (*QueryParser) OrExpression

func (p *QueryParser) OrExpression() (localctx IOrExpressionContext)

func (*QueryParser) Parameter

func (p *QueryParser) Parameter() (localctx IParameterContext)

func (*QueryParser) Parameter_list

func (p *QueryParser) Parameter_list() (localctx IParameter_listContext)

func (*QueryParser) Predicate_declaration

func (p *QueryParser) Predicate_declaration() (localctx IPredicate_declarationContext)

func (*QueryParser) Predicate_declarations

func (p *QueryParser) Predicate_declarations() (localctx IPredicate_declarationsContext)

func (*QueryParser) Predicate_invocation

func (p *QueryParser) Predicate_invocation() (localctx IPredicate_invocationContext)

func (*QueryParser) Predicate_name

func (p *QueryParser) Predicate_name() (localctx IPredicate_nameContext)

func (*QueryParser) Primary

func (p *QueryParser) Primary() (localctx IPrimaryContext)

func (*QueryParser) Query

func (p *QueryParser) Query() (localctx IQueryContext)

func (*QueryParser) RelationalExpression

func (p *QueryParser) RelationalExpression() (localctx IRelationalExpressionContext)

func (*QueryParser) Select_clause

func (p *QueryParser) Select_clause() (localctx ISelect_clauseContext)

func (*QueryParser) Select_expression

func (p *QueryParser) Select_expression() (localctx ISelect_expressionContext)

func (*QueryParser) Select_item

func (p *QueryParser) Select_item() (localctx ISelect_itemContext)

func (*QueryParser) Select_list

func (p *QueryParser) Select_list() (localctx ISelect_listContext)

func (*QueryParser) Type_

func (p *QueryParser) Type_() (localctx ITypeContext)

func (*QueryParser) UnaryExpression

func (p *QueryParser) UnaryExpression() (localctx IUnaryExpressionContext)

func (*QueryParser) Value

func (p *QueryParser) Value() (localctx IValueContext)

func (*QueryParser) Value_list

func (p *QueryParser) Value_list() (localctx IValue_listContext)

func (*QueryParser) Variable

func (p *QueryParser) Variable() (localctx IVariableContext)

type RelationalExpressionContext

type RelationalExpressionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyRelationalExpressionContext

func NewEmptyRelationalExpressionContext() *RelationalExpressionContext

func NewRelationalExpressionContext

func NewRelationalExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RelationalExpressionContext

func (*RelationalExpressionContext) AdditiveExpression

func (*RelationalExpressionContext) AllAdditiveExpression

func (s *RelationalExpressionContext) AllAdditiveExpression() []IAdditiveExpressionContext

func (*RelationalExpressionContext) EnterRule

func (s *RelationalExpressionContext) EnterRule(listener antlr.ParseTreeListener)

func (*RelationalExpressionContext) ExitRule

func (s *RelationalExpressionContext) ExitRule(listener antlr.ParseTreeListener)

func (*RelationalExpressionContext) GetParser

func (s *RelationalExpressionContext) GetParser() antlr.Parser

func (*RelationalExpressionContext) GetRuleContext

func (s *RelationalExpressionContext) GetRuleContext() antlr.RuleContext

func (*RelationalExpressionContext) IsRelationalExpressionContext

func (*RelationalExpressionContext) IsRelationalExpressionContext()

func (*RelationalExpressionContext) ToStringTree

func (s *RelationalExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type SelectList

type SelectList struct {
	Entity string
	Alias  string
}

type SelectOutput

type SelectOutput struct {
	SelectEntity string
	Type         string
}

type Select_clauseContext

type Select_clauseContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptySelect_clauseContext

func NewEmptySelect_clauseContext() *Select_clauseContext

func NewSelect_clauseContext

func NewSelect_clauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Select_clauseContext

func (*Select_clauseContext) AllSelect_expression

func (s *Select_clauseContext) AllSelect_expression() []ISelect_expressionContext

func (*Select_clauseContext) EnterRule

func (s *Select_clauseContext) EnterRule(listener antlr.ParseTreeListener)

func (*Select_clauseContext) ExitRule

func (s *Select_clauseContext) ExitRule(listener antlr.ParseTreeListener)

func (*Select_clauseContext) GetParser

func (s *Select_clauseContext) GetParser() antlr.Parser

func (*Select_clauseContext) GetRuleContext

func (s *Select_clauseContext) GetRuleContext() antlr.RuleContext

func (*Select_clauseContext) IsSelect_clauseContext

func (*Select_clauseContext) IsSelect_clauseContext()

func (*Select_clauseContext) Select_expression

func (s *Select_clauseContext) Select_expression(i int) ISelect_expressionContext

func (*Select_clauseContext) ToStringTree

func (s *Select_clauseContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Select_expressionContext

type Select_expressionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptySelect_expressionContext

func NewEmptySelect_expressionContext() *Select_expressionContext

func NewSelect_expressionContext

func NewSelect_expressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Select_expressionContext

func (*Select_expressionContext) EnterRule

func (s *Select_expressionContext) EnterRule(listener antlr.ParseTreeListener)

func (*Select_expressionContext) ExitRule

func (s *Select_expressionContext) ExitRule(listener antlr.ParseTreeListener)

func (*Select_expressionContext) GetParser

func (s *Select_expressionContext) GetParser() antlr.Parser

func (*Select_expressionContext) GetRuleContext

func (s *Select_expressionContext) GetRuleContext() antlr.RuleContext

func (*Select_expressionContext) IsSelect_expressionContext

func (*Select_expressionContext) IsSelect_expressionContext()

func (*Select_expressionContext) Method_chain

func (*Select_expressionContext) STRING

func (s *Select_expressionContext) STRING() antlr.TerminalNode

func (*Select_expressionContext) ToStringTree

func (s *Select_expressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*Select_expressionContext) Variable

type Select_itemContext

type Select_itemContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptySelect_itemContext

func NewEmptySelect_itemContext() *Select_itemContext

func NewSelect_itemContext

func NewSelect_itemContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Select_itemContext

func (*Select_itemContext) AS

func (s *Select_itemContext) AS() antlr.TerminalNode

func (*Select_itemContext) Alias

func (s *Select_itemContext) Alias() IAliasContext

func (*Select_itemContext) EnterRule

func (s *Select_itemContext) EnterRule(listener antlr.ParseTreeListener)

func (*Select_itemContext) Entity

func (s *Select_itemContext) Entity() IEntityContext

func (*Select_itemContext) ExitRule

func (s *Select_itemContext) ExitRule(listener antlr.ParseTreeListener)

func (*Select_itemContext) GetParser

func (s *Select_itemContext) GetParser() antlr.Parser

func (*Select_itemContext) GetRuleContext

func (s *Select_itemContext) GetRuleContext() antlr.RuleContext

func (*Select_itemContext) IsSelect_itemContext

func (*Select_itemContext) IsSelect_itemContext()

func (*Select_itemContext) ToStringTree

func (s *Select_itemContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Select_listContext

type Select_listContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptySelect_listContext

func NewEmptySelect_listContext() *Select_listContext

func NewSelect_listContext

func NewSelect_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Select_listContext

func (*Select_listContext) AllSelect_item

func (s *Select_listContext) AllSelect_item() []ISelect_itemContext

func (*Select_listContext) EnterRule

func (s *Select_listContext) EnterRule(listener antlr.ParseTreeListener)

func (*Select_listContext) ExitRule

func (s *Select_listContext) ExitRule(listener antlr.ParseTreeListener)

func (*Select_listContext) GetParser

func (s *Select_listContext) GetParser() antlr.Parser

func (*Select_listContext) GetRuleContext

func (s *Select_listContext) GetRuleContext() antlr.RuleContext

func (*Select_listContext) IsSelect_listContext

func (*Select_listContext) IsSelect_listContext()

func (*Select_listContext) Select_item

func (s *Select_listContext) Select_item(i int) ISelect_itemContext

func (*Select_listContext) ToStringTree

func (s *Select_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type State

type State struct {
	// contains filtered or unexported fields
}

type TypeContext

type TypeContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyTypeContext

func NewEmptyTypeContext() *TypeContext

func NewTypeContext

func NewTypeContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TypeContext

func (*TypeContext) EnterRule

func (s *TypeContext) EnterRule(listener antlr.ParseTreeListener)

func (*TypeContext) ExitRule

func (s *TypeContext) ExitRule(listener antlr.ParseTreeListener)

func (*TypeContext) GetParser

func (s *TypeContext) GetParser() antlr.Parser

func (*TypeContext) GetRuleContext

func (s *TypeContext) GetRuleContext() antlr.RuleContext

func (*TypeContext) IDENTIFIER

func (s *TypeContext) IDENTIFIER() antlr.TerminalNode

func (*TypeContext) IsTypeContext

func (*TypeContext) IsTypeContext()

func (*TypeContext) ToStringTree

func (s *TypeContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type UnaryExpressionContext

type UnaryExpressionContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyUnaryExpressionContext

func NewEmptyUnaryExpressionContext() *UnaryExpressionContext

func NewUnaryExpressionContext

func NewUnaryExpressionContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *UnaryExpressionContext

func (*UnaryExpressionContext) EnterRule

func (s *UnaryExpressionContext) EnterRule(listener antlr.ParseTreeListener)

func (*UnaryExpressionContext) ExitRule

func (s *UnaryExpressionContext) ExitRule(listener antlr.ParseTreeListener)

func (*UnaryExpressionContext) GetParser

func (s *UnaryExpressionContext) GetParser() antlr.Parser

func (*UnaryExpressionContext) GetRuleContext

func (s *UnaryExpressionContext) GetRuleContext() antlr.RuleContext

func (*UnaryExpressionContext) IsUnaryExpressionContext

func (*UnaryExpressionContext) IsUnaryExpressionContext()

func (*UnaryExpressionContext) Primary

func (*UnaryExpressionContext) ToStringTree

func (s *UnaryExpressionContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*UnaryExpressionContext) UnaryExpression

func (s *UnaryExpressionContext) UnaryExpression() IUnaryExpressionContext

type ValueContext

type ValueContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyValueContext

func NewEmptyValueContext() *ValueContext

func NewValueContext

func NewValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ValueContext

func (*ValueContext) EnterRule

func (s *ValueContext) EnterRule(listener antlr.ParseTreeListener)

func (*ValueContext) ExitRule

func (s *ValueContext) ExitRule(listener antlr.ParseTreeListener)

func (*ValueContext) GetParser

func (s *ValueContext) GetParser() antlr.Parser

func (*ValueContext) GetRuleContext

func (s *ValueContext) GetRuleContext() antlr.RuleContext

func (*ValueContext) IsValueContext

func (*ValueContext) IsValueContext()

func (*ValueContext) NUMBER

func (s *ValueContext) NUMBER() antlr.TerminalNode

func (*ValueContext) STRING

func (s *ValueContext) STRING() antlr.TerminalNode

func (*ValueContext) STRING_WITH_WILDCARD

func (s *ValueContext) STRING_WITH_WILDCARD() antlr.TerminalNode

func (*ValueContext) ToStringTree

func (s *ValueContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

type Value_listContext

type Value_listContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyValue_listContext

func NewEmptyValue_listContext() *Value_listContext

func NewValue_listContext

func NewValue_listContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Value_listContext

func (*Value_listContext) AllValue

func (s *Value_listContext) AllValue() []IValueContext

func (*Value_listContext) EnterRule

func (s *Value_listContext) EnterRule(listener antlr.ParseTreeListener)

func (*Value_listContext) ExitRule

func (s *Value_listContext) ExitRule(listener antlr.ParseTreeListener)

func (*Value_listContext) GetParser

func (s *Value_listContext) GetParser() antlr.Parser

func (*Value_listContext) GetRuleContext

func (s *Value_listContext) GetRuleContext() antlr.RuleContext

func (*Value_listContext) IsValue_listContext

func (*Value_listContext) IsValue_listContext()

func (*Value_listContext) ToStringTree

func (s *Value_listContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

func (*Value_listContext) Value

func (s *Value_listContext) Value(i int) IValueContext

type VariableContext

type VariableContext struct {
	antlr.BaseParserRuleContext
	// contains filtered or unexported fields
}

func NewEmptyVariableContext

func NewEmptyVariableContext() *VariableContext

func NewVariableContext

func NewVariableContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *VariableContext

func (*VariableContext) EnterRule

func (s *VariableContext) EnterRule(listener antlr.ParseTreeListener)

func (*VariableContext) ExitRule

func (s *VariableContext) ExitRule(listener antlr.ParseTreeListener)

func (*VariableContext) GetParser

func (s *VariableContext) GetParser() antlr.Parser

func (*VariableContext) GetRuleContext

func (s *VariableContext) GetRuleContext() antlr.RuleContext

func (*VariableContext) IDENTIFIER

func (s *VariableContext) IDENTIFIER() antlr.TerminalNode

func (*VariableContext) IsVariableContext

func (*VariableContext) IsVariableContext()

func (*VariableContext) ToStringTree

func (s *VariableContext) ToStringTree(ruleNames []string, recog antlr.Recognizer) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL