Documentation
¶
Index ¶
- type AndExpression
- type BinaryOperationExpression
- type EqualExpression
- type ExistsExpression
- type Expression
- type GreaterThanExpression
- type GreaterThanOrEqualExpression
- type Identifier
- type InExpression
- type KeyExpression
- type LessThanExpression
- type LessThanOrEqualExpression
- type Literal
- type Node
- type NotExpression
- type OrExpression
- type RegexExpression
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 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
Click to show internal directories.
Click to hide internal directories.