gen

package
v1.11.2 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueryLanguageLexerAND                      = 1
	QueryLanguageLexerOR                       = 2
	QueryLanguageLexerNOT                      = 3
	QueryLanguageLexerIS                       = 4
	QueryLanguageLexerIN                       = 5
	QueryLanguageLexerPRESENT                  = 6
	QueryLanguageLexerCOUNT                    = 7
	QueryLanguageLexerLPAREN                   = 8
	QueryLanguageLexerRPAREN                   = 9
	QueryLanguageLexerCOMMA                    = 10
	QueryLanguageLexerOP_EQUAL                 = 11
	QueryLanguageLexerOP_NOT_EQUAL             = 12
	QueryLanguageLexerOP_EQUAL_IGNORE_CASE     = 13
	QueryLanguageLexerOP_NOT_EQUAL_IGNORE_CASE = 14
	QueryLanguageLexerOP_TILDE                 = 15
	QueryLanguageLexerOP_NOT_TILDE             = 16
	QueryLanguageLexerOP_TILDE_IGNORE_CASE     = 17
	QueryLanguageLexerOP_NOT_TILDE_IGNORE_CASE = 18
	QueryLanguageLexerOP_GREATER_THAN          = 19
	QueryLanguageLexerOP_GREATER_THAN_EQUAL    = 20
	QueryLanguageLexerOP_LESS_THAN             = 21
	QueryLanguageLexerOP_LESS_THAN_EQUAL       = 22
	QueryLanguageLexerINTEGER                  = 23
	QueryLanguageLexerQUOTED                   = 24
	QueryLanguageLexerVARIABLE                 = 25
	QueryLanguageLexerPLACEHOLDER              = 26
	QueryLanguageLexerTERM                     = 27
	QueryLanguageLexerWHITESPACE               = 28
)

QueryLanguageLexer tokens.

View Source
const (
	QueryLanguageParserEOF                      = antlr.TokenEOF
	QueryLanguageParserAND                      = 1
	QueryLanguageParserOR                       = 2
	QueryLanguageParserNOT                      = 3
	QueryLanguageParserIS                       = 4
	QueryLanguageParserIN                       = 5
	QueryLanguageParserPRESENT                  = 6
	QueryLanguageParserCOUNT                    = 7
	QueryLanguageParserLPAREN                   = 8
	QueryLanguageParserRPAREN                   = 9
	QueryLanguageParserCOMMA                    = 10
	QueryLanguageParserOP_EQUAL                 = 11
	QueryLanguageParserOP_NOT_EQUAL             = 12
	QueryLanguageParserOP_EQUAL_IGNORE_CASE     = 13
	QueryLanguageParserOP_NOT_EQUAL_IGNORE_CASE = 14
	QueryLanguageParserOP_TILDE                 = 15
	QueryLanguageParserOP_NOT_TILDE             = 16
	QueryLanguageParserOP_TILDE_IGNORE_CASE     = 17
	QueryLanguageParserOP_NOT_TILDE_IGNORE_CASE = 18
	QueryLanguageParserOP_GREATER_THAN          = 19
	QueryLanguageParserOP_GREATER_THAN_EQUAL    = 20
	QueryLanguageParserOP_LESS_THAN             = 21
	QueryLanguageParserOP_LESS_THAN_EQUAL       = 22
	QueryLanguageParserINTEGER                  = 23
	QueryLanguageParserQUOTED                   = 24
	QueryLanguageParserVARIABLE                 = 25
	QueryLanguageParserPLACEHOLDER              = 26
	QueryLanguageParserTERM                     = 27
	QueryLanguageParserWHITESPACE               = 28
)

QueryLanguageParser tokens.

View Source
const (
	QueryLanguageParserRULE_topLevelQuery   = 0
	QueryLanguageParserRULE_query           = 1
	QueryLanguageParserRULE_clause          = 2
	QueryLanguageParserRULE_isPresentClause = 3
	QueryLanguageParserRULE_inClause        = 4
	QueryLanguageParserRULE_compareClause   = 5
	QueryLanguageParserRULE_countClause     = 6
	QueryLanguageParserRULE_valuelist       = 7
	QueryLanguageParserRULE_value           = 8
	QueryLanguageParserRULE_fieldName       = 9
	QueryLanguageParserRULE_int_value       = 10
)

QueryLanguageParser rules.

Variables

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

Functions

func InitEmptyClauseContext

func InitEmptyClauseContext(p *ClauseContext)

func InitEmptyCompareClauseContext

func InitEmptyCompareClauseContext(p *CompareClauseContext)

func InitEmptyCountClauseContext

func InitEmptyCountClauseContext(p *CountClauseContext)

func InitEmptyFieldNameContext

func InitEmptyFieldNameContext(p *FieldNameContext)

func InitEmptyInClauseContext

func InitEmptyInClauseContext(p *InClauseContext)

func InitEmptyInt_valueContext

func InitEmptyInt_valueContext(p *Int_valueContext)

func InitEmptyIsPresentClauseContext

func InitEmptyIsPresentClauseContext(p *IsPresentClauseContext)

func InitEmptyQueryContext

func InitEmptyQueryContext(p *QueryContext)

func InitEmptyTopLevelQueryContext

func InitEmptyTopLevelQueryContext(p *TopLevelQueryContext)

func InitEmptyValueContext

func InitEmptyValueContext(p *ValueContext)

func InitEmptyValuelistContext

func InitEmptyValuelistContext(p *ValuelistContext)

func QueryLanguageLexerInit

func QueryLanguageLexerInit()

QueryLanguageLexerInit initializes any static state used to implement QueryLanguageLexer. By default the static state used to implement the lexer is lazily initialized during the first call to NewQueryLanguageLexer(). You can call this function if you wish to initialize the static state ahead of time.

func QueryLanguageParserInit

func QueryLanguageParserInit()

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

Types

type BaseQueryLanguageParserVisitor

type BaseQueryLanguageParserVisitor struct {
	*antlr.BaseParseTreeVisitor
}

func (*BaseQueryLanguageParserVisitor) VisitClause

func (v *BaseQueryLanguageParserVisitor) VisitClause(ctx *ClauseContext) interface{}

func (*BaseQueryLanguageParserVisitor) VisitCompareClause

func (v *BaseQueryLanguageParserVisitor) VisitCompareClause(ctx *CompareClauseContext) interface{}

func (*BaseQueryLanguageParserVisitor) VisitCountClause

func (v *BaseQueryLanguageParserVisitor) VisitCountClause(ctx *CountClauseContext) interface{}

func (*BaseQueryLanguageParserVisitor) VisitFieldName

func (v *BaseQueryLanguageParserVisitor) VisitFieldName(ctx *FieldNameContext) interface{}

func (*BaseQueryLanguageParserVisitor) VisitInClause

func (v *BaseQueryLanguageParserVisitor) VisitInClause(ctx *InClauseContext) interface{}

func (*BaseQueryLanguageParserVisitor) VisitInt_value

func (v *BaseQueryLanguageParserVisitor) VisitInt_value(ctx *Int_valueContext) interface{}

func (*BaseQueryLanguageParserVisitor) VisitIsPresentClause

func (v *BaseQueryLanguageParserVisitor) VisitIsPresentClause(ctx *IsPresentClauseContext) interface{}

func (*BaseQueryLanguageParserVisitor) VisitQuery

func (v *BaseQueryLanguageParserVisitor) VisitQuery(ctx *QueryContext) interface{}

func (*BaseQueryLanguageParserVisitor) VisitTopLevelQuery

func (v *BaseQueryLanguageParserVisitor) VisitTopLevelQuery(ctx *TopLevelQueryContext) interface{}

func (*BaseQueryLanguageParserVisitor) VisitValue

func (v *BaseQueryLanguageParserVisitor) VisitValue(ctx *ValueContext) interface{}

func (*BaseQueryLanguageParserVisitor) VisitValuelist

func (v *BaseQueryLanguageParserVisitor) VisitValuelist(ctx *ValuelistContext) interface{}

type ClauseContext

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

func NewClauseContext

func NewClauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ClauseContext

func NewEmptyClauseContext

func NewEmptyClauseContext() *ClauseContext

func (*ClauseContext) Accept

func (s *ClauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ClauseContext) CompareClause

func (s *ClauseContext) CompareClause() ICompareClauseContext

func (*ClauseContext) CountClause

func (s *ClauseContext) CountClause() ICountClauseContext

func (*ClauseContext) GetParser

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

func (*ClauseContext) GetRuleContext

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

func (*ClauseContext) InClause

func (s *ClauseContext) InClause() IInClauseContext

func (*ClauseContext) IsClauseContext

func (*ClauseContext) IsClauseContext()

func (*ClauseContext) IsPresentClause

func (s *ClauseContext) IsPresentClause() IIsPresentClauseContext

func (*ClauseContext) ToStringTree

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

type CompareClauseContext

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

func NewCompareClauseContext

func NewCompareClauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CompareClauseContext

func NewEmptyCompareClauseContext

func NewEmptyCompareClauseContext() *CompareClauseContext

func (*CompareClauseContext) Accept

func (s *CompareClauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*CompareClauseContext) FieldName

func (s *CompareClauseContext) FieldName() IFieldNameContext

func (*CompareClauseContext) GetOp

func (s *CompareClauseContext) GetOp() antlr.Token

func (*CompareClauseContext) GetParser

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

func (*CompareClauseContext) GetRuleContext

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

func (*CompareClauseContext) IsCompareClauseContext

func (*CompareClauseContext) IsCompareClauseContext()

func (*CompareClauseContext) OP_EQUAL

func (s *CompareClauseContext) OP_EQUAL() antlr.TerminalNode

func (*CompareClauseContext) OP_EQUAL_IGNORE_CASE

func (s *CompareClauseContext) OP_EQUAL_IGNORE_CASE() antlr.TerminalNode

func (*CompareClauseContext) OP_NOT_EQUAL

func (s *CompareClauseContext) OP_NOT_EQUAL() antlr.TerminalNode

func (*CompareClauseContext) OP_NOT_EQUAL_IGNORE_CASE

func (s *CompareClauseContext) OP_NOT_EQUAL_IGNORE_CASE() antlr.TerminalNode

func (*CompareClauseContext) OP_NOT_TILDE

func (s *CompareClauseContext) OP_NOT_TILDE() antlr.TerminalNode

func (*CompareClauseContext) OP_NOT_TILDE_IGNORE_CASE

func (s *CompareClauseContext) OP_NOT_TILDE_IGNORE_CASE() antlr.TerminalNode

func (*CompareClauseContext) OP_TILDE

func (s *CompareClauseContext) OP_TILDE() antlr.TerminalNode

func (*CompareClauseContext) OP_TILDE_IGNORE_CASE

func (s *CompareClauseContext) OP_TILDE_IGNORE_CASE() antlr.TerminalNode

func (*CompareClauseContext) SetOp

func (s *CompareClauseContext) SetOp(v antlr.Token)

func (*CompareClauseContext) ToStringTree

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

func (*CompareClauseContext) Value

type CountClauseContext

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

func NewCountClauseContext

func NewCountClauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *CountClauseContext

func NewEmptyCountClauseContext

func NewEmptyCountClauseContext() *CountClauseContext

func (*CountClauseContext) Accept

func (s *CountClauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*CountClauseContext) COUNT

func (*CountClauseContext) FieldName

func (s *CountClauseContext) FieldName() IFieldNameContext

func (*CountClauseContext) GetOp

func (s *CountClauseContext) GetOp() antlr.Token

func (*CountClauseContext) GetParser

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

func (*CountClauseContext) GetRuleContext

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

func (*CountClauseContext) Int_value

func (s *CountClauseContext) Int_value() IInt_valueContext

func (*CountClauseContext) IsCountClauseContext

func (*CountClauseContext) IsCountClauseContext()

func (*CountClauseContext) LPAREN

func (*CountClauseContext) OP_EQUAL

func (s *CountClauseContext) OP_EQUAL() antlr.TerminalNode

func (*CountClauseContext) OP_GREATER_THAN

func (s *CountClauseContext) OP_GREATER_THAN() antlr.TerminalNode

func (*CountClauseContext) OP_GREATER_THAN_EQUAL

func (s *CountClauseContext) OP_GREATER_THAN_EQUAL() antlr.TerminalNode

func (*CountClauseContext) OP_LESS_THAN

func (s *CountClauseContext) OP_LESS_THAN() antlr.TerminalNode

func (*CountClauseContext) OP_LESS_THAN_EQUAL

func (s *CountClauseContext) OP_LESS_THAN_EQUAL() antlr.TerminalNode

func (*CountClauseContext) OP_NOT_EQUAL

func (s *CountClauseContext) OP_NOT_EQUAL() antlr.TerminalNode

func (*CountClauseContext) RPAREN

func (*CountClauseContext) SetOp

func (s *CountClauseContext) SetOp(v antlr.Token)

func (*CountClauseContext) ToStringTree

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

type FieldNameContext

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

func NewEmptyFieldNameContext

func NewEmptyFieldNameContext() *FieldNameContext

func NewFieldNameContext

func NewFieldNameContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *FieldNameContext

func (*FieldNameContext) Accept

func (s *FieldNameContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*FieldNameContext) GetParser

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

func (*FieldNameContext) GetRuleContext

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

func (*FieldNameContext) IsFieldNameContext

func (*FieldNameContext) IsFieldNameContext()

func (*FieldNameContext) QUOTED

func (s *FieldNameContext) QUOTED() antlr.TerminalNode

func (*FieldNameContext) TERM

func (*FieldNameContext) ToStringTree

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

type IClauseContext

type IClauseContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	IsPresentClause() IIsPresentClauseContext
	InClause() IInClauseContext
	CompareClause() ICompareClauseContext
	CountClause() ICountClauseContext

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

IClauseContext is an interface to support dynamic dispatch.

type ICompareClauseContext

type ICompareClauseContext interface {
	antlr.ParserRuleContext

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

	// GetOp returns the op token.
	GetOp() antlr.Token

	// SetOp sets the op token.
	SetOp(antlr.Token)

	// Getter signatures
	FieldName() IFieldNameContext
	Value() IValueContext
	OP_TILDE() antlr.TerminalNode
	OP_NOT_TILDE() antlr.TerminalNode
	OP_EQUAL() antlr.TerminalNode
	OP_NOT_EQUAL() antlr.TerminalNode
	OP_TILDE_IGNORE_CASE() antlr.TerminalNode
	OP_NOT_TILDE_IGNORE_CASE() antlr.TerminalNode
	OP_EQUAL_IGNORE_CASE() antlr.TerminalNode
	OP_NOT_EQUAL_IGNORE_CASE() antlr.TerminalNode

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

ICompareClauseContext is an interface to support dynamic dispatch.

type ICountClauseContext

type ICountClauseContext interface {
	antlr.ParserRuleContext

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

	// GetOp returns the op token.
	GetOp() antlr.Token

	// SetOp sets the op token.
	SetOp(antlr.Token)

	// Getter signatures
	COUNT() antlr.TerminalNode
	LPAREN() antlr.TerminalNode
	FieldName() IFieldNameContext
	RPAREN() antlr.TerminalNode
	Int_value() IInt_valueContext
	OP_EQUAL() antlr.TerminalNode
	OP_NOT_EQUAL() antlr.TerminalNode
	OP_GREATER_THAN() antlr.TerminalNode
	OP_GREATER_THAN_EQUAL() antlr.TerminalNode
	OP_LESS_THAN() antlr.TerminalNode
	OP_LESS_THAN_EQUAL() antlr.TerminalNode

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

ICountClauseContext is an interface to support dynamic dispatch.

type IFieldNameContext

type IFieldNameContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	QUOTED() antlr.TerminalNode
	TERM() antlr.TerminalNode

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

IFieldNameContext is an interface to support dynamic dispatch.

type IInClauseContext

type IInClauseContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	FieldName() IFieldNameContext
	IN() antlr.TerminalNode
	LPAREN() antlr.TerminalNode
	Valuelist() IValuelistContext
	RPAREN() antlr.TerminalNode
	NOT() antlr.TerminalNode

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

IInClauseContext is an interface to support dynamic dispatch.

type IInt_valueContext

type IInt_valueContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	INTEGER() antlr.TerminalNode

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

IInt_valueContext is an interface to support dynamic dispatch.

type IIsPresentClauseContext

type IIsPresentClauseContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	FieldName() IFieldNameContext
	IS() antlr.TerminalNode
	PRESENT() antlr.TerminalNode
	NOT() antlr.TerminalNode

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

IIsPresentClauseContext is an interface to support dynamic dispatch.

type IQueryContext

type IQueryContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	Clause() IClauseContext
	LPAREN() antlr.TerminalNode
	AllQuery() []IQueryContext
	Query(i int) IQueryContext
	RPAREN() antlr.TerminalNode
	NOT() antlr.TerminalNode
	AND() antlr.TerminalNode
	OR() antlr.TerminalNode

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

IQueryContext is an interface to support dynamic dispatch.

type ITopLevelQueryContext

type ITopLevelQueryContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	EOF() antlr.TerminalNode
	Query() IQueryContext

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

ITopLevelQueryContext is an interface to support dynamic dispatch.

type IValueContext

type IValueContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	QUOTED() antlr.TerminalNode
	TERM() antlr.TerminalNode
	INTEGER() antlr.TerminalNode
	VARIABLE() antlr.TerminalNode
	PLACEHOLDER() antlr.TerminalNode

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

IValueContext is an interface to support dynamic dispatch.

type IValuelistContext

type IValuelistContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AllValue() []IValueContext
	Value(i int) IValueContext
	AllCOMMA() []antlr.TerminalNode
	COMMA(i int) antlr.TerminalNode

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

IValuelistContext is an interface to support dynamic dispatch.

type InClauseContext

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

func NewEmptyInClauseContext

func NewEmptyInClauseContext() *InClauseContext

func NewInClauseContext

func NewInClauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *InClauseContext

func (*InClauseContext) Accept

func (s *InClauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*InClauseContext) FieldName

func (s *InClauseContext) FieldName() IFieldNameContext

func (*InClauseContext) GetParser

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

func (*InClauseContext) GetRuleContext

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

func (*InClauseContext) IN

func (*InClauseContext) IsInClauseContext

func (*InClauseContext) IsInClauseContext()

func (*InClauseContext) LPAREN

func (s *InClauseContext) LPAREN() antlr.TerminalNode

func (*InClauseContext) NOT

func (*InClauseContext) RPAREN

func (s *InClauseContext) RPAREN() antlr.TerminalNode

func (*InClauseContext) ToStringTree

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

func (*InClauseContext) Valuelist

func (s *InClauseContext) Valuelist() IValuelistContext

type Int_valueContext

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

func NewEmptyInt_valueContext

func NewEmptyInt_valueContext() *Int_valueContext

func NewInt_valueContext

func NewInt_valueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *Int_valueContext

func (*Int_valueContext) Accept

func (s *Int_valueContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*Int_valueContext) GetParser

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

func (*Int_valueContext) GetRuleContext

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

func (*Int_valueContext) INTEGER

func (s *Int_valueContext) INTEGER() antlr.TerminalNode

func (*Int_valueContext) IsInt_valueContext

func (*Int_valueContext) IsInt_valueContext()

func (*Int_valueContext) ToStringTree

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

type IsPresentClauseContext

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

func NewEmptyIsPresentClauseContext

func NewEmptyIsPresentClauseContext() *IsPresentClauseContext

func NewIsPresentClauseContext

func NewIsPresentClauseContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IsPresentClauseContext

func (*IsPresentClauseContext) Accept

func (s *IsPresentClauseContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*IsPresentClauseContext) FieldName

func (*IsPresentClauseContext) GetParser

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

func (*IsPresentClauseContext) GetRuleContext

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

func (*IsPresentClauseContext) IS

func (*IsPresentClauseContext) IsIsPresentClauseContext

func (*IsPresentClauseContext) IsIsPresentClauseContext()

func (*IsPresentClauseContext) NOT

func (*IsPresentClauseContext) PRESENT

func (*IsPresentClauseContext) ToStringTree

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

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) AND

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

func (*QueryContext) Accept

func (s *QueryContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*QueryContext) AllQuery

func (s *QueryContext) AllQuery() []IQueryContext

func (*QueryContext) Clause

func (s *QueryContext) Clause() IClauseContext

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) LPAREN

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

func (*QueryContext) NOT

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

func (*QueryContext) OR

func (*QueryContext) Query

func (s *QueryContext) Query(i int) IQueryContext

func (*QueryContext) RPAREN

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

func (*QueryContext) ToStringTree

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

type QueryLanguageLexer

type QueryLanguageLexer struct {
	*antlr.BaseLexer
	// contains filtered or unexported fields
}

func NewQueryLanguageLexer

func NewQueryLanguageLexer(input antlr.CharStream) *QueryLanguageLexer

NewQueryLanguageLexer produces a new lexer instance for the optional input antlr.CharStream.

type QueryLanguageParser

type QueryLanguageParser struct {
	*antlr.BaseParser
}

func NewQueryLanguageParser

func NewQueryLanguageParser(input antlr.TokenStream) *QueryLanguageParser

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

func (*QueryLanguageParser) Clause

func (p *QueryLanguageParser) Clause() (localctx IClauseContext)

func (*QueryLanguageParser) CompareClause

func (p *QueryLanguageParser) CompareClause() (localctx ICompareClauseContext)

func (*QueryLanguageParser) CountClause

func (p *QueryLanguageParser) CountClause() (localctx ICountClauseContext)

func (*QueryLanguageParser) FieldName

func (p *QueryLanguageParser) FieldName() (localctx IFieldNameContext)

func (*QueryLanguageParser) InClause

func (p *QueryLanguageParser) InClause() (localctx IInClauseContext)

func (*QueryLanguageParser) Int_value

func (p *QueryLanguageParser) Int_value() (localctx IInt_valueContext)

func (*QueryLanguageParser) IsPresentClause

func (p *QueryLanguageParser) IsPresentClause() (localctx IIsPresentClauseContext)

func (*QueryLanguageParser) Query

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

func (*QueryLanguageParser) Query_Sempred

func (p *QueryLanguageParser) Query_Sempred(localctx antlr.RuleContext, predIndex int) bool

func (*QueryLanguageParser) Sempred

func (p *QueryLanguageParser) Sempred(localctx antlr.RuleContext, ruleIndex, predIndex int) bool

func (*QueryLanguageParser) TopLevelQuery

func (p *QueryLanguageParser) TopLevelQuery() (localctx ITopLevelQueryContext)

func (*QueryLanguageParser) Value

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

func (*QueryLanguageParser) Valuelist

func (p *QueryLanguageParser) Valuelist() (localctx IValuelistContext)

type QueryLanguageParserVisitor

type QueryLanguageParserVisitor interface {
	antlr.ParseTreeVisitor

	// Visit a parse tree produced by QueryLanguageParser#topLevelQuery.
	VisitTopLevelQuery(ctx *TopLevelQueryContext) interface{}

	// Visit a parse tree produced by QueryLanguageParser#query.
	VisitQuery(ctx *QueryContext) interface{}

	// Visit a parse tree produced by QueryLanguageParser#clause.
	VisitClause(ctx *ClauseContext) interface{}

	// Visit a parse tree produced by QueryLanguageParser#isPresentClause.
	VisitIsPresentClause(ctx *IsPresentClauseContext) interface{}

	// Visit a parse tree produced by QueryLanguageParser#inClause.
	VisitInClause(ctx *InClauseContext) interface{}

	// Visit a parse tree produced by QueryLanguageParser#compareClause.
	VisitCompareClause(ctx *CompareClauseContext) interface{}

	// Visit a parse tree produced by QueryLanguageParser#countClause.
	VisitCountClause(ctx *CountClauseContext) interface{}

	// Visit a parse tree produced by QueryLanguageParser#valuelist.
	VisitValuelist(ctx *ValuelistContext) interface{}

	// Visit a parse tree produced by QueryLanguageParser#value.
	VisitValue(ctx *ValueContext) interface{}

	// Visit a parse tree produced by QueryLanguageParser#fieldName.
	VisitFieldName(ctx *FieldNameContext) interface{}

	// Visit a parse tree produced by QueryLanguageParser#int_value.
	VisitInt_value(ctx *Int_valueContext) interface{}
}

A complete Visitor for a parse tree produced by QueryLanguageParser.

type TopLevelQueryContext

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

func NewEmptyTopLevelQueryContext

func NewEmptyTopLevelQueryContext() *TopLevelQueryContext

func NewTopLevelQueryContext

func NewTopLevelQueryContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *TopLevelQueryContext

func (*TopLevelQueryContext) Accept

func (s *TopLevelQueryContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*TopLevelQueryContext) EOF

func (*TopLevelQueryContext) GetParser

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

func (*TopLevelQueryContext) GetRuleContext

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

func (*TopLevelQueryContext) IsTopLevelQueryContext

func (*TopLevelQueryContext) IsTopLevelQueryContext()

func (*TopLevelQueryContext) Query

func (*TopLevelQueryContext) ToStringTree

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

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) Accept

func (s *ValueContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ValueContext) GetParser

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

func (*ValueContext) GetRuleContext

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

func (*ValueContext) INTEGER

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

func (*ValueContext) IsValueContext

func (*ValueContext) IsValueContext()

func (*ValueContext) PLACEHOLDER

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

func (*ValueContext) QUOTED

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

func (*ValueContext) TERM

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

func (*ValueContext) ToStringTree

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

func (*ValueContext) VARIABLE

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

type ValuelistContext

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

func NewEmptyValuelistContext

func NewEmptyValuelistContext() *ValuelistContext

func NewValuelistContext

func NewValuelistContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ValuelistContext

func (*ValuelistContext) Accept

func (s *ValuelistContext) Accept(visitor antlr.ParseTreeVisitor) interface{}

func (*ValuelistContext) AllCOMMA

func (s *ValuelistContext) AllCOMMA() []antlr.TerminalNode

func (*ValuelistContext) AllValue

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

func (*ValuelistContext) COMMA

func (s *ValuelistContext) COMMA(i int) antlr.TerminalNode

func (*ValuelistContext) GetParser

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

func (*ValuelistContext) GetRuleContext

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

func (*ValuelistContext) IsValuelistContext

func (*ValuelistContext) IsValuelistContext()

func (*ValuelistContext) ToStringTree

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

func (*ValuelistContext) Value

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

Jump to

Keyboard shortcuts

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