parser

package
v1.5.0-regex03 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	JsonQueryLexerT__0             = 1
	JsonQueryLexerT__1             = 2
	JsonQueryLexerT__2             = 3
	JsonQueryLexerT__3             = 4
	JsonQueryLexerT__4             = 5
	JsonQueryLexerT__5             = 6
	JsonQueryLexerT__6             = 7
	JsonQueryLexerNOT              = 8
	JsonQueryLexerLOGICAL_OPERATOR = 9
	JsonQueryLexerBOOLEAN          = 10
	JsonQueryLexerNULL             = 11
	JsonQueryLexerIN               = 12
	JsonQueryLexerEQ               = 13
	JsonQueryLexerNE               = 14
	JsonQueryLexerGT               = 15
	JsonQueryLexerLT               = 16
	JsonQueryLexerGE               = 17
	JsonQueryLexerLE               = 18
	JsonQueryLexerCO               = 19
	JsonQueryLexerSW               = 20
	JsonQueryLexerEW               = 21
	JsonQueryLexerMT               = 22
	JsonQueryLexerATTRNAME         = 23
	JsonQueryLexerVERSION          = 24
	JsonQueryLexerSTRING           = 25
	JsonQueryLexerREGEX            = 26
	JsonQueryLexerIP_ADDRESS       = 27
	JsonQueryLexerIP_CIDR          = 28
	JsonQueryLexerDOUBLE           = 29
	JsonQueryLexerINT              = 30
	JsonQueryLexerEXP              = 31
	JsonQueryLexerNEWLINE          = 32
	JsonQueryLexerCOMMA            = 33
	JsonQueryLexerSP               = 34
)

JsonQueryLexer tokens.

View Source
const (
	JsonQueryParserEOF              = antlr.TokenEOF
	JsonQueryParserT__0             = 1
	JsonQueryParserT__1             = 2
	JsonQueryParserT__2             = 3
	JsonQueryParserT__3             = 4
	JsonQueryParserT__4             = 5
	JsonQueryParserT__5             = 6
	JsonQueryParserT__6             = 7
	JsonQueryParserNOT              = 8
	JsonQueryParserLOGICAL_OPERATOR = 9
	JsonQueryParserBOOLEAN          = 10
	JsonQueryParserNULL             = 11
	JsonQueryParserIN               = 12
	JsonQueryParserEQ               = 13
	JsonQueryParserNE               = 14
	JsonQueryParserGT               = 15
	JsonQueryParserLT               = 16
	JsonQueryParserGE               = 17
	JsonQueryParserLE               = 18
	JsonQueryParserCO               = 19
	JsonQueryParserSW               = 20
	JsonQueryParserEW               = 21
	JsonQueryParserMT               = 22
	JsonQueryParserATTRNAME         = 23
	JsonQueryParserVERSION          = 24
	JsonQueryParserSTRING           = 25
	JsonQueryParserREGEX            = 26
	JsonQueryParserIP_ADDRESS       = 27
	JsonQueryParserIP_CIDR          = 28
	JsonQueryParserDOUBLE           = 29
	JsonQueryParserINT              = 30
	JsonQueryParserEXP              = 31
	JsonQueryParserNEWLINE          = 32
	JsonQueryParserCOMMA            = 33
	JsonQueryParserSP               = 34
)

JsonQueryParser tokens.

View Source
const (
	JsonQueryParserRULE_query            = 0
	JsonQueryParserRULE_attrPath         = 1
	JsonQueryParserRULE_subAttr          = 2
	JsonQueryParserRULE_value            = 3
	JsonQueryParserRULE_regexValue       = 4
	JsonQueryParserRULE_ipValue          = 5
	JsonQueryParserRULE_listIPs          = 6
	JsonQueryParserRULE_subListOfIPs     = 7
	JsonQueryParserRULE_listStrings      = 8
	JsonQueryParserRULE_subListOfStrings = 9
	JsonQueryParserRULE_listDoubles      = 10
	JsonQueryParserRULE_subListOfDoubles = 11
	JsonQueryParserRULE_listInts         = 12
	JsonQueryParserRULE_subListOfInts    = 13
)

JsonQueryParser rules.

Variables

View Source
var (
	ErrInvalidOperation   = errors.New("Invalid operation on the type")
	ErrEvalOperandMissing = errors.New("Operand not present")
)
View Source
var JsonQueryLexerLexerStaticData struct {
	ChannelNames           []string
	ModeNames              []string
	LiteralNames           []string
	SymbolicNames          []string
	RuleNames              []string
	PredictionContextCache *antlr.PredictionContextCache
	// contains filtered or unexported fields
}
View Source
var JsonQueryParserStaticData struct {
	LiteralNames           []string
	SymbolicNames          []string
	RuleNames              []string
	PredictionContextCache *antlr.PredictionContextCache
	// contains filtered or unexported fields
}

Functions

func Evaluate

func Evaluate(rule string, items map[string]interface{}) bool

func InitEmptyAttrPathContext

func InitEmptyAttrPathContext(p *AttrPathContext)

func InitEmptyIpValueContext

func InitEmptyIpValueContext(p *IpValueContext)

func InitEmptyListDoublesContext

func InitEmptyListDoublesContext(p *ListDoublesContext)

func InitEmptyListIPsContext

func InitEmptyListIPsContext(p *ListIPsContext)

func InitEmptyListIntsContext

func InitEmptyListIntsContext(p *ListIntsContext)

func InitEmptyListStringsContext

func InitEmptyListStringsContext(p *ListStringsContext)

func InitEmptyQueryContext

func InitEmptyQueryContext(p *QueryContext)

func InitEmptyRegexValueContext

func InitEmptyRegexValueContext(p *RegexValueContext)

func InitEmptySubAttrContext

func InitEmptySubAttrContext(p *SubAttrContext)

func InitEmptySubListOfDoublesContext

func InitEmptySubListOfDoublesContext(p *SubListOfDoublesContext)

func InitEmptySubListOfIPsContext

func InitEmptySubListOfIPsContext(p *SubListOfIPsContext)

func InitEmptySubListOfIntsContext

func InitEmptySubListOfIntsContext(p *SubListOfIntsContext)

func InitEmptySubListOfStringsContext

func InitEmptySubListOfStringsContext(p *SubListOfStringsContext)

func InitEmptyValueContext

func InitEmptyValueContext(p *ValueContext)

func JsonQueryLexerInit

func JsonQueryLexerInit()

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

func JsonQueryParserInit

func JsonQueryParserInit()

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

Types

type AttrPathContext

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

func NewAttrPathContext

func NewAttrPathContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *AttrPathContext

func NewEmptyAttrPathContext

func NewEmptyAttrPathContext() *AttrPathContext

func (*AttrPathContext) ATTRNAME

func (s *AttrPathContext) ATTRNAME() antlr.TerminalNode

func (*AttrPathContext) Accept

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

func (*AttrPathContext) GetParser

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

func (*AttrPathContext) GetRuleContext

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

func (*AttrPathContext) IsAttrPathContext

func (*AttrPathContext) IsAttrPathContext()

func (*AttrPathContext) SubAttr

func (s *AttrPathContext) SubAttr() ISubAttrContext

func (*AttrPathContext) ToStringTree

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

type BoolOperation

type BoolOperation struct {
	NullOperation
}

func (*BoolOperation) EQ

func (o *BoolOperation) EQ(left Operand, right Operand) (bool, error)

func (*BoolOperation) NE

func (o *BoolOperation) NE(left Operand, right Operand) (bool, error)

type BooleanContext

type BooleanContext struct {
	ValueContext
}

func NewBooleanContext

func NewBooleanContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *BooleanContext

func (*BooleanContext) Accept

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

func (*BooleanContext) BOOLEAN

func (s *BooleanContext) BOOLEAN() antlr.TerminalNode

func (*BooleanContext) GetRuleContext

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

type CompareExpContext

type CompareExpContext struct {
	QueryContext
	// contains filtered or unexported fields
}

func NewCompareExpContext

func NewCompareExpContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *CompareExpContext

func (*CompareExpContext) Accept

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

func (*CompareExpContext) AllSP

func (s *CompareExpContext) AllSP() []antlr.TerminalNode

func (*CompareExpContext) AttrPath

func (s *CompareExpContext) AttrPath() IAttrPathContext

func (*CompareExpContext) CO

func (s *CompareExpContext) CO() antlr.TerminalNode

func (*CompareExpContext) EQ

func (s *CompareExpContext) EQ() antlr.TerminalNode

func (*CompareExpContext) EW

func (s *CompareExpContext) EW() antlr.TerminalNode

func (*CompareExpContext) GE

func (s *CompareExpContext) GE() antlr.TerminalNode

func (*CompareExpContext) GT

func (s *CompareExpContext) GT() antlr.TerminalNode

func (*CompareExpContext) GetOp

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

func (*CompareExpContext) GetRuleContext

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

func (*CompareExpContext) IN

func (s *CompareExpContext) IN() antlr.TerminalNode

func (*CompareExpContext) LE

func (s *CompareExpContext) LE() antlr.TerminalNode

func (*CompareExpContext) LT

func (s *CompareExpContext) LT() antlr.TerminalNode

func (*CompareExpContext) NE

func (s *CompareExpContext) NE() antlr.TerminalNode

func (*CompareExpContext) SP

func (s *CompareExpContext) SP(i int) antlr.TerminalNode

func (*CompareExpContext) SW

func (s *CompareExpContext) SW() antlr.TerminalNode

func (*CompareExpContext) SetOp

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

func (*CompareExpContext) Value

func (s *CompareExpContext) Value() IValueContext

type DoubleContext

type DoubleContext struct {
	ValueContext
}

func NewDoubleContext

func NewDoubleContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *DoubleContext

func (*DoubleContext) Accept

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

func (*DoubleContext) DOUBLE

func (s *DoubleContext) DOUBLE() antlr.TerminalNode

func (*DoubleContext) GetRuleContext

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

type ErrInvalidOperand

type ErrInvalidOperand struct {
	Val interface{}
	// contains filtered or unexported fields
}

func (*ErrInvalidOperand) Error

func (e *ErrInvalidOperand) Error() string

type ErrVals

type ErrVals map[string]interface{}

func (ErrVals) Dupe

func (e ErrVals) Dupe() ErrVals

func (ErrVals) Merge

func (e ErrVals) Merge(vals ErrVals)

type Evaluator

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

func NewEvaluator

func NewEvaluator(rule string) (ret *Evaluator, retErr error)

func (*Evaluator) LastDebugErr

func (e *Evaluator) LastDebugErr() error

func (*Evaluator) Process

func (e *Evaluator) Process(items map[string]interface{}) (ret bool, retErr error)

func (*Evaluator) Reset

func (e *Evaluator) Reset() error

type FloatOperation

type FloatOperation struct {
	NullOperation
}

func (*FloatOperation) EQ

func (o *FloatOperation) EQ(left Operand, right Operand) (bool, error)

func (*FloatOperation) GE

func (o *FloatOperation) GE(left Operand, right Operand) (bool, error)

func (*FloatOperation) GT

func (o *FloatOperation) GT(left Operand, right Operand) (bool, error)

func (*FloatOperation) IN

func (o *FloatOperation) IN(left Operand, right Operand) (bool, error)

func (*FloatOperation) LE

func (o *FloatOperation) LE(left Operand, right Operand) (bool, error)

func (*FloatOperation) LT

func (o *FloatOperation) LT(left Operand, right Operand) (bool, error)

func (*FloatOperation) MT

func (o *FloatOperation) MT(left Operand, right Operand) (bool, error)

func (*FloatOperation) NE

func (o *FloatOperation) NE(left Operand, right Operand) (bool, error)

type IAttrPathContext

type IAttrPathContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	ATTRNAME() antlr.TerminalNode
	SubAttr() ISubAttrContext

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

IAttrPathContext is an interface to support dynamic dispatch.

type IIpValueContext

type IIpValueContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	IP_ADDRESS() antlr.TerminalNode
	IP_CIDR() antlr.TerminalNode

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

IIpValueContext is an interface to support dynamic dispatch.

type IListDoublesContext

type IListDoublesContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	SubListOfDoubles() ISubListOfDoublesContext

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

IListDoublesContext is an interface to support dynamic dispatch.

type IListIPsContext

type IListIPsContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	SubListOfIPs() ISubListOfIPsContext

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

IListIPsContext is an interface to support dynamic dispatch.

type IListIntsContext

type IListIntsContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	SubListOfInts() ISubListOfIntsContext

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

IListIntsContext is an interface to support dynamic dispatch.

type IListStringsContext

type IListStringsContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	SubListOfStrings() ISubListOfStringsContext

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

IListStringsContext is an interface to support dynamic dispatch.

type IPCompareOperation

type IPCompareOperation struct {
	NullOperation
}

func (*IPCompareOperation) EQ

func (o *IPCompareOperation) EQ(left Operand, right Operand) (bool, error)

func (*IPCompareOperation) IN

func (o *IPCompareOperation) IN(left Operand, right Operand) (bool, error)

func (*IPCompareOperation) NE

func (o *IPCompareOperation) NE(left Operand, right Operand) (bool, error)

type IQueryContext

type IQueryContext interface {
	antlr.ParserRuleContext

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

IQueryContext is an interface to support dynamic dispatch.

type IRegexValueContext

type IRegexValueContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	REGEX() antlr.TerminalNode

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

IRegexValueContext is an interface to support dynamic dispatch.

type ISubAttrContext

type ISubAttrContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	AttrPath() IAttrPathContext

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

ISubAttrContext is an interface to support dynamic dispatch.

type ISubListOfDoublesContext

type ISubListOfDoublesContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	DOUBLE() antlr.TerminalNode
	COMMA() antlr.TerminalNode
	SubListOfDoubles() ISubListOfDoublesContext

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

ISubListOfDoublesContext is an interface to support dynamic dispatch.

type ISubListOfIPsContext

type ISubListOfIPsContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	IpValue() IIpValueContext
	COMMA() antlr.TerminalNode
	SubListOfIPs() ISubListOfIPsContext

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

ISubListOfIPsContext is an interface to support dynamic dispatch.

type ISubListOfIntsContext

type ISubListOfIntsContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	INT() antlr.TerminalNode
	COMMA() antlr.TerminalNode
	SubListOfInts() ISubListOfIntsContext

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

ISubListOfIntsContext is an interface to support dynamic dispatch.

type ISubListOfStringsContext

type ISubListOfStringsContext interface {
	antlr.ParserRuleContext

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

	// Getter signatures
	STRING() antlr.TerminalNode
	COMMA() antlr.TerminalNode
	SubListOfStrings() ISubListOfStringsContext

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

ISubListOfStringsContext is an interface to support dynamic dispatch.

type IValueContext

type IValueContext interface {
	antlr.ParserRuleContext

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

IValueContext is an interface to support dynamic dispatch.

type IntOperation

type IntOperation struct {
	NullOperation
}

func (*IntOperation) EQ

func (o *IntOperation) EQ(left Operand, right Operand) (bool, error)

func (*IntOperation) GE

func (o *IntOperation) GE(left Operand, right Operand) (bool, error)

func (*IntOperation) GT

func (o *IntOperation) GT(left Operand, right Operand) (bool, error)

func (*IntOperation) IN

func (o *IntOperation) IN(left Operand, right Operand) (bool, error)

func (*IntOperation) LE

func (o *IntOperation) LE(left Operand, right Operand) (bool, error)

func (*IntOperation) LT

func (o *IntOperation) LT(left Operand, right Operand) (bool, error)

func (*IntOperation) NE

func (o *IntOperation) NE(left Operand, right Operand) (bool, error)

type IpCompareExpContext

type IpCompareExpContext struct {
	QueryContext
	// contains filtered or unexported fields
}

func NewIpCompareExpContext

func NewIpCompareExpContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *IpCompareExpContext

func (*IpCompareExpContext) Accept

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

func (*IpCompareExpContext) AllSP

func (s *IpCompareExpContext) AllSP() []antlr.TerminalNode

func (*IpCompareExpContext) AttrPath

func (s *IpCompareExpContext) AttrPath() IAttrPathContext

func (*IpCompareExpContext) EQ

func (s *IpCompareExpContext) EQ() antlr.TerminalNode

func (*IpCompareExpContext) GetOp

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

func (*IpCompareExpContext) GetRuleContext

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

func (*IpCompareExpContext) IN

func (s *IpCompareExpContext) IN() antlr.TerminalNode

func (*IpCompareExpContext) IpValue

func (s *IpCompareExpContext) IpValue() IIpValueContext

func (*IpCompareExpContext) NE

func (s *IpCompareExpContext) NE() antlr.TerminalNode

func (*IpCompareExpContext) SP

func (s *IpCompareExpContext) SP(i int) antlr.TerminalNode

func (*IpCompareExpContext) SetOp

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

type IpValueContext

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

func NewEmptyIpValueContext

func NewEmptyIpValueContext() *IpValueContext

func NewIpValueContext

func NewIpValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *IpValueContext

func (*IpValueContext) Accept

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

func (*IpValueContext) GetParser

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

func (*IpValueContext) GetRuleContext

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

func (*IpValueContext) IP_ADDRESS

func (s *IpValueContext) IP_ADDRESS() antlr.TerminalNode

func (*IpValueContext) IP_CIDR

func (s *IpValueContext) IP_CIDR() antlr.TerminalNode

func (*IpValueContext) IsIpValueContext

func (*IpValueContext) IsIpValueContext()

func (*IpValueContext) ToStringTree

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

type JsonQueryLexer

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

func NewJsonQueryLexer

func NewJsonQueryLexer(input antlr.CharStream) *JsonQueryLexer

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

type JsonQueryParser

type JsonQueryParser struct {
	*antlr.BaseParser
}

func NewJsonQueryParser

func NewJsonQueryParser(input antlr.TokenStream) *JsonQueryParser

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

func (*JsonQueryParser) AttrPath

func (p *JsonQueryParser) AttrPath() (localctx IAttrPathContext)

func (*JsonQueryParser) IpValue

func (p *JsonQueryParser) IpValue() (localctx IIpValueContext)

func (*JsonQueryParser) ListDoubles

func (p *JsonQueryParser) ListDoubles() (localctx IListDoublesContext)

func (*JsonQueryParser) ListIPs

func (p *JsonQueryParser) ListIPs() (localctx IListIPsContext)

func (*JsonQueryParser) ListInts

func (p *JsonQueryParser) ListInts() (localctx IListIntsContext)

func (*JsonQueryParser) ListStrings

func (p *JsonQueryParser) ListStrings() (localctx IListStringsContext)

func (*JsonQueryParser) Query

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

func (*JsonQueryParser) Query_Sempred

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

func (*JsonQueryParser) RegexValue

func (p *JsonQueryParser) RegexValue() (localctx IRegexValueContext)

func (*JsonQueryParser) Sempred

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

func (*JsonQueryParser) SubAttr

func (p *JsonQueryParser) SubAttr() (localctx ISubAttrContext)

func (*JsonQueryParser) SubListOfDoubles

func (p *JsonQueryParser) SubListOfDoubles() (localctx ISubListOfDoublesContext)

func (*JsonQueryParser) SubListOfIPs

func (p *JsonQueryParser) SubListOfIPs() (localctx ISubListOfIPsContext)

func (*JsonQueryParser) SubListOfInts

func (p *JsonQueryParser) SubListOfInts() (localctx ISubListOfIntsContext)

func (*JsonQueryParser) SubListOfStrings

func (p *JsonQueryParser) SubListOfStrings() (localctx ISubListOfStringsContext)

func (*JsonQueryParser) Value

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

type JsonQueryVisitor

type JsonQueryVisitor interface {
	antlr.ParseTreeVisitor

	// Visit a parse tree produced by JsonQueryParser#compareExp.
	VisitCompareExp(ctx *CompareExpContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#regexExp.
	VisitRegexExp(ctx *RegexExpContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#parenExp.
	VisitParenExp(ctx *ParenExpContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#presentExp.
	VisitPresentExp(ctx *PresentExpContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#ipCompareExp.
	VisitIpCompareExp(ctx *IpCompareExpContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#logicalExp.
	VisitLogicalExp(ctx *LogicalExpContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#attrPath.
	VisitAttrPath(ctx *AttrPathContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#subAttr.
	VisitSubAttr(ctx *SubAttrContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#boolean.
	VisitBoolean(ctx *BooleanContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#null.
	VisitNull(ctx *NullContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#version.
	VisitVersion(ctx *VersionContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#string.
	VisitString(ctx *StringContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#double.
	VisitDouble(ctx *DoubleContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#long.
	VisitLong(ctx *LongContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#listOfInts.
	VisitListOfInts(ctx *ListOfIntsContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#listOfDoubles.
	VisitListOfDoubles(ctx *ListOfDoublesContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#listOfStrings.
	VisitListOfStrings(ctx *ListOfStringsContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#regexValue.
	VisitRegexValue(ctx *RegexValueContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#ipValue.
	VisitIpValue(ctx *IpValueContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#listIPs.
	VisitListIPs(ctx *ListIPsContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#subListOfIPs.
	VisitSubListOfIPs(ctx *SubListOfIPsContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#listStrings.
	VisitListStrings(ctx *ListStringsContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#subListOfStrings.
	VisitSubListOfStrings(ctx *SubListOfStringsContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#listDoubles.
	VisitListDoubles(ctx *ListDoublesContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#subListOfDoubles.
	VisitSubListOfDoubles(ctx *SubListOfDoublesContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#listInts.
	VisitListInts(ctx *ListIntsContext) interface{}

	// Visit a parse tree produced by JsonQueryParser#subListOfInts.
	VisitSubListOfInts(ctx *SubListOfIntsContext) interface{}
}

A complete Visitor for a parse tree produced by JsonQueryParser.

type JsonQueryVisitorImpl

type JsonQueryVisitorImpl struct {
	antlr.ParseTreeVisitor
	// contains filtered or unexported fields
}

func NewJsonQueryVisitorImpl

func NewJsonQueryVisitorImpl(item map[string]interface{}) *JsonQueryVisitorImpl

func (*JsonQueryVisitorImpl) Visit

func (j *JsonQueryVisitorImpl) Visit(tree antlr.ParseTree) interface{}

func (*JsonQueryVisitorImpl) VisitAttrPath

func (j *JsonQueryVisitorImpl) VisitAttrPath(ctx *AttrPathContext) interface{}

func (*JsonQueryVisitorImpl) VisitBoolean

func (j *JsonQueryVisitorImpl) VisitBoolean(ctx *BooleanContext) interface{}

func (*JsonQueryVisitorImpl) VisitCompareExp

func (j *JsonQueryVisitorImpl) VisitCompareExp(ctx *CompareExpContext) interface{}

func (*JsonQueryVisitorImpl) VisitDouble

func (j *JsonQueryVisitorImpl) VisitDouble(ctx *DoubleContext) interface{}

func (*JsonQueryVisitorImpl) VisitIpCompareExp

func (j *JsonQueryVisitorImpl) VisitIpCompareExp(ctx *IpCompareExpContext) interface{}

func (*JsonQueryVisitorImpl) VisitIpValue

func (j *JsonQueryVisitorImpl) VisitIpValue(ctx *IpValueContext) interface{}

func (*JsonQueryVisitorImpl) VisitListDoubles

func (j *JsonQueryVisitorImpl) VisitListDoubles(ctx *ListDoublesContext) interface{}

func (*JsonQueryVisitorImpl) VisitListIPs

func (j *JsonQueryVisitorImpl) VisitListIPs(ctx *ListIPsContext) interface{}

func (*JsonQueryVisitorImpl) VisitListInts

func (j *JsonQueryVisitorImpl) VisitListInts(ctx *ListIntsContext) interface{}

func (*JsonQueryVisitorImpl) VisitListOfDoubles

func (j *JsonQueryVisitorImpl) VisitListOfDoubles(ctx *ListOfDoublesContext) interface{}

func (*JsonQueryVisitorImpl) VisitListOfInts

func (j *JsonQueryVisitorImpl) VisitListOfInts(ctx *ListOfIntsContext) interface{}

func (*JsonQueryVisitorImpl) VisitListOfStrings

func (j *JsonQueryVisitorImpl) VisitListOfStrings(ctx *ListOfStringsContext) interface{}

func (*JsonQueryVisitorImpl) VisitListStrings

func (j *JsonQueryVisitorImpl) VisitListStrings(ctx *ListStringsContext) interface{}

func (*JsonQueryVisitorImpl) VisitLogicalExp

func (j *JsonQueryVisitorImpl) VisitLogicalExp(ctx *LogicalExpContext) interface{}

func (*JsonQueryVisitorImpl) VisitLong

func (j *JsonQueryVisitorImpl) VisitLong(ctx *LongContext) interface{}

func (*JsonQueryVisitorImpl) VisitNull

func (j *JsonQueryVisitorImpl) VisitNull(ctx *NullContext) interface{}

func (*JsonQueryVisitorImpl) VisitParenExp

func (j *JsonQueryVisitorImpl) VisitParenExp(ctx *ParenExpContext) interface{}

func (*JsonQueryVisitorImpl) VisitPresentExp

func (j *JsonQueryVisitorImpl) VisitPresentExp(ctx *PresentExpContext) interface{}

func (*JsonQueryVisitorImpl) VisitRegexExp

func (j *JsonQueryVisitorImpl) VisitRegexExp(ctx *RegexExpContext) interface{}

func (*JsonQueryVisitorImpl) VisitRegexValue

func (j *JsonQueryVisitorImpl) VisitRegexValue(ctx *RegexValueContext) interface{}

func (*JsonQueryVisitorImpl) VisitString

func (j *JsonQueryVisitorImpl) VisitString(ctx *StringContext) interface{}

func (*JsonQueryVisitorImpl) VisitSubAttr

func (j *JsonQueryVisitorImpl) VisitSubAttr(ctx *SubAttrContext) interface{}

func (*JsonQueryVisitorImpl) VisitSubListOfDoubles

func (j *JsonQueryVisitorImpl) VisitSubListOfDoubles(ctx *SubListOfDoublesContext) interface{}

func (*JsonQueryVisitorImpl) VisitSubListOfIPs

func (j *JsonQueryVisitorImpl) VisitSubListOfIPs(ctx *SubListOfIPsContext) interface{}

func (*JsonQueryVisitorImpl) VisitSubListOfInts

func (j *JsonQueryVisitorImpl) VisitSubListOfInts(ctx *SubListOfIntsContext) interface{}

func (*JsonQueryVisitorImpl) VisitSubListOfStrings

func (j *JsonQueryVisitorImpl) VisitSubListOfStrings(ctx *SubListOfStringsContext) interface{}

func (*JsonQueryVisitorImpl) VisitVersion

func (j *JsonQueryVisitorImpl) VisitVersion(ctx *VersionContext) interface{}

type ListDoublesContext

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

func NewEmptyListDoublesContext

func NewEmptyListDoublesContext() *ListDoublesContext

func NewListDoublesContext

func NewListDoublesContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ListDoublesContext

func (*ListDoublesContext) Accept

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

func (*ListDoublesContext) GetParser

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

func (*ListDoublesContext) GetRuleContext

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

func (*ListDoublesContext) IsListDoublesContext

func (*ListDoublesContext) IsListDoublesContext()

func (*ListDoublesContext) SubListOfDoubles

func (s *ListDoublesContext) SubListOfDoubles() ISubListOfDoublesContext

func (*ListDoublesContext) ToStringTree

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

type ListIPsContext

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

func NewEmptyListIPsContext

func NewEmptyListIPsContext() *ListIPsContext

func NewListIPsContext

func NewListIPsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ListIPsContext

func (*ListIPsContext) Accept

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

func (*ListIPsContext) GetParser

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

func (*ListIPsContext) GetRuleContext

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

func (*ListIPsContext) IsListIPsContext

func (*ListIPsContext) IsListIPsContext()

func (*ListIPsContext) SubListOfIPs

func (s *ListIPsContext) SubListOfIPs() ISubListOfIPsContext

func (*ListIPsContext) ToStringTree

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

type ListIntsContext

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

func NewEmptyListIntsContext

func NewEmptyListIntsContext() *ListIntsContext

func NewListIntsContext

func NewListIntsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ListIntsContext

func (*ListIntsContext) Accept

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

func (*ListIntsContext) GetParser

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

func (*ListIntsContext) GetRuleContext

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

func (*ListIntsContext) IsListIntsContext

func (*ListIntsContext) IsListIntsContext()

func (*ListIntsContext) SubListOfInts

func (s *ListIntsContext) SubListOfInts() ISubListOfIntsContext

func (*ListIntsContext) ToStringTree

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

type ListOfDoublesContext

type ListOfDoublesContext struct {
	ValueContext
}

func NewListOfDoublesContext

func NewListOfDoublesContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ListOfDoublesContext

func (*ListOfDoublesContext) Accept

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

func (*ListOfDoublesContext) GetRuleContext

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

func (*ListOfDoublesContext) ListDoubles

func (s *ListOfDoublesContext) ListDoubles() IListDoublesContext

type ListOfIntsContext

type ListOfIntsContext struct {
	ValueContext
}

func NewListOfIntsContext

func NewListOfIntsContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ListOfIntsContext

func (*ListOfIntsContext) Accept

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

func (*ListOfIntsContext) GetRuleContext

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

func (*ListOfIntsContext) ListInts

func (s *ListOfIntsContext) ListInts() IListIntsContext

type ListOfStringsContext

type ListOfStringsContext struct {
	ValueContext
}

func NewListOfStringsContext

func NewListOfStringsContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ListOfStringsContext

func (*ListOfStringsContext) Accept

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

func (*ListOfStringsContext) GetRuleContext

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

func (*ListOfStringsContext) ListStrings

func (s *ListOfStringsContext) ListStrings() IListStringsContext

type ListStringsContext

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

func NewEmptyListStringsContext

func NewEmptyListStringsContext() *ListStringsContext

func NewListStringsContext

func NewListStringsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *ListStringsContext

func (*ListStringsContext) Accept

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

func (*ListStringsContext) GetParser

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

func (*ListStringsContext) GetRuleContext

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

func (*ListStringsContext) IsListStringsContext

func (*ListStringsContext) IsListStringsContext()

func (*ListStringsContext) SubListOfStrings

func (s *ListStringsContext) SubListOfStrings() ISubListOfStringsContext

func (*ListStringsContext) ToStringTree

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

type LogicalExpContext

type LogicalExpContext struct {
	QueryContext
}

func NewLogicalExpContext

func NewLogicalExpContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *LogicalExpContext

func (*LogicalExpContext) Accept

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

func (*LogicalExpContext) AllQuery

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

func (*LogicalExpContext) AllSP

func (s *LogicalExpContext) AllSP() []antlr.TerminalNode

func (*LogicalExpContext) GetRuleContext

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

func (*LogicalExpContext) LOGICAL_OPERATOR

func (s *LogicalExpContext) LOGICAL_OPERATOR() antlr.TerminalNode

func (*LogicalExpContext) Query

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

func (*LogicalExpContext) SP

func (s *LogicalExpContext) SP(i int) antlr.TerminalNode

type LongContext

type LongContext struct {
	ValueContext
}

func NewLongContext

func NewLongContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *LongContext

func (*LongContext) Accept

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

func (*LongContext) EXP

func (s *LongContext) EXP() antlr.TerminalNode

func (*LongContext) GetRuleContext

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

func (*LongContext) INT

func (s *LongContext) INT() antlr.TerminalNode

type NestedError

type NestedError struct {
	Err  error
	Msg  string
	Vals ErrVals
}

func (*NestedError) Error

func (e *NestedError) Error() string

func (*NestedError) Original

func (e *NestedError) Original() error

func (*NestedError) Set

func (e *NestedError) Set(vals ErrVals) *NestedError

type NullContext

type NullContext struct {
	ValueContext
}

func NewNullContext

func NewNullContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *NullContext

func (*NullContext) Accept

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

func (*NullContext) GetRuleContext

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

func (*NullContext) NULL

func (s *NullContext) NULL() antlr.TerminalNode

type NullOperation

type NullOperation struct {
}

func (*NullOperation) CO

func (o *NullOperation) CO(left Operand, right Operand) (bool, error)

func (*NullOperation) EQ

func (o *NullOperation) EQ(left Operand, right Operand) (bool, error)

func (*NullOperation) EW

func (o *NullOperation) EW(left Operand, right Operand) (bool, error)

func (*NullOperation) GE

func (o *NullOperation) GE(left Operand, right Operand) (bool, error)

func (*NullOperation) GT

func (o *NullOperation) GT(left Operand, right Operand) (bool, error)

func (*NullOperation) IN

func (o *NullOperation) IN(left Operand, right Operand) (bool, error)

func (*NullOperation) LE

func (o *NullOperation) LE(left Operand, right Operand) (bool, error)

func (*NullOperation) LT

func (o *NullOperation) LT(left Operand, right Operand) (bool, error)

func (*NullOperation) MT

func (o *NullOperation) MT(left Operand, right Operand) (bool, error)

func (*NullOperation) NE

func (o *NullOperation) NE(left Operand, right Operand) (bool, error)

func (*NullOperation) SW

func (o *NullOperation) SW(left Operand, right Operand) (bool, error)

type Operand

type Operand interface{}

type Operation

type Operation interface {
	EQ(left Operand, right Operand) (bool, error)
	NE(left Operand, right Operand) (bool, error)
	GT(left Operand, right Operand) (bool, error)
	LT(left Operand, right Operand) (bool, error)
	GE(left Operand, right Operand) (bool, error)
	LE(left Operand, right Operand) (bool, error)
	CO(left Operand, right Operand) (bool, error)
	SW(left Operand, right Operand) (bool, error)
	EW(left Operand, right Operand) (bool, error)
	IN(left Operand, right Operand) (bool, error)
	MT(left Operand, right Operand) (bool, error)
}

type ParenExpContext

type ParenExpContext struct {
	QueryContext
}

func NewParenExpContext

func NewParenExpContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *ParenExpContext

func (*ParenExpContext) Accept

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

func (*ParenExpContext) AllSP

func (s *ParenExpContext) AllSP() []antlr.TerminalNode

func (*ParenExpContext) GetRuleContext

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

func (*ParenExpContext) NOT

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

func (*ParenExpContext) Query

func (s *ParenExpContext) Query() IQueryContext

func (*ParenExpContext) SP

func (s *ParenExpContext) SP(i int) antlr.TerminalNode

type PresentExpContext

type PresentExpContext struct {
	QueryContext
}

func NewPresentExpContext

func NewPresentExpContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *PresentExpContext

func (*PresentExpContext) Accept

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

func (*PresentExpContext) AttrPath

func (s *PresentExpContext) AttrPath() IAttrPathContext

func (*PresentExpContext) GetRuleContext

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

func (*PresentExpContext) SP

func (s *PresentExpContext) SP() antlr.TerminalNode

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

func (s *QueryContext) CopyAll(ctx *QueryContext)

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

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

type RegexExpContext

type RegexExpContext struct {
	QueryContext
	// contains filtered or unexported fields
}

func NewRegexExpContext

func NewRegexExpContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *RegexExpContext

func (*RegexExpContext) Accept

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

func (*RegexExpContext) AllSP

func (s *RegexExpContext) AllSP() []antlr.TerminalNode

func (*RegexExpContext) AttrPath

func (s *RegexExpContext) AttrPath() IAttrPathContext

func (*RegexExpContext) GetOp

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

func (*RegexExpContext) GetRuleContext

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

func (*RegexExpContext) MT

func (s *RegexExpContext) MT() antlr.TerminalNode

func (*RegexExpContext) RegexValue

func (s *RegexExpContext) RegexValue() IRegexValueContext

func (*RegexExpContext) SP

func (s *RegexExpContext) SP(i int) antlr.TerminalNode

func (*RegexExpContext) SetOp

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

type RegexOperation

type RegexOperation struct {
	NullOperation
}

func (*RegexOperation) MT

func (o *RegexOperation) MT(left Operand, right Operand) (bool, error)

type RegexValueContext

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

func NewEmptyRegexValueContext

func NewEmptyRegexValueContext() *RegexValueContext

func NewRegexValueContext

func NewRegexValueContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *RegexValueContext

func (*RegexValueContext) Accept

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

func (*RegexValueContext) GetParser

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

func (*RegexValueContext) GetRuleContext

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

func (*RegexValueContext) IsRegexValueContext

func (*RegexValueContext) IsRegexValueContext()

func (*RegexValueContext) REGEX

func (s *RegexValueContext) REGEX() antlr.TerminalNode

func (*RegexValueContext) ToStringTree

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

type StringContext

type StringContext struct {
	ValueContext
}

func NewStringContext

func NewStringContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *StringContext

func (*StringContext) Accept

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

func (*StringContext) GetRuleContext

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

func (*StringContext) STRING

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

type StringOperation

type StringOperation struct {
	NullOperation
}

func (*StringOperation) CO

func (o *StringOperation) CO(left Operand, right Operand) (bool, error)

func (*StringOperation) EQ

func (o *StringOperation) EQ(left Operand, right Operand) (bool, error)

func (*StringOperation) EW

func (o *StringOperation) EW(left Operand, right Operand) (bool, error)

func (*StringOperation) GE

func (o *StringOperation) GE(left Operand, right Operand) (bool, error)

func (*StringOperation) GT

func (o *StringOperation) GT(left Operand, right Operand) (bool, error)

func (*StringOperation) IN

func (o *StringOperation) IN(left Operand, right Operand) (bool, error)

func (*StringOperation) LE

func (o *StringOperation) LE(left Operand, right Operand) (bool, error)

func (*StringOperation) LT

func (o *StringOperation) LT(left Operand, right Operand) (bool, error)

func (*StringOperation) NE

func (o *StringOperation) NE(left Operand, right Operand) (bool, error)

func (*StringOperation) SW

func (o *StringOperation) SW(left Operand, right Operand) (bool, error)

type SubAttrContext

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

func NewEmptySubAttrContext

func NewEmptySubAttrContext() *SubAttrContext

func NewSubAttrContext

func NewSubAttrContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SubAttrContext

func (*SubAttrContext) Accept

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

func (*SubAttrContext) AttrPath

func (s *SubAttrContext) AttrPath() IAttrPathContext

func (*SubAttrContext) GetParser

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

func (*SubAttrContext) GetRuleContext

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

func (*SubAttrContext) IsSubAttrContext

func (*SubAttrContext) IsSubAttrContext()

func (*SubAttrContext) ToStringTree

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

type SubListOfDoublesContext

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

func NewEmptySubListOfDoublesContext

func NewEmptySubListOfDoublesContext() *SubListOfDoublesContext

func NewSubListOfDoublesContext

func NewSubListOfDoublesContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SubListOfDoublesContext

func (*SubListOfDoublesContext) Accept

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

func (*SubListOfDoublesContext) COMMA

func (s *SubListOfDoublesContext) COMMA() antlr.TerminalNode

func (*SubListOfDoublesContext) DOUBLE

func (s *SubListOfDoublesContext) DOUBLE() antlr.TerminalNode

func (*SubListOfDoublesContext) GetParser

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

func (*SubListOfDoublesContext) GetRuleContext

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

func (*SubListOfDoublesContext) IsSubListOfDoublesContext

func (*SubListOfDoublesContext) IsSubListOfDoublesContext()

func (*SubListOfDoublesContext) SubListOfDoubles

func (s *SubListOfDoublesContext) SubListOfDoubles() ISubListOfDoublesContext

func (*SubListOfDoublesContext) ToStringTree

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

type SubListOfIPsContext

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

func NewEmptySubListOfIPsContext

func NewEmptySubListOfIPsContext() *SubListOfIPsContext

func NewSubListOfIPsContext

func NewSubListOfIPsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SubListOfIPsContext

func (*SubListOfIPsContext) Accept

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

func (*SubListOfIPsContext) COMMA

func (s *SubListOfIPsContext) COMMA() antlr.TerminalNode

func (*SubListOfIPsContext) GetParser

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

func (*SubListOfIPsContext) GetRuleContext

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

func (*SubListOfIPsContext) IpValue

func (s *SubListOfIPsContext) IpValue() IIpValueContext

func (*SubListOfIPsContext) IsSubListOfIPsContext

func (*SubListOfIPsContext) IsSubListOfIPsContext()

func (*SubListOfIPsContext) SubListOfIPs

func (s *SubListOfIPsContext) SubListOfIPs() ISubListOfIPsContext

func (*SubListOfIPsContext) ToStringTree

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

type SubListOfIntsContext

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

func NewEmptySubListOfIntsContext

func NewEmptySubListOfIntsContext() *SubListOfIntsContext

func NewSubListOfIntsContext

func NewSubListOfIntsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SubListOfIntsContext

func (*SubListOfIntsContext) Accept

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

func (*SubListOfIntsContext) COMMA

func (s *SubListOfIntsContext) COMMA() antlr.TerminalNode

func (*SubListOfIntsContext) GetParser

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

func (*SubListOfIntsContext) GetRuleContext

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

func (*SubListOfIntsContext) INT

func (s *SubListOfIntsContext) INT() antlr.TerminalNode

func (*SubListOfIntsContext) IsSubListOfIntsContext

func (*SubListOfIntsContext) IsSubListOfIntsContext()

func (*SubListOfIntsContext) SubListOfInts

func (s *SubListOfIntsContext) SubListOfInts() ISubListOfIntsContext

func (*SubListOfIntsContext) ToStringTree

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

type SubListOfStringsContext

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

func NewEmptySubListOfStringsContext

func NewEmptySubListOfStringsContext() *SubListOfStringsContext

func NewSubListOfStringsContext

func NewSubListOfStringsContext(parser antlr.Parser, parent antlr.ParserRuleContext, invokingState int) *SubListOfStringsContext

func (*SubListOfStringsContext) Accept

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

func (*SubListOfStringsContext) COMMA

func (s *SubListOfStringsContext) COMMA() antlr.TerminalNode

func (*SubListOfStringsContext) GetParser

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

func (*SubListOfStringsContext) GetRuleContext

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

func (*SubListOfStringsContext) IsSubListOfStringsContext

func (*SubListOfStringsContext) IsSubListOfStringsContext()

func (*SubListOfStringsContext) STRING

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

func (*SubListOfStringsContext) SubListOfStrings

func (s *SubListOfStringsContext) SubListOfStrings() ISubListOfStringsContext

func (*SubListOfStringsContext) ToStringTree

func (s *SubListOfStringsContext) 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) CopyAll

func (s *ValueContext) CopyAll(ctx *ValueContext)

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

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

type VersionContext

type VersionContext struct {
	ValueContext
}

func NewVersionContext

func NewVersionContext(parser antlr.Parser, ctx antlr.ParserRuleContext) *VersionContext

func (*VersionContext) Accept

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

func (*VersionContext) GetRuleContext

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

func (*VersionContext) VERSION

func (s *VersionContext) VERSION() antlr.TerminalNode

type VersionOperation

type VersionOperation struct {
	NullOperation
}

func (*VersionOperation) EQ

func (v *VersionOperation) EQ(left Operand, right Operand) (bool, error)

func (*VersionOperation) GE

func (v *VersionOperation) GE(left Operand, right Operand) (bool, error)

func (*VersionOperation) GT

func (v *VersionOperation) GT(left Operand, right Operand) (bool, error)

func (*VersionOperation) LE

func (v *VersionOperation) LE(left Operand, right Operand) (bool, error)

func (*VersionOperation) LT

func (v *VersionOperation) LT(left Operand, right Operand) (bool, error)

func (*VersionOperation) MT

func (v *VersionOperation) MT(left Operand, right Operand) (bool, error)

func (*VersionOperation) NE

func (v *VersionOperation) NE(left Operand, right Operand) (bool, error)

Jump to

Keyboard shortcuts

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