Documentation ¶
Index ¶
- func Add(left, right core.Value) core.Value
- func Decrement(left, _ core.Value) core.Value
- func Divide(left, right 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(left, _ core.Value) core.Value
- func IsValidArrayOperatorType(aotype ArrayOperatorType) bool
- func Less(left, right core.Value) core.Value
- func LessOrEqual(left, right core.Value) core.Value
- func Modulus(left, right core.Value) core.Value
- func Multiply(left, right core.Value) core.Value
- func Not(left, _ core.Value) core.Value
- func NotEqual(left, right core.Value) core.Value
- func Subtract(left, right core.Value) core.Value
- type ArrayOperator
- type ArrayOperatorType
- type EqualityOperator
- type InOperator
- type LogicalOperator
- type LogicalOperatorType
- type MathOperator
- type MathOperatorType
- type OperatorFunc
- type RangeOperator
- func (operator *RangeOperator) Eval(_ context.Context, left, right core.Value) (core.Value, error)
- func (operator *RangeOperator) Exec(ctx context.Context, scope *core.Scope) (core.Value, error)
- func (operator *RangeOperator) Iterate(ctx context.Context, scope *core.Scope) (collections.Iterator, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsValidArrayOperatorType ¶
func IsValidArrayOperatorType(aotype ArrayOperatorType) bool
Types ¶
type ArrayOperator ¶
type ArrayOperator struct {
// contains filtered or unexported fields
}
func NewArrayOperator ¶
func NewArrayOperator( src core.SourceMap, left core.Expression, right core.Expression, aotype ArrayOperatorType, comparator core.OperatorExpression, ) (*ArrayOperator, error)
type ArrayOperatorType ¶
type ArrayOperatorType int
const ( ArrayOperatorTypeAll ArrayOperatorType = 0 ArrayOperatorTypeAny ArrayOperatorType = 1 ArrayOperatorTypeNone ArrayOperatorType = 2 )
func ToIsValidArrayOperatorType ¶
func ToIsValidArrayOperatorType(stype string) (ArrayOperatorType, 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, not bool, ) (*InOperator, 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 LogicalOperatorType ¶
type LogicalOperatorType int
const ( LogicalOperatorTypeAnd LogicalOperatorType = 0 LogicalOperatorTypeOr LogicalOperatorType = 1 LogicalOperatorTypeNot LogicalOperatorType = 2 )
type MathOperator ¶
type MathOperator struct {
// contains filtered or unexported fields
}
func NewMathOperator ¶
func NewMathOperator( src core.SourceMap, left core.Expression, right core.Expression, operator MathOperatorType, ) (*MathOperator, error)
type MathOperatorType ¶
type MathOperatorType string
const ( MathOperatorTypeAdd MathOperatorType = "+" MathOperatorTypeSubtract MathOperatorType = "-" MathOperatorTypeMultiply MathOperatorType = "*" MathOperatorTypeDivide MathOperatorType = "/" MathOperatorTypeModulus MathOperatorType = "%" MathOperatorTypeIncrement MathOperatorType = "++" MathOperatorTypeDecrement MathOperatorType = "--" )
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)
func (*RangeOperator) Iterate ¶
func (operator *RangeOperator) Iterate(ctx context.Context, scope *core.Scope) (collections.Iterator, error)
Source Files ¶
Click to show internal directories.
Click to hide internal directories.