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 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(left, right core.Value) core.Value
- func ToBoolean(value, _ core.Value) core.Value
- type ArrayOperator
- type ArrayOperatorType
- type EqualityOperator
- type InOperator
- type LogicalOperator
- type LogicalOperatorType
- type MathOperator
- type MathOperatorType
- type OperatorFunc
- type RangeOperator
- type UnaryOperator
- type UnaryOperatorType
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)
func (*MathOperator) Type ¶ added in v0.6.0
func (operator *MathOperator) Type() MathOperatorType
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)
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, operator UnaryOperatorType, ) (*UnaryOperator, error)
type UnaryOperatorType ¶ added in v0.3.0
type UnaryOperatorType string
const ( UnaryOperatorTypeNoop UnaryOperatorType = "" UnaryOperatorTypeNot UnaryOperatorType = "!" UnaryOperatorTypeNot2 UnaryOperatorType = "NOT" UnaryOperatorTypeNegative UnaryOperatorType = "-" UnaryOperatorTypePositive UnaryOperatorType = "+" )
Click to show internal directories.
Click to hide internal directories.