Documentation ¶
Index ¶
- func Add(inputL, inputR core.Value) core.Value
- func Decrement(inputL, _ core.Value) core.Value
- func Divide(inputL, inputR core.Value) core.Value
- func Equal(left, right core.Value) core.Value
- func Greater(left, right core.Value) core.Value
- func GreaterOrEqual(left, right core.Value) core.Value
- func Increment(inputL, _ core.Value) core.Value
- func Less(left, right core.Value) core.Value
- func LessOrEqual(left, right core.Value) core.Value
- func Modulus(inputL, inputR core.Value) core.Value
- func Multiply(inputL, inputR core.Value) core.Value
- func Negative(value, _ core.Value) core.Value
- func Not(left, _ core.Value) core.Value
- func NotEqual(left, right core.Value) core.Value
- func Positive(value, _ core.Value) core.Value
- func Subtract(inputL, inputR core.Value) core.Value
- func ToBoolean(value, _ core.Value) core.Value
- func ToNumberOnly(input core.Value) core.Value
- func ToNumberOrString(input core.Value) core.Value
- type ArrayOperator
- type ArrayOperatorVariant
- type EqualityOperator
- type InOperator
- type LikeOperator
- type LogicalOperator
- type LogicalOperatorVariant
- type MathOperator
- type MathOperatorVariant
- type OperatorFunc
- type RangeOperator
- type RegexpOperator
- type RegexpOperatorVariant
- type UnaryOperator
- type UnaryOperatorVariant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ArrayOperator ¶
type ArrayOperator struct {
// contains filtered or unexported fields
}
func NewArrayOperator ¶
func NewArrayOperator( src core.SourceMap, left core.Expression, right core.Expression, variantStr string, comparator core.Predicate, ) (*ArrayOperator, error)
type ArrayOperatorVariant ¶ added in v0.16.0
type ArrayOperatorVariant int
const ( ArrayOperatorVariantAll ArrayOperatorVariant = iota ArrayOperatorVariantAny ArrayOperatorVariantNone )
func ToArrayOperatorVariant ¶ added in v0.16.0
func ToArrayOperatorVariant(name string) (ArrayOperatorVariant, error)
type EqualityOperator ¶
type EqualityOperator struct {
// contains filtered or unexported fields
}
func NewEqualityOperator ¶
func NewEqualityOperator( src core.SourceMap, left core.Expression, right core.Expression, operator string, ) (*EqualityOperator, error)
type InOperator ¶
type InOperator struct {
// contains filtered or unexported fields
}
func NewInOperator ¶
func NewInOperator( src core.SourceMap, left core.Expression, right core.Expression, negate bool, ) (*InOperator, error)
type LikeOperator ¶ added in v0.14.0
type LikeOperator struct {
// contains filtered or unexported fields
}
func NewLikeOperator ¶ added in v0.14.0
func NewLikeOperator( src core.SourceMap, left core.Expression, right core.Expression, negate bool, ) (*LikeOperator, error)
type LogicalOperator ¶
type LogicalOperator struct {
// contains filtered or unexported fields
}
func NewLogicalOperator ¶
func NewLogicalOperator( src core.SourceMap, left core.Expression, right core.Expression, operator string, ) (*LogicalOperator, error)
type LogicalOperatorVariant ¶ added in v0.16.0
type LogicalOperatorVariant int
const ( LogicalOperatorVariantAnd LogicalOperatorVariant = 0 LogicalOperatorVariantOr LogicalOperatorVariant = 1 LogicalOperatorVariantNot LogicalOperatorVariant = 2 )
type MathOperator ¶
type MathOperator struct {
// contains filtered or unexported fields
}
func NewMathOperator ¶
func NewMathOperator( src core.SourceMap, left core.Expression, right core.Expression, variantStr string, ) (*MathOperator, error)
func (*MathOperator) Type ¶ added in v0.6.0
func (operator *MathOperator) Type() MathOperatorVariant
type MathOperatorVariant ¶ added in v0.16.0
type MathOperatorVariant string
const ( MathOperatorVariantAdd MathOperatorVariant = "+" MathOperatorVariantSubtract MathOperatorVariant = "-" MathOperatorVariantMultiply MathOperatorVariant = "*" MathOperatorVariantDivide MathOperatorVariant = "/" MathOperatorVariantModulus MathOperatorVariant = "%" MathOperatorVariantIncrement MathOperatorVariant = "++" MathOperatorVariantDecrement MathOperatorVariant = "--" )
type RangeOperator ¶
type RangeOperator struct {
// contains filtered or unexported fields
}
func NewRangeOperator ¶
func NewRangeOperator( src core.SourceMap, left core.Expression, right core.Expression, ) (*RangeOperator, error)
type RegexpOperator ¶ added in v0.8.0
type RegexpOperator struct {
// contains filtered or unexported fields
}
func NewRegexpOperator ¶ added in v0.8.0
func NewRegexpOperator( src core.SourceMap, left core.Expression, right core.Expression, operatorStr string, ) (*RegexpOperator, error)
func (*RegexpOperator) Type ¶ added in v0.8.0
func (operator *RegexpOperator) Type() RegexpOperatorVariant
type RegexpOperatorVariant ¶ added in v0.16.0
type RegexpOperatorVariant int
const ( RegexpOperatorVariantNegative RegexpOperatorVariant = 0 RegexpOperatorVariantPositive RegexpOperatorVariant = 1 )
type UnaryOperator ¶ added in v0.3.0
type UnaryOperator struct {
// contains filtered or unexported fields
}
func NewUnaryOperator ¶ added in v0.3.0
func NewUnaryOperator( src core.SourceMap, exp core.Expression, variantStr string, ) (*UnaryOperator, error)
type UnaryOperatorVariant ¶ added in v0.16.0
type UnaryOperatorVariant string
const ( UnaryOperatorVariantNoop UnaryOperatorVariant = "" UnaryOperatorVariantNot UnaryOperatorVariant = "!" UnaryOperatorVariantNot2 UnaryOperatorVariant = "NOT" UnaryOperatorVariantNegative UnaryOperatorVariant = "-" UnaryOperatorVariantPositive UnaryOperatorVariant = "+" )
Click to show internal directories.
Click to hide internal directories.