ast

package
v0.0.0-...-dbab279 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AndExpression

type AndExpression struct {
	BinaryOperationExpression
}

func (AndExpression) Execute

func (node AndExpression) Execute(wrapper *rawwrapper.RawWrapper) bool

type BinaryOperationExpression

type BinaryOperationExpression struct {
	Value1 Expression
	Value2 Expression
}

type EqualExpression

type EqualExpression struct {
	// 等于运算符
	KeyExpression
}

func (EqualExpression) Execute

func (node EqualExpression) Execute(wrapper *rawwrapper.RawWrapper) bool

type ExistsExpression

type ExistsExpression struct {
	KeyExpression
}

func (ExistsExpression) Execute

func (node ExistsExpression) Execute(wrapper *rawwrapper.RawWrapper) bool

type Expression

type Expression interface {
	Execute(wrapper *rawwrapper.RawWrapper) bool
}

type GreaterThanExpression

type GreaterThanExpression struct {
	// 大于
	KeyExpression
}

func (GreaterThanExpression) Execute

func (node GreaterThanExpression) Execute(wrapper *rawwrapper.RawWrapper) bool

type GreaterThanOrEqualExpression

type GreaterThanOrEqualExpression struct {
	// 大于等于
	KeyExpression
}

func (GreaterThanOrEqualExpression) Execute

func (node GreaterThanOrEqualExpression) Execute(wrapper *rawwrapper.RawWrapper) bool

type Identifier

type Identifier struct {
	// 标识符
	Key string
}

func (*Identifier) GetRawValue

func (identifier *Identifier) GetRawValue(wrapper *rawwrapper.RawWrapper) bson.RawValue

type InExpression

type InExpression struct {
	KeyExpression
}

func (InExpression) Execute

func (node InExpression) Execute(wrapper *rawwrapper.RawWrapper) bool

type KeyExpression

type KeyExpression struct {
	Value1 Identifier
	Value2 Literal
}

type LessThanExpression

type LessThanExpression struct {
	// 小于
	KeyExpression
}

func (LessThanExpression) Execute

func (node LessThanExpression) Execute(wrapper *rawwrapper.RawWrapper) bool

type LessThanOrEqualExpression

type LessThanOrEqualExpression struct {
	// 小于等于
	KeyExpression
}

func (LessThanOrEqualExpression) Execute

func (node LessThanOrEqualExpression) Execute(wrapper *rawwrapper.RawWrapper) bool

type Literal

type Literal struct {
	Value bson.RawValue
}

func (*Literal) GetBooleanOk

func (literal *Literal) GetBooleanOk() (value bool, ok bool)

func (*Literal) GetRawValue

func (literal *Literal) GetRawValue() bson.RawValue

type Node

type Node interface {
}

type NotExpression

type NotExpression struct {
	Value Expression
}

func (NotExpression) Execute

func (node NotExpression) Execute(wrapper *rawwrapper.RawWrapper) bool

type OrExpression

type OrExpression struct {
	BinaryOperationExpression
}

func (OrExpression) Execute

func (node OrExpression) Execute(wrapper *rawwrapper.RawWrapper) bool

type RegexExpression

type RegexExpression struct {
	KeyExpression
}

func (RegexExpression) Execute

func (node RegexExpression) Execute(wrapper *rawwrapper.RawWrapper) bool

Jump to

Keyboard shortcuts

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