Documentation
¶
Index ¶
- Constants
- Variables
- func OffsetDateTimeCompare(this *OffsetDateTime, that *OffsetDateTime) int
- func PathCompile(pathString string, filters ...common.Predicate) (common.Path, error)
- func PathCompileByStringAndPredicateSlice(pathString string, filters []common.Predicate) (common.Path, error)
- type BooleanNode
- func (n *BooleanNode) AsBooleanNode() (*BooleanNode, error)
- func (_ BooleanNode) AsClassNode() (*ClassNode, error)
- func (_ BooleanNode) AsJsonNode() (*JsonNode, error)
- func (_ BooleanNode) AsNullNode() (*NullNode, error)
- func (_ BooleanNode) AsNumberNode() (*NumberNode, error)
- func (_ BooleanNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
- func (_ BooleanNode) AsPathNode() (*PathNode, error)
- func (_ BooleanNode) AsPatternNode() (*PatternNode, error)
- func (_ BooleanNode) AsPredicateNode() (*PredicateNode, error)
- func (_ BooleanNode) AsStringNode() (*StringNode, error)
- func (_ BooleanNode) AsUndefinedNode() (*UndefinedNode, error)
- func (_ BooleanNode) AsValueListNode() (*ValueListNode, error)
- func (n *BooleanNode) Equals(o interface{}) bool
- func (n *BooleanNode) GetBoolean() bool
- func (*BooleanNode) IsBooleanNode() bool
- func (n BooleanNode) IsClassNode() bool
- func (n BooleanNode) IsJsonNode() bool
- func (n BooleanNode) IsNullNode() bool
- func (n BooleanNode) IsNumberNode() bool
- func (n BooleanNode) IsOffsetDateTimeNode() bool
- func (n BooleanNode) IsPathNode() bool
- func (n BooleanNode) IsPatternNode() bool
- func (n BooleanNode) IsPredicateNode() bool
- func (n BooleanNode) IsStringNode() bool
- func (n BooleanNode) IsUndefinedNode() bool
- func (n BooleanNode) IsValueListNode() bool
- func (n *BooleanNode) String() string
- func (*BooleanNode) TypeOf(ctx common.PredicateContext) reflect.Kind
- type ClassNode
- func (_ ClassNode) AsBooleanNode() (*BooleanNode, error)
- func (_ ClassNode) AsJsonNode() (*JsonNode, error)
- func (_ ClassNode) AsNullNode() (*NullNode, error)
- func (_ ClassNode) AsNumberNode() (*NumberNode, error)
- func (_ ClassNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
- func (_ ClassNode) AsPathNode() (*PathNode, error)
- func (_ ClassNode) AsPatternNode() (*PatternNode, error)
- func (_ ClassNode) AsPredicateNode() (*PredicateNode, error)
- func (_ ClassNode) AsStringNode() (*StringNode, error)
- func (_ ClassNode) AsUndefinedNode() (*UndefinedNode, error)
- func (_ ClassNode) AsValueListNode() (*ValueListNode, error)
- func (n ClassNode) IsBooleanNode() bool
- func (n ClassNode) IsJsonNode() bool
- func (n ClassNode) IsNullNode() bool
- func (n ClassNode) IsNumberNode() bool
- func (n ClassNode) IsOffsetDateTimeNode() bool
- func (n ClassNode) IsPathNode() bool
- func (n ClassNode) IsPatternNode() bool
- func (n ClassNode) IsPredicateNode() bool
- func (n ClassNode) IsStringNode() bool
- func (n ClassNode) IsUndefinedNode() bool
- func (n ClassNode) IsValueListNode() bool
- type CompiledFilter
- type Compiler
- type Evaluator
- type ExpressionNode
- type JsonNode
- func (_ JsonNode) AsBooleanNode() (*BooleanNode, error)
- func (_ JsonNode) AsClassNode() (*ClassNode, error)
- func (n *JsonNode) AsJsonNode() (*JsonNode, error)
- func (_ JsonNode) AsNullNode() (*NullNode, error)
- func (_ JsonNode) AsNumberNode() (*NumberNode, error)
- func (_ JsonNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
- func (_ JsonNode) AsPathNode() (*PathNode, error)
- func (_ JsonNode) AsPatternNode() (*PatternNode, error)
- func (_ JsonNode) AsPredicateNode() (*PredicateNode, error)
- func (_ JsonNode) AsStringNode() (*StringNode, error)
- func (_ JsonNode) AsUndefinedNode() (*UndefinedNode, error)
- func (_ JsonNode) AsValueListNode() (*ValueListNode, error)
- func (n *JsonNode) AsValueListNodeByPredicateContext(ctx common.PredicateContext) (ValueNode, error)
- func (n *JsonNode) Equals(o interface{}) bool
- func (n *JsonNode) EqualsByPredicateContext(jsonNode *JsonNode, ctx common.PredicateContext) (bool, error)
- func (n *JsonNode) GetJson() interface{}
- func (n *JsonNode) IsArray(ctx common.PredicateContext) bool
- func (n JsonNode) IsBooleanNode() bool
- func (n JsonNode) IsClassNode() bool
- func (n *JsonNode) IsEmpty(ctx common.PredicateContext) (bool, error)
- func (*JsonNode) IsJsonNode() bool
- func (n *JsonNode) IsMap(ctx common.PredicateContext) bool
- func (n JsonNode) IsNullNode() bool
- func (n JsonNode) IsNumberNode() bool
- func (n JsonNode) IsOffsetDateTimeNode() bool
- func (n *JsonNode) IsParsed() bool
- func (n JsonNode) IsPathNode() bool
- func (n JsonNode) IsPatternNode() bool
- func (n JsonNode) IsPredicateNode() bool
- func (n JsonNode) IsStringNode() bool
- func (n JsonNode) IsUndefinedNode() bool
- func (n JsonNode) IsValueListNode() bool
- func (n *JsonNode) Length(ctx common.PredicateContext) int
- func (n *JsonNode) Parse(ctx common.PredicateContext) (interface{}, error)
- func (n *JsonNode) String() string
- func (n *JsonNode) TypeOf(ctx common.PredicateContext) reflect.Kind
- type LogicalExpressionNode
- func CreateLogicalAnd(left ExpressionNode, right ExpressionNode) *LogicalExpressionNode
- func CreateLogicalAndByList(operands []ExpressionNode) *LogicalExpressionNode
- func CreateLogicalNot(op ExpressionNode) *LogicalExpressionNode
- func CreateLogicalOr(left ExpressionNode, right ExpressionNode) *LogicalExpressionNode
- func CreateLogicalOrByList(operands []ExpressionNode) *LogicalExpressionNode
- func (e *LogicalExpressionNode) And(other *LogicalExpressionNode) *LogicalExpressionNode
- func (e *LogicalExpressionNode) Append(node ExpressionNode) *LogicalExpressionNode
- func (e *LogicalExpressionNode) Apply(ctx common.PredicateContext) (bool, error)
- func (e *LogicalExpressionNode) ExpressionNodeLabel()
- func (e *LogicalExpressionNode) GetOperator() string
- func (e *LogicalExpressionNode) Or(other *LogicalExpressionNode) *LogicalExpressionNode
- func (e *LogicalExpressionNode) String() string
- type NullNode
- func (_ NullNode) AsBooleanNode() (*BooleanNode, error)
- func (_ NullNode) AsClassNode() (*ClassNode, error)
- func (_ NullNode) AsJsonNode() (*JsonNode, error)
- func (n *NullNode) AsNullNode() (*NullNode, error)
- func (_ NullNode) AsNumberNode() (*NumberNode, error)
- func (_ NullNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
- func (_ NullNode) AsPathNode() (*PathNode, error)
- func (_ NullNode) AsPatternNode() (*PatternNode, error)
- func (_ NullNode) AsPredicateNode() (*PredicateNode, error)
- func (_ NullNode) AsStringNode() (*StringNode, error)
- func (_ NullNode) AsUndefinedNode() (*UndefinedNode, error)
- func (_ NullNode) AsValueListNode() (*ValueListNode, error)
- func (n *NullNode) Equals(o interface{}) bool
- func (n NullNode) IsBooleanNode() bool
- func (n NullNode) IsClassNode() bool
- func (n NullNode) IsJsonNode() bool
- func (n *NullNode) IsNullNode() bool
- func (n NullNode) IsNumberNode() bool
- func (n NullNode) IsOffsetDateTimeNode() bool
- func (n NullNode) IsPathNode() bool
- func (n NullNode) IsPatternNode() bool
- func (n NullNode) IsPredicateNode() bool
- func (n NullNode) IsStringNode() bool
- func (n NullNode) IsUndefinedNode() bool
- func (n NullNode) IsValueListNode() bool
- func (n *NullNode) String() string
- func (n *NullNode) TypeOf(ctx common.PredicateContext) reflect.Kind
- type NumberNode
- func (_ NumberNode) AsBooleanNode() (*BooleanNode, error)
- func (_ NumberNode) AsClassNode() (*ClassNode, error)
- func (_ NumberNode) AsJsonNode() (*JsonNode, error)
- func (_ NumberNode) AsNullNode() (*NullNode, error)
- func (n *NumberNode) AsNumberNode() (*NumberNode, error)
- func (_ NumberNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
- func (_ NumberNode) AsPathNode() (*PathNode, error)
- func (_ NumberNode) AsPatternNode() (*PatternNode, error)
- func (_ NumberNode) AsPredicateNode() (*PredicateNode, error)
- func (n *NumberNode) AsStringNode() (*StringNode, error)
- func (_ NumberNode) AsUndefinedNode() (*UndefinedNode, error)
- func (_ NumberNode) AsValueListNode() (*ValueListNode, error)
- func (n *NumberNode) Equals(o interface{}) bool
- func (n *NumberNode) GetNumber() *decimal.Decimal
- func (n NumberNode) IsBooleanNode() bool
- func (n NumberNode) IsClassNode() bool
- func (n NumberNode) IsJsonNode() bool
- func (n NumberNode) IsNullNode() bool
- func (n *NumberNode) IsNumberNode() bool
- func (n NumberNode) IsOffsetDateTimeNode() bool
- func (n NumberNode) IsPathNode() bool
- func (n NumberNode) IsPatternNode() bool
- func (n NumberNode) IsPredicateNode() bool
- func (n *NumberNode) IsStringNode() bool
- func (n NumberNode) IsUndefinedNode() bool
- func (n NumberNode) IsValueListNode() bool
- func (n *NumberNode) String() string
- func (n *NumberNode) TypeOf(ctx common.PredicateContext) reflect.Kind
- type OffsetDateTime
- type OffsetDateTimeNode
- func (_ OffsetDateTimeNode) AsBooleanNode() (*BooleanNode, error)
- func (_ OffsetDateTimeNode) AsClassNode() (*ClassNode, error)
- func (_ OffsetDateTimeNode) AsJsonNode() (*JsonNode, error)
- func (_ OffsetDateTimeNode) AsNullNode() (*NullNode, error)
- func (_ OffsetDateTimeNode) AsNumberNode() (*NumberNode, error)
- func (n *OffsetDateTimeNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
- func (_ OffsetDateTimeNode) AsPathNode() (*PathNode, error)
- func (_ OffsetDateTimeNode) AsPatternNode() (*PatternNode, error)
- func (_ OffsetDateTimeNode) AsPredicateNode() (*PredicateNode, error)
- func (n *OffsetDateTimeNode) AsStringNode() (*StringNode, error)
- func (_ OffsetDateTimeNode) AsUndefinedNode() (*UndefinedNode, error)
- func (_ OffsetDateTimeNode) AsValueListNode() (*ValueListNode, error)
- func (n *OffsetDateTimeNode) Equals(o interface{}) bool
- func (n *OffsetDateTimeNode) GetDate() *OffsetDateTime
- func (n OffsetDateTimeNode) IsBooleanNode() bool
- func (n OffsetDateTimeNode) IsClassNode() bool
- func (n OffsetDateTimeNode) IsJsonNode() bool
- func (n OffsetDateTimeNode) IsNullNode() bool
- func (n OffsetDateTimeNode) IsNumberNode() bool
- func (n *OffsetDateTimeNode) IsOffsetDateTimeNode() bool
- func (n OffsetDateTimeNode) IsPathNode() bool
- func (n OffsetDateTimeNode) IsPatternNode() bool
- func (n OffsetDateTimeNode) IsPredicateNode() bool
- func (n *OffsetDateTimeNode) IsStringNode() bool
- func (n OffsetDateTimeNode) IsUndefinedNode() bool
- func (n OffsetDateTimeNode) IsValueListNode() bool
- func (n *OffsetDateTimeNode) String() string
- func (n *OffsetDateTimeNode) TypeOf(ctx common.PredicateContext) reflect.Kind
- type PathCompiler
- type PathNode
- func (_ PathNode) AsBooleanNode() (*BooleanNode, error)
- func (_ PathNode) AsClassNode() (*ClassNode, error)
- func (pn *PathNode) AsExistsCheck(shouldExist bool) *PathNode
- func (_ PathNode) AsJsonNode() (*JsonNode, error)
- func (_ PathNode) AsNullNode() (*NullNode, error)
- func (_ PathNode) AsNumberNode() (*NumberNode, error)
- func (_ PathNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
- func (pn *PathNode) AsPathNode() (*PathNode, error)
- func (_ PathNode) AsPatternNode() (*PatternNode, error)
- func (_ PathNode) AsPredicateNode() (*PredicateNode, error)
- func (_ PathNode) AsStringNode() (*StringNode, error)
- func (_ PathNode) AsUndefinedNode() (*UndefinedNode, error)
- func (_ PathNode) AsValueListNode() (*ValueListNode, error)
- func (pn *PathNode) Equals(o interface{}) bool
- func (pn *PathNode) Evaluate(ctx common.PredicateContext) (ValueNode, error)
- func (pn *PathNode) GetPath() common.Path
- func (n PathNode) IsBooleanNode() bool
- func (n PathNode) IsClassNode() bool
- func (pn *PathNode) IsExistsCheck() bool
- func (n PathNode) IsJsonNode() bool
- func (n PathNode) IsNullNode() bool
- func (n PathNode) IsNumberNode() bool
- func (n PathNode) IsOffsetDateTimeNode() bool
- func (pn *PathNode) IsPathNode() bool
- func (n PathNode) IsPatternNode() bool
- func (n PathNode) IsPredicateNode() bool
- func (n PathNode) IsStringNode() bool
- func (n PathNode) IsUndefinedNode() bool
- func (n PathNode) IsValueListNode() bool
- func (pn *PathNode) ShouldExists() bool
- func (pn *PathNode) String() string
- func (pn *PathNode) TypeOf(ctx common.PredicateContext) reflect.Kind
- type PatternNode
- func (_ PatternNode) AsBooleanNode() (*BooleanNode, error)
- func (_ PatternNode) AsClassNode() (*ClassNode, error)
- func (_ PatternNode) AsJsonNode() (*JsonNode, error)
- func (_ PatternNode) AsNullNode() (*NullNode, error)
- func (_ PatternNode) AsNumberNode() (*NumberNode, error)
- func (_ PatternNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
- func (_ PatternNode) AsPathNode() (*PathNode, error)
- func (pn *PatternNode) AsPatternNode() (*PatternNode, error)
- func (_ PatternNode) AsPredicateNode() (*PredicateNode, error)
- func (_ PatternNode) AsStringNode() (*StringNode, error)
- func (_ PatternNode) AsUndefinedNode() (*UndefinedNode, error)
- func (_ PatternNode) AsValueListNode() (*ValueListNode, error)
- func (pn *PatternNode) Equals(o interface{}) bool
- func (pn *PatternNode) GetCompiledPattern() *regexp.Regexp
- func (n PatternNode) IsBooleanNode() bool
- func (n PatternNode) IsClassNode() bool
- func (n PatternNode) IsJsonNode() bool
- func (n PatternNode) IsNullNode() bool
- func (n PatternNode) IsNumberNode() bool
- func (n PatternNode) IsOffsetDateTimeNode() bool
- func (n PatternNode) IsPathNode() bool
- func (pn *PatternNode) IsPatternNode() bool
- func (n PatternNode) IsPredicateNode() bool
- func (n PatternNode) IsStringNode() bool
- func (n PatternNode) IsUndefinedNode() bool
- func (n PatternNode) IsValueListNode() bool
- func (pn *PatternNode) String() string
- func (pn *PatternNode) TypeOf(ctx common.PredicateContext) reflect.Kind
- type PredicateNode
- func (_ PredicateNode) AsBooleanNode() (*BooleanNode, error)
- func (_ PredicateNode) AsClassNode() (*ClassNode, error)
- func (_ PredicateNode) AsJsonNode() (*JsonNode, error)
- func (_ PredicateNode) AsNullNode() (*NullNode, error)
- func (_ PredicateNode) AsNumberNode() (*NumberNode, error)
- func (_ PredicateNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
- func (_ PredicateNode) AsPathNode() (*PathNode, error)
- func (_ PredicateNode) AsPatternNode() (*PatternNode, error)
- func (n *PredicateNode) AsPredicateNode() (*PredicateNode, error)
- func (_ PredicateNode) AsStringNode() (*StringNode, error)
- func (_ PredicateNode) AsUndefinedNode() (*UndefinedNode, error)
- func (_ PredicateNode) AsValueListNode() (*ValueListNode, error)
- func (n *PredicateNode) Equals(o interface{}) bool
- func (n *PredicateNode) GetPredicate() common.Predicate
- func (n PredicateNode) IsBooleanNode() bool
- func (n PredicateNode) IsClassNode() bool
- func (n PredicateNode) IsJsonNode() bool
- func (n PredicateNode) IsNullNode() bool
- func (n PredicateNode) IsNumberNode() bool
- func (n PredicateNode) IsOffsetDateTimeNode() bool
- func (n PredicateNode) IsPathNode() bool
- func (n PredicateNode) IsPatternNode() bool
- func (n *PredicateNode) IsPredicateNode() bool
- func (n PredicateNode) IsStringNode() bool
- func (n PredicateNode) IsUndefinedNode() bool
- func (n PredicateNode) IsValueListNode() bool
- func (n *PredicateNode) String() string
- func (n *PredicateNode) TypeOf(ctx common.PredicateContext) reflect.Kind
- type RelationExpressionNode
- type StringNode
- func (_ StringNode) AsBooleanNode() (*BooleanNode, error)
- func (_ StringNode) AsClassNode() (*ClassNode, error)
- func (_ StringNode) AsJsonNode() (*JsonNode, error)
- func (_ StringNode) AsNullNode() (*NullNode, error)
- func (n *StringNode) AsNumberNode() (*NumberNode, error)
- func (_ StringNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
- func (_ StringNode) AsPathNode() (*PathNode, error)
- func (_ StringNode) AsPatternNode() (*PatternNode, error)
- func (_ StringNode) AsPredicateNode() (*PredicateNode, error)
- func (n *StringNode) AsStringNode() (*StringNode, error)
- func (_ StringNode) AsUndefinedNode() (*UndefinedNode, error)
- func (_ StringNode) AsValueListNode() (*ValueListNode, error)
- func (n *StringNode) Contains(str1 string) bool
- func (n *StringNode) Equals(o interface{}) bool
- func (n *StringNode) GetString() string
- func (n StringNode) IsBooleanNode() bool
- func (n StringNode) IsClassNode() bool
- func (n *StringNode) IsEmpty() bool
- func (n StringNode) IsJsonNode() bool
- func (n StringNode) IsNullNode() bool
- func (n *StringNode) IsNumberNode() bool
- func (n StringNode) IsOffsetDateTimeNode() bool
- func (n StringNode) IsPathNode() bool
- func (n StringNode) IsPatternNode() bool
- func (n StringNode) IsPredicateNode() bool
- func (n *StringNode) IsStringNode() bool
- func (n StringNode) IsUndefinedNode() bool
- func (n StringNode) IsValueListNode() bool
- func (n *StringNode) Length() int
- func (n *StringNode) String() string
- func (n *StringNode) TypeOf(ctx common.PredicateContext) reflect.Kind
- type UndefinedNode
- func (_ UndefinedNode) AsBooleanNode() (*BooleanNode, error)
- func (_ UndefinedNode) AsClassNode() (*ClassNode, error)
- func (_ UndefinedNode) AsJsonNode() (*JsonNode, error)
- func (_ UndefinedNode) AsNullNode() (*NullNode, error)
- func (_ UndefinedNode) AsNumberNode() (*NumberNode, error)
- func (_ UndefinedNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
- func (_ UndefinedNode) AsPathNode() (*PathNode, error)
- func (_ UndefinedNode) AsPatternNode() (*PatternNode, error)
- func (_ UndefinedNode) AsPredicateNode() (*PredicateNode, error)
- func (_ UndefinedNode) AsStringNode() (*StringNode, error)
- func (n *UndefinedNode) AsUndefinedNode() (*UndefinedNode, error)
- func (_ UndefinedNode) AsValueListNode() (*ValueListNode, error)
- func (n *UndefinedNode) Equals(o interface{}) bool
- func (n UndefinedNode) IsBooleanNode() bool
- func (n UndefinedNode) IsClassNode() bool
- func (n UndefinedNode) IsJsonNode() bool
- func (n UndefinedNode) IsNullNode() bool
- func (n UndefinedNode) IsNumberNode() bool
- func (n UndefinedNode) IsOffsetDateTimeNode() bool
- func (n UndefinedNode) IsPathNode() bool
- func (n UndefinedNode) IsPatternNode() bool
- func (n UndefinedNode) IsPredicateNode() bool
- func (n UndefinedNode) IsStringNode() bool
- func (n *UndefinedNode) IsUndefinedNode() bool
- func (n UndefinedNode) IsValueListNode() bool
- func (n *UndefinedNode) String() string
- func (n *UndefinedNode) TypeOf(ctx common.PredicateContext) reflect.Kind
- type ValueListNode
- func (_ ValueListNode) AsBooleanNode() (*BooleanNode, error)
- func (_ ValueListNode) AsClassNode() (*ClassNode, error)
- func (_ ValueListNode) AsJsonNode() (*JsonNode, error)
- func (_ ValueListNode) AsNullNode() (*NullNode, error)
- func (_ ValueListNode) AsNumberNode() (*NumberNode, error)
- func (_ ValueListNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
- func (_ ValueListNode) AsPathNode() (*PathNode, error)
- func (_ ValueListNode) AsPatternNode() (*PatternNode, error)
- func (_ ValueListNode) AsPredicateNode() (*PredicateNode, error)
- func (_ ValueListNode) AsStringNode() (*StringNode, error)
- func (_ ValueListNode) AsUndefinedNode() (*UndefinedNode, error)
- func (v *ValueListNode) AsValueListNode() (*ValueListNode, error)
- func (v *ValueListNode) Contains(node ValueNode) bool
- func (v *ValueListNode) Equals(o interface{}) bool
- func (v *ValueListNode) GetNodes() []ValueNode
- func (n ValueListNode) IsBooleanNode() bool
- func (n ValueListNode) IsClassNode() bool
- func (n ValueListNode) IsJsonNode() bool
- func (n ValueListNode) IsNullNode() bool
- func (n ValueListNode) IsNumberNode() bool
- func (n ValueListNode) IsOffsetDateTimeNode() bool
- func (n ValueListNode) IsPathNode() bool
- func (n ValueListNode) IsPatternNode() bool
- func (n ValueListNode) IsPredicateNode() bool
- func (n ValueListNode) IsStringNode() bool
- func (n ValueListNode) IsUndefinedNode() bool
- func (v *ValueListNode) IsValueListNode() bool
- func (v *ValueListNode) String() string
- func (v *ValueListNode) SubSetOf(right *ValueListNode) bool
- func (v *ValueListNode) TypeOf(ctx common.PredicateContext) reflect.Kind
- type ValueNode
Constants ¶
View Source
const ( RelationalOperator_GTE = ">=" RelationalOperator_LTE = "<=" RelationalOperator_EQ = "==" RelationalOperator_TSEQ = "===" RelationalOperator_NE = "!=" RelationalOperator_TSNE = "!==" RelationalOperator_LT = "<" RelationalOperator_GT = ">" RelationalOperator_REGEX = "=~" RelationalOperator_NIN = "NIN" RelationalOperator_IN = "IN" RelationalOperator_CONTAINS = "CONTAINS" RelationalOperator_ALL = "ALL" RelationalOperator_SIZE = "SIZE" RelationalOperator_EXISTS = "EXISTS" RelationalOperator_TYPE = "TYPE" RelationalOperator_MATCHES = "MATCHES" RelationalOperator_EMPTY = "EMPTY" RelationalOperator_SUBSETOF = "SUBSETOF" RelationalOperator_ANYOF = "ANYOF" RelationalOperator_NONEOF = "NONEOF" )
RelationalOperator
View Source
const ( LogicalOperator_AND = "&&" LogicalOperator_NOT = "!" LogicalOperator_OR = "||" )
LogicalOperator
View Source
const ( DOC_CONTEXT = '$' EVAL_CONTEXT = '@' OPEN_SQUARE_BRACKET = '[' CLOSE_SQUARE_BRACKET = ']' OPEN_PARENTHESIS = '(' CLOSE_PARENTHESIS = ')' OPEN_OBJECT = '{' CLOSE_OBJECT = '}' OPEN_ARRAY = '[' CLOSE_ARRAY = ']' SINGLE_QUOTE = '\'' DOUBLE_QUOTE = '"' SPACE = ' ' PERIOD = '.' AND = '&' OR = '|' MINUS = '-' LT = '<' GT = '>' EQ = '=' TILDE = '~' TRUE = 't' FALSE = 'f' NULL = 'n' NOT = '!' PATTERN = '/' IGNORE_CASE = 'i' )
View Source
const ( PATH_DOC_CONTEXT = '$' PATH_EVAL_CONTEXT = '@' PATH_OPEN_SQUARE_BRACKET = '[' PATH_CLOSE_SQUARE_BRACKET = ']' PATH_OPEN_PARENTHESIS = '(' PATH_CLOSE_PARENTHESIS = ')' PATH_OPEN_BRACE = '{' PATH_CLOSE_BRACE = '}' WILDCARD = '*' PATH_PERIOD = '.' PATH_SPACE = ' ' TAB = '\t' CR = '\r' LF = '\n' BEGIN_FILTER = '?' COMMA = ',' SPLIT = ':' PATH_MINUS = '-' PATH_SINGLE_QUOTE = '\'' PATH_DOUBLE_QUOTE = '"' )
Variables ¶
View Source
var FALSE_NODE = CreateBooleanNode(false)
View Source
var NULL_NODE = CreateNullNode()
View Source
var TRUE_NODE = CreateBooleanNode(true)
View Source
var UNDEFINED_NODE = &UndefinedNode{}
Functions ¶
func OffsetDateTimeCompare ¶
func OffsetDateTimeCompare(this *OffsetDateTime, that *OffsetDateTime) int
func PathCompile ¶
Types ¶
type BooleanNode ¶
type BooleanNode struct {
// contains filtered or unexported fields
}
BooleanNode -----------
func CreateBooleanNode ¶
func CreateBooleanNode(value bool) *BooleanNode
func CreateBooleanNodeByString ¶
func CreateBooleanNodeByString(str string) *BooleanNode
func (*BooleanNode) AsBooleanNode ¶
func (n *BooleanNode) AsBooleanNode() (*BooleanNode, error)
func (BooleanNode) AsClassNode ¶
func (BooleanNode) AsJsonNode ¶
func (BooleanNode) AsNullNode ¶
func (BooleanNode) AsNumberNode ¶
func (_ BooleanNode) AsNumberNode() (*NumberNode, error)
func (BooleanNode) AsOffsetDateTimeNode ¶
func (_ BooleanNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
func (BooleanNode) AsPathNode ¶
func (BooleanNode) AsPatternNode ¶
func (_ BooleanNode) AsPatternNode() (*PatternNode, error)
func (BooleanNode) AsPredicateNode ¶
func (_ BooleanNode) AsPredicateNode() (*PredicateNode, error)
func (BooleanNode) AsStringNode ¶
func (_ BooleanNode) AsStringNode() (*StringNode, error)
func (BooleanNode) AsUndefinedNode ¶
func (_ BooleanNode) AsUndefinedNode() (*UndefinedNode, error)
func (BooleanNode) AsValueListNode ¶
func (_ BooleanNode) AsValueListNode() (*ValueListNode, error)
func (*BooleanNode) Equals ¶
func (n *BooleanNode) Equals(o interface{}) bool
func (*BooleanNode) GetBoolean ¶
func (n *BooleanNode) GetBoolean() bool
func (*BooleanNode) IsBooleanNode ¶
func (*BooleanNode) IsBooleanNode() bool
func (BooleanNode) IsClassNode ¶
func (n BooleanNode) IsClassNode() bool
func (BooleanNode) IsJsonNode ¶
func (n BooleanNode) IsJsonNode() bool
func (BooleanNode) IsNullNode ¶
func (n BooleanNode) IsNullNode() bool
func (BooleanNode) IsNumberNode ¶
func (n BooleanNode) IsNumberNode() bool
func (BooleanNode) IsOffsetDateTimeNode ¶
func (n BooleanNode) IsOffsetDateTimeNode() bool
func (BooleanNode) IsPathNode ¶
func (n BooleanNode) IsPathNode() bool
func (BooleanNode) IsPatternNode ¶
func (n BooleanNode) IsPatternNode() bool
func (BooleanNode) IsPredicateNode ¶
func (n BooleanNode) IsPredicateNode() bool
func (BooleanNode) IsStringNode ¶
func (n BooleanNode) IsStringNode() bool
func (BooleanNode) IsUndefinedNode ¶
func (n BooleanNode) IsUndefinedNode() bool
func (BooleanNode) IsValueListNode ¶
func (n BooleanNode) IsValueListNode() bool
func (*BooleanNode) String ¶
func (n *BooleanNode) String() string
func (*BooleanNode) TypeOf ¶
func (*BooleanNode) TypeOf(ctx common.PredicateContext) reflect.Kind
type ClassNode ¶
type ClassNode struct {
// contains filtered or unexported fields
}
ClassNode -----------
func (ClassNode) AsBooleanNode ¶
func (_ ClassNode) AsBooleanNode() (*BooleanNode, error)
func (ClassNode) AsJsonNode ¶
func (ClassNode) AsNullNode ¶
func (ClassNode) AsNumberNode ¶
func (_ ClassNode) AsNumberNode() (*NumberNode, error)
func (ClassNode) AsOffsetDateTimeNode ¶
func (_ ClassNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
func (ClassNode) AsPathNode ¶
func (ClassNode) AsPatternNode ¶
func (_ ClassNode) AsPatternNode() (*PatternNode, error)
func (ClassNode) AsPredicateNode ¶
func (_ ClassNode) AsPredicateNode() (*PredicateNode, error)
func (ClassNode) AsStringNode ¶
func (_ ClassNode) AsStringNode() (*StringNode, error)
func (ClassNode) AsUndefinedNode ¶
func (_ ClassNode) AsUndefinedNode() (*UndefinedNode, error)
func (ClassNode) AsValueListNode ¶
func (_ ClassNode) AsValueListNode() (*ValueListNode, error)
func (ClassNode) IsBooleanNode ¶
func (n ClassNode) IsBooleanNode() bool
func (ClassNode) IsJsonNode ¶
func (n ClassNode) IsJsonNode() bool
func (ClassNode) IsNullNode ¶
func (n ClassNode) IsNullNode() bool
func (ClassNode) IsNumberNode ¶
func (n ClassNode) IsNumberNode() bool
func (ClassNode) IsOffsetDateTimeNode ¶
func (n ClassNode) IsOffsetDateTimeNode() bool
func (ClassNode) IsPathNode ¶
func (n ClassNode) IsPathNode() bool
func (ClassNode) IsPatternNode ¶
func (n ClassNode) IsPatternNode() bool
func (ClassNode) IsPredicateNode ¶
func (n ClassNode) IsPredicateNode() bool
func (ClassNode) IsStringNode ¶
func (n ClassNode) IsStringNode() bool
func (ClassNode) IsUndefinedNode ¶
func (n ClassNode) IsUndefinedNode() bool
func (ClassNode) IsValueListNode ¶
func (n ClassNode) IsValueListNode() bool
type CompiledFilter ¶
type CompiledFilter struct {
// contains filtered or unexported fields
}
func Compile ¶
func Compile(filterString string) (*CompiledFilter, error)
func (*CompiledFilter) Apply ¶
func (cf *CompiledFilter) Apply(ctx common.PredicateContext) (bool, error)
func (*CompiledFilter) String ¶
func (cf *CompiledFilter) String() string
type Compiler ¶
type Compiler struct {
// contains filtered or unexported fields
}
func CreateFilterCompiler ¶
type Evaluator ¶
type Evaluator interface {
Evaluate(left ValueNode, right ValueNode, ctx common.PredicateContext) (bool, error)
}
func CreateEvaluator ¶
type ExpressionNode ¶
type JsonNode ¶
type JsonNode struct {
// contains filtered or unexported fields
}
JsonNode --------
func CreateJsonNodeByObject ¶
func CreateJsonNodeByObject(json interface{}) *JsonNode
func CreateJsonNodeByString ¶
func (JsonNode) AsBooleanNode ¶
func (_ JsonNode) AsBooleanNode() (*BooleanNode, error)
func (JsonNode) AsClassNode ¶
func (*JsonNode) AsJsonNode ¶
func (JsonNode) AsNullNode ¶
func (JsonNode) AsNumberNode ¶
func (_ JsonNode) AsNumberNode() (*NumberNode, error)
func (JsonNode) AsOffsetDateTimeNode ¶
func (_ JsonNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
func (JsonNode) AsPathNode ¶
func (JsonNode) AsPatternNode ¶
func (_ JsonNode) AsPatternNode() (*PatternNode, error)
func (JsonNode) AsPredicateNode ¶
func (_ JsonNode) AsPredicateNode() (*PredicateNode, error)
func (JsonNode) AsStringNode ¶
func (_ JsonNode) AsStringNode() (*StringNode, error)
func (JsonNode) AsUndefinedNode ¶
func (_ JsonNode) AsUndefinedNode() (*UndefinedNode, error)
func (JsonNode) AsValueListNode ¶
func (_ JsonNode) AsValueListNode() (*ValueListNode, error)
func (*JsonNode) AsValueListNodeByPredicateContext ¶
func (n *JsonNode) AsValueListNodeByPredicateContext(ctx common.PredicateContext) (ValueNode, error)
func (*JsonNode) EqualsByPredicateContext ¶
func (JsonNode) IsBooleanNode ¶
func (n JsonNode) IsBooleanNode() bool
func (JsonNode) IsClassNode ¶
func (n JsonNode) IsClassNode() bool
func (*JsonNode) IsJsonNode ¶
func (JsonNode) IsNullNode ¶
func (n JsonNode) IsNullNode() bool
func (JsonNode) IsNumberNode ¶
func (n JsonNode) IsNumberNode() bool
func (JsonNode) IsOffsetDateTimeNode ¶
func (n JsonNode) IsOffsetDateTimeNode() bool
func (JsonNode) IsPathNode ¶
func (n JsonNode) IsPathNode() bool
func (JsonNode) IsPatternNode ¶
func (n JsonNode) IsPatternNode() bool
func (JsonNode) IsPredicateNode ¶
func (n JsonNode) IsPredicateNode() bool
func (JsonNode) IsStringNode ¶
func (n JsonNode) IsStringNode() bool
func (JsonNode) IsUndefinedNode ¶
func (n JsonNode) IsUndefinedNode() bool
func (JsonNode) IsValueListNode ¶
func (n JsonNode) IsValueListNode() bool
type LogicalExpressionNode ¶
type LogicalExpressionNode struct {
// contains filtered or unexported fields
}
LogicalExpressionNode ----
func CreateLogicalAnd ¶
func CreateLogicalAnd(left ExpressionNode, right ExpressionNode) *LogicalExpressionNode
func CreateLogicalAndByList ¶
func CreateLogicalAndByList(operands []ExpressionNode) *LogicalExpressionNode
func CreateLogicalNot ¶
func CreateLogicalNot(op ExpressionNode) *LogicalExpressionNode
func CreateLogicalOr ¶
func CreateLogicalOr(left ExpressionNode, right ExpressionNode) *LogicalExpressionNode
func CreateLogicalOrByList ¶
func CreateLogicalOrByList(operands []ExpressionNode) *LogicalExpressionNode
func (*LogicalExpressionNode) And ¶
func (e *LogicalExpressionNode) And(other *LogicalExpressionNode) *LogicalExpressionNode
func (*LogicalExpressionNode) Append ¶
func (e *LogicalExpressionNode) Append(node ExpressionNode) *LogicalExpressionNode
func (*LogicalExpressionNode) Apply ¶
func (e *LogicalExpressionNode) Apply(ctx common.PredicateContext) (bool, error)
func (*LogicalExpressionNode) ExpressionNodeLabel ¶
func (e *LogicalExpressionNode) ExpressionNodeLabel()
func (*LogicalExpressionNode) GetOperator ¶
func (e *LogicalExpressionNode) GetOperator() string
func (*LogicalExpressionNode) Or ¶
func (e *LogicalExpressionNode) Or(other *LogicalExpressionNode) *LogicalExpressionNode
func (*LogicalExpressionNode) String ¶
func (e *LogicalExpressionNode) String() string
type NullNode ¶
type NullNode struct {
// contains filtered or unexported fields
}
NullNode -----------
func CreateNullNode ¶
func CreateNullNode() *NullNode
func (NullNode) AsBooleanNode ¶
func (_ NullNode) AsBooleanNode() (*BooleanNode, error)
func (NullNode) AsClassNode ¶
func (NullNode) AsJsonNode ¶
func (*NullNode) AsNullNode ¶
func (NullNode) AsNumberNode ¶
func (_ NullNode) AsNumberNode() (*NumberNode, error)
func (NullNode) AsOffsetDateTimeNode ¶
func (_ NullNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
func (NullNode) AsPathNode ¶
func (NullNode) AsPatternNode ¶
func (_ NullNode) AsPatternNode() (*PatternNode, error)
func (NullNode) AsPredicateNode ¶
func (_ NullNode) AsPredicateNode() (*PredicateNode, error)
func (NullNode) AsStringNode ¶
func (_ NullNode) AsStringNode() (*StringNode, error)
func (NullNode) AsUndefinedNode ¶
func (_ NullNode) AsUndefinedNode() (*UndefinedNode, error)
func (NullNode) AsValueListNode ¶
func (_ NullNode) AsValueListNode() (*ValueListNode, error)
func (NullNode) IsBooleanNode ¶
func (n NullNode) IsBooleanNode() bool
func (NullNode) IsClassNode ¶
func (n NullNode) IsClassNode() bool
func (NullNode) IsJsonNode ¶
func (n NullNode) IsJsonNode() bool
func (*NullNode) IsNullNode ¶
func (NullNode) IsNumberNode ¶
func (n NullNode) IsNumberNode() bool
func (NullNode) IsOffsetDateTimeNode ¶
func (n NullNode) IsOffsetDateTimeNode() bool
func (NullNode) IsPathNode ¶
func (n NullNode) IsPathNode() bool
func (NullNode) IsPatternNode ¶
func (n NullNode) IsPatternNode() bool
func (NullNode) IsPredicateNode ¶
func (n NullNode) IsPredicateNode() bool
func (NullNode) IsStringNode ¶
func (n NullNode) IsStringNode() bool
func (NullNode) IsUndefinedNode ¶
func (n NullNode) IsUndefinedNode() bool
func (NullNode) IsValueListNode ¶
func (n NullNode) IsValueListNode() bool
type NumberNode ¶
type NumberNode struct {
// contains filtered or unexported fields
}
NumberNode -----------
func CreateNumberNode ¶
func CreateNumberNode(decimal2 *decimal.Decimal) *NumberNode
func CreateNumberNodeByString ¶
func CreateNumberNodeByString(str string) (*NumberNode, error)
func (NumberNode) AsBooleanNode ¶
func (_ NumberNode) AsBooleanNode() (*BooleanNode, error)
func (NumberNode) AsClassNode ¶
func (NumberNode) AsJsonNode ¶
func (NumberNode) AsNullNode ¶
func (*NumberNode) AsNumberNode ¶
func (n *NumberNode) AsNumberNode() (*NumberNode, error)
func (NumberNode) AsOffsetDateTimeNode ¶
func (_ NumberNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
func (NumberNode) AsPathNode ¶
func (NumberNode) AsPatternNode ¶
func (_ NumberNode) AsPatternNode() (*PatternNode, error)
func (NumberNode) AsPredicateNode ¶
func (_ NumberNode) AsPredicateNode() (*PredicateNode, error)
func (*NumberNode) AsStringNode ¶
func (n *NumberNode) AsStringNode() (*StringNode, error)
func (NumberNode) AsUndefinedNode ¶
func (_ NumberNode) AsUndefinedNode() (*UndefinedNode, error)
func (NumberNode) AsValueListNode ¶
func (_ NumberNode) AsValueListNode() (*ValueListNode, error)
func (*NumberNode) Equals ¶
func (n *NumberNode) Equals(o interface{}) bool
func (*NumberNode) GetNumber ¶
func (n *NumberNode) GetNumber() *decimal.Decimal
func (NumberNode) IsBooleanNode ¶
func (n NumberNode) IsBooleanNode() bool
func (NumberNode) IsClassNode ¶
func (n NumberNode) IsClassNode() bool
func (NumberNode) IsJsonNode ¶
func (n NumberNode) IsJsonNode() bool
func (NumberNode) IsNullNode ¶
func (n NumberNode) IsNullNode() bool
func (*NumberNode) IsNumberNode ¶
func (n *NumberNode) IsNumberNode() bool
func (NumberNode) IsOffsetDateTimeNode ¶
func (n NumberNode) IsOffsetDateTimeNode() bool
func (NumberNode) IsPathNode ¶
func (n NumberNode) IsPathNode() bool
func (NumberNode) IsPatternNode ¶
func (n NumberNode) IsPatternNode() bool
func (NumberNode) IsPredicateNode ¶
func (n NumberNode) IsPredicateNode() bool
func (*NumberNode) IsStringNode ¶
func (n *NumberNode) IsStringNode() bool
func (NumberNode) IsUndefinedNode ¶
func (n NumberNode) IsUndefinedNode() bool
func (NumberNode) IsValueListNode ¶
func (n NumberNode) IsValueListNode() bool
func (*NumberNode) String ¶
func (n *NumberNode) String() string
func (*NumberNode) TypeOf ¶
func (n *NumberNode) TypeOf(ctx common.PredicateContext) reflect.Kind
type OffsetDateTime ¶
type OffsetDateTime struct {
}
OffsetDateTime -----
func (*OffsetDateTime) String ¶
func (o *OffsetDateTime) String() string
type OffsetDateTimeNode ¶
type OffsetDateTimeNode struct {
// contains filtered or unexported fields
}
OffsetDateTimeNode -----------
func CreateOffsetDateTimeNode ¶
func CreateOffsetDateTimeNode(str string) *OffsetDateTimeNode
func (OffsetDateTimeNode) AsBooleanNode ¶
func (_ OffsetDateTimeNode) AsBooleanNode() (*BooleanNode, error)
func (OffsetDateTimeNode) AsClassNode ¶
func (OffsetDateTimeNode) AsJsonNode ¶
func (OffsetDateTimeNode) AsNullNode ¶
func (OffsetDateTimeNode) AsNumberNode ¶
func (_ OffsetDateTimeNode) AsNumberNode() (*NumberNode, error)
func (*OffsetDateTimeNode) AsOffsetDateTimeNode ¶
func (n *OffsetDateTimeNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
func (OffsetDateTimeNode) AsPathNode ¶
func (OffsetDateTimeNode) AsPatternNode ¶
func (_ OffsetDateTimeNode) AsPatternNode() (*PatternNode, error)
func (OffsetDateTimeNode) AsPredicateNode ¶
func (_ OffsetDateTimeNode) AsPredicateNode() (*PredicateNode, error)
func (*OffsetDateTimeNode) AsStringNode ¶
func (n *OffsetDateTimeNode) AsStringNode() (*StringNode, error)
func (OffsetDateTimeNode) AsUndefinedNode ¶
func (_ OffsetDateTimeNode) AsUndefinedNode() (*UndefinedNode, error)
func (OffsetDateTimeNode) AsValueListNode ¶
func (_ OffsetDateTimeNode) AsValueListNode() (*ValueListNode, error)
func (*OffsetDateTimeNode) Equals ¶
func (n *OffsetDateTimeNode) Equals(o interface{}) bool
func (*OffsetDateTimeNode) GetDate ¶
func (n *OffsetDateTimeNode) GetDate() *OffsetDateTime
func (OffsetDateTimeNode) IsBooleanNode ¶
func (n OffsetDateTimeNode) IsBooleanNode() bool
func (OffsetDateTimeNode) IsClassNode ¶
func (n OffsetDateTimeNode) IsClassNode() bool
func (OffsetDateTimeNode) IsJsonNode ¶
func (n OffsetDateTimeNode) IsJsonNode() bool
func (OffsetDateTimeNode) IsNullNode ¶
func (n OffsetDateTimeNode) IsNullNode() bool
func (OffsetDateTimeNode) IsNumberNode ¶
func (n OffsetDateTimeNode) IsNumberNode() bool
func (*OffsetDateTimeNode) IsOffsetDateTimeNode ¶
func (n *OffsetDateTimeNode) IsOffsetDateTimeNode() bool
func (OffsetDateTimeNode) IsPathNode ¶
func (n OffsetDateTimeNode) IsPathNode() bool
func (OffsetDateTimeNode) IsPatternNode ¶
func (n OffsetDateTimeNode) IsPatternNode() bool
func (OffsetDateTimeNode) IsPredicateNode ¶
func (n OffsetDateTimeNode) IsPredicateNode() bool
func (*OffsetDateTimeNode) IsStringNode ¶
func (n *OffsetDateTimeNode) IsStringNode() bool
func (OffsetDateTimeNode) IsUndefinedNode ¶
func (n OffsetDateTimeNode) IsUndefinedNode() bool
func (OffsetDateTimeNode) IsValueListNode ¶
func (n OffsetDateTimeNode) IsValueListNode() bool
func (*OffsetDateTimeNode) String ¶
func (n *OffsetDateTimeNode) String() string
func (*OffsetDateTimeNode) TypeOf ¶
func (n *OffsetDateTimeNode) TypeOf(ctx common.PredicateContext) reflect.Kind
type PathCompiler ¶
type PathCompiler struct {
// contains filtered or unexported fields
}
type PathNode ¶
type PathNode struct {
// contains filtered or unexported fields
}
PathNode ------PathNode-----
func CreatePathNode ¶
func (PathNode) AsBooleanNode ¶
func (_ PathNode) AsBooleanNode() (*BooleanNode, error)
func (PathNode) AsClassNode ¶
func (*PathNode) AsExistsCheck ¶
func (PathNode) AsJsonNode ¶
func (PathNode) AsNullNode ¶
func (PathNode) AsNumberNode ¶
func (_ PathNode) AsNumberNode() (*NumberNode, error)
func (PathNode) AsOffsetDateTimeNode ¶
func (_ PathNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
func (*PathNode) AsPathNode ¶
func (PathNode) AsPatternNode ¶
func (_ PathNode) AsPatternNode() (*PatternNode, error)
func (PathNode) AsPredicateNode ¶
func (_ PathNode) AsPredicateNode() (*PredicateNode, error)
func (PathNode) AsStringNode ¶
func (_ PathNode) AsStringNode() (*StringNode, error)
func (PathNode) AsUndefinedNode ¶
func (_ PathNode) AsUndefinedNode() (*UndefinedNode, error)
func (PathNode) AsValueListNode ¶
func (_ PathNode) AsValueListNode() (*ValueListNode, error)
func (*PathNode) Evaluate ¶
func (pn *PathNode) Evaluate(ctx common.PredicateContext) (ValueNode, error)
func (PathNode) IsBooleanNode ¶
func (n PathNode) IsBooleanNode() bool
func (PathNode) IsClassNode ¶
func (n PathNode) IsClassNode() bool
func (*PathNode) IsExistsCheck ¶
func (PathNode) IsJsonNode ¶
func (n PathNode) IsJsonNode() bool
func (PathNode) IsNullNode ¶
func (n PathNode) IsNullNode() bool
func (PathNode) IsNumberNode ¶
func (n PathNode) IsNumberNode() bool
func (PathNode) IsOffsetDateTimeNode ¶
func (n PathNode) IsOffsetDateTimeNode() bool
func (*PathNode) IsPathNode ¶
func (PathNode) IsPatternNode ¶
func (n PathNode) IsPatternNode() bool
func (PathNode) IsPredicateNode ¶
func (n PathNode) IsPredicateNode() bool
func (PathNode) IsStringNode ¶
func (n PathNode) IsStringNode() bool
func (PathNode) IsUndefinedNode ¶
func (n PathNode) IsUndefinedNode() bool
func (PathNode) IsValueListNode ¶
func (n PathNode) IsValueListNode() bool
func (*PathNode) ShouldExists ¶
type PatternNode ¶
type PatternNode struct {
// contains filtered or unexported fields
}
PatternNode -------patternNode------
func CreatePatternNodeByRegexp ¶
func CreatePatternNodeByRegexp(pattern *regexp.Regexp) *PatternNode
func CreatePatternNodeByString ¶
func CreatePatternNodeByString(pattern string) (*PatternNode, error)
func (PatternNode) AsBooleanNode ¶
func (_ PatternNode) AsBooleanNode() (*BooleanNode, error)
func (PatternNode) AsClassNode ¶
func (PatternNode) AsJsonNode ¶
func (PatternNode) AsNullNode ¶
func (PatternNode) AsNumberNode ¶
func (_ PatternNode) AsNumberNode() (*NumberNode, error)
func (PatternNode) AsOffsetDateTimeNode ¶
func (_ PatternNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
func (PatternNode) AsPathNode ¶
func (*PatternNode) AsPatternNode ¶
func (pn *PatternNode) AsPatternNode() (*PatternNode, error)
func (PatternNode) AsPredicateNode ¶
func (_ PatternNode) AsPredicateNode() (*PredicateNode, error)
func (PatternNode) AsStringNode ¶
func (_ PatternNode) AsStringNode() (*StringNode, error)
func (PatternNode) AsUndefinedNode ¶
func (_ PatternNode) AsUndefinedNode() (*UndefinedNode, error)
func (PatternNode) AsValueListNode ¶
func (_ PatternNode) AsValueListNode() (*ValueListNode, error)
func (*PatternNode) Equals ¶
func (pn *PatternNode) Equals(o interface{}) bool
func (*PatternNode) GetCompiledPattern ¶
func (pn *PatternNode) GetCompiledPattern() *regexp.Regexp
func (PatternNode) IsBooleanNode ¶
func (n PatternNode) IsBooleanNode() bool
func (PatternNode) IsClassNode ¶
func (n PatternNode) IsClassNode() bool
func (PatternNode) IsJsonNode ¶
func (n PatternNode) IsJsonNode() bool
func (PatternNode) IsNullNode ¶
func (n PatternNode) IsNullNode() bool
func (PatternNode) IsNumberNode ¶
func (n PatternNode) IsNumberNode() bool
func (PatternNode) IsOffsetDateTimeNode ¶
func (n PatternNode) IsOffsetDateTimeNode() bool
func (PatternNode) IsPathNode ¶
func (n PatternNode) IsPathNode() bool
func (*PatternNode) IsPatternNode ¶
func (pn *PatternNode) IsPatternNode() bool
func (PatternNode) IsPredicateNode ¶
func (n PatternNode) IsPredicateNode() bool
func (PatternNode) IsStringNode ¶
func (n PatternNode) IsStringNode() bool
func (PatternNode) IsUndefinedNode ¶
func (n PatternNode) IsUndefinedNode() bool
func (PatternNode) IsValueListNode ¶
func (n PatternNode) IsValueListNode() bool
func (*PatternNode) String ¶
func (pn *PatternNode) String() string
func (*PatternNode) TypeOf ¶
func (pn *PatternNode) TypeOf(ctx common.PredicateContext) reflect.Kind
type PredicateNode ¶
type PredicateNode struct {
// contains filtered or unexported fields
}
PredicateNode -----------
func CreatePredicateNode ¶
func CreatePredicateNode(p common.Predicate) *PredicateNode
func (PredicateNode) AsBooleanNode ¶
func (_ PredicateNode) AsBooleanNode() (*BooleanNode, error)
func (PredicateNode) AsClassNode ¶
func (PredicateNode) AsJsonNode ¶
func (PredicateNode) AsNullNode ¶
func (PredicateNode) AsNumberNode ¶
func (_ PredicateNode) AsNumberNode() (*NumberNode, error)
func (PredicateNode) AsOffsetDateTimeNode ¶
func (_ PredicateNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
func (PredicateNode) AsPathNode ¶
func (PredicateNode) AsPatternNode ¶
func (_ PredicateNode) AsPatternNode() (*PatternNode, error)
func (*PredicateNode) AsPredicateNode ¶
func (n *PredicateNode) AsPredicateNode() (*PredicateNode, error)
func (PredicateNode) AsStringNode ¶
func (_ PredicateNode) AsStringNode() (*StringNode, error)
func (PredicateNode) AsUndefinedNode ¶
func (_ PredicateNode) AsUndefinedNode() (*UndefinedNode, error)
func (PredicateNode) AsValueListNode ¶
func (_ PredicateNode) AsValueListNode() (*ValueListNode, error)
func (*PredicateNode) Equals ¶
func (n *PredicateNode) Equals(o interface{}) bool
func (*PredicateNode) GetPredicate ¶
func (n *PredicateNode) GetPredicate() common.Predicate
func (PredicateNode) IsBooleanNode ¶
func (n PredicateNode) IsBooleanNode() bool
func (PredicateNode) IsClassNode ¶
func (n PredicateNode) IsClassNode() bool
func (PredicateNode) IsJsonNode ¶
func (n PredicateNode) IsJsonNode() bool
func (PredicateNode) IsNullNode ¶
func (n PredicateNode) IsNullNode() bool
func (PredicateNode) IsNumberNode ¶
func (n PredicateNode) IsNumberNode() bool
func (PredicateNode) IsOffsetDateTimeNode ¶
func (n PredicateNode) IsOffsetDateTimeNode() bool
func (PredicateNode) IsPathNode ¶
func (n PredicateNode) IsPathNode() bool
func (PredicateNode) IsPatternNode ¶
func (n PredicateNode) IsPatternNode() bool
func (*PredicateNode) IsPredicateNode ¶
func (n *PredicateNode) IsPredicateNode() bool
func (PredicateNode) IsStringNode ¶
func (n PredicateNode) IsStringNode() bool
func (PredicateNode) IsUndefinedNode ¶
func (n PredicateNode) IsUndefinedNode() bool
func (PredicateNode) IsValueListNode ¶
func (n PredicateNode) IsValueListNode() bool
func (*PredicateNode) String ¶
func (n *PredicateNode) String() string
func (*PredicateNode) TypeOf ¶
func (n *PredicateNode) TypeOf(ctx common.PredicateContext) reflect.Kind
type RelationExpressionNode ¶
type RelationExpressionNode struct {
// contains filtered or unexported fields
}
func CreateRelationExpressionNode ¶
func CreateRelationExpressionNode(valueNode1 ValueNode, operator string, valueNode2 ValueNode) *RelationExpressionNode
func (*RelationExpressionNode) Apply ¶
func (e *RelationExpressionNode) Apply(ctx common.PredicateContext) (bool, error)
func (*RelationExpressionNode) ExpressionNodeLabel ¶
func (e *RelationExpressionNode) ExpressionNodeLabel()
func (*RelationExpressionNode) String ¶
func (e *RelationExpressionNode) String() string
type StringNode ¶
type StringNode struct {
// contains filtered or unexported fields
}
StringNode -----------
func CreateStringNode ¶
func CreateStringNode(str string, escape bool) (*StringNode, error)
func (StringNode) AsBooleanNode ¶
func (_ StringNode) AsBooleanNode() (*BooleanNode, error)
func (StringNode) AsClassNode ¶
func (StringNode) AsJsonNode ¶
func (StringNode) AsNullNode ¶
func (*StringNode) AsNumberNode ¶
func (n *StringNode) AsNumberNode() (*NumberNode, error)
func (StringNode) AsOffsetDateTimeNode ¶
func (_ StringNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
func (StringNode) AsPathNode ¶
func (StringNode) AsPatternNode ¶
func (_ StringNode) AsPatternNode() (*PatternNode, error)
func (StringNode) AsPredicateNode ¶
func (_ StringNode) AsPredicateNode() (*PredicateNode, error)
func (*StringNode) AsStringNode ¶
func (n *StringNode) AsStringNode() (*StringNode, error)
func (StringNode) AsUndefinedNode ¶
func (_ StringNode) AsUndefinedNode() (*UndefinedNode, error)
func (StringNode) AsValueListNode ¶
func (_ StringNode) AsValueListNode() (*ValueListNode, error)
func (*StringNode) Contains ¶
func (n *StringNode) Contains(str1 string) bool
func (*StringNode) Equals ¶
func (n *StringNode) Equals(o interface{}) bool
func (*StringNode) GetString ¶
func (n *StringNode) GetString() string
func (StringNode) IsBooleanNode ¶
func (n StringNode) IsBooleanNode() bool
func (StringNode) IsClassNode ¶
func (n StringNode) IsClassNode() bool
func (*StringNode) IsEmpty ¶
func (n *StringNode) IsEmpty() bool
func (StringNode) IsJsonNode ¶
func (n StringNode) IsJsonNode() bool
func (StringNode) IsNullNode ¶
func (n StringNode) IsNullNode() bool
func (*StringNode) IsNumberNode ¶
func (n *StringNode) IsNumberNode() bool
func (StringNode) IsOffsetDateTimeNode ¶
func (n StringNode) IsOffsetDateTimeNode() bool
func (StringNode) IsPathNode ¶
func (n StringNode) IsPathNode() bool
func (StringNode) IsPatternNode ¶
func (n StringNode) IsPatternNode() bool
func (StringNode) IsPredicateNode ¶
func (n StringNode) IsPredicateNode() bool
func (*StringNode) IsStringNode ¶
func (n *StringNode) IsStringNode() bool
func (StringNode) IsUndefinedNode ¶
func (n StringNode) IsUndefinedNode() bool
func (StringNode) IsValueListNode ¶
func (n StringNode) IsValueListNode() bool
func (*StringNode) Length ¶
func (n *StringNode) Length() int
func (*StringNode) String ¶
func (n *StringNode) String() string
func (*StringNode) TypeOf ¶
func (n *StringNode) TypeOf(ctx common.PredicateContext) reflect.Kind
type UndefinedNode ¶
type UndefinedNode struct {
// contains filtered or unexported fields
}
UndefinedNode -----------
func NewUndefinedNode ¶
func NewUndefinedNode() *UndefinedNode
func (UndefinedNode) AsBooleanNode ¶
func (_ UndefinedNode) AsBooleanNode() (*BooleanNode, error)
func (UndefinedNode) AsClassNode ¶
func (UndefinedNode) AsJsonNode ¶
func (UndefinedNode) AsNullNode ¶
func (UndefinedNode) AsNumberNode ¶
func (_ UndefinedNode) AsNumberNode() (*NumberNode, error)
func (UndefinedNode) AsOffsetDateTimeNode ¶
func (_ UndefinedNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
func (UndefinedNode) AsPathNode ¶
func (UndefinedNode) AsPatternNode ¶
func (_ UndefinedNode) AsPatternNode() (*PatternNode, error)
func (UndefinedNode) AsPredicateNode ¶
func (_ UndefinedNode) AsPredicateNode() (*PredicateNode, error)
func (UndefinedNode) AsStringNode ¶
func (_ UndefinedNode) AsStringNode() (*StringNode, error)
func (*UndefinedNode) AsUndefinedNode ¶
func (n *UndefinedNode) AsUndefinedNode() (*UndefinedNode, error)
func (UndefinedNode) AsValueListNode ¶
func (_ UndefinedNode) AsValueListNode() (*ValueListNode, error)
func (*UndefinedNode) Equals ¶
func (n *UndefinedNode) Equals(o interface{}) bool
func (UndefinedNode) IsBooleanNode ¶
func (n UndefinedNode) IsBooleanNode() bool
func (UndefinedNode) IsClassNode ¶
func (n UndefinedNode) IsClassNode() bool
func (UndefinedNode) IsJsonNode ¶
func (n UndefinedNode) IsJsonNode() bool
func (UndefinedNode) IsNullNode ¶
func (n UndefinedNode) IsNullNode() bool
func (UndefinedNode) IsNumberNode ¶
func (n UndefinedNode) IsNumberNode() bool
func (UndefinedNode) IsOffsetDateTimeNode ¶
func (n UndefinedNode) IsOffsetDateTimeNode() bool
func (UndefinedNode) IsPathNode ¶
func (n UndefinedNode) IsPathNode() bool
func (UndefinedNode) IsPatternNode ¶
func (n UndefinedNode) IsPatternNode() bool
func (UndefinedNode) IsPredicateNode ¶
func (n UndefinedNode) IsPredicateNode() bool
func (UndefinedNode) IsStringNode ¶
func (n UndefinedNode) IsStringNode() bool
func (*UndefinedNode) IsUndefinedNode ¶
func (n *UndefinedNode) IsUndefinedNode() bool
func (UndefinedNode) IsValueListNode ¶
func (n UndefinedNode) IsValueListNode() bool
func (*UndefinedNode) String ¶
func (n *UndefinedNode) String() string
func (*UndefinedNode) TypeOf ¶
func (n *UndefinedNode) TypeOf(ctx common.PredicateContext) reflect.Kind
type ValueListNode ¶
type ValueListNode struct {
// contains filtered or unexported fields
}
ValueListNode -----------
func CreateValueListNode ¶
func CreateValueListNode(list interface{}) (*ValueListNode, error)
func (ValueListNode) AsBooleanNode ¶
func (_ ValueListNode) AsBooleanNode() (*BooleanNode, error)
func (ValueListNode) AsClassNode ¶
func (ValueListNode) AsJsonNode ¶
func (ValueListNode) AsNullNode ¶
func (ValueListNode) AsNumberNode ¶
func (_ ValueListNode) AsNumberNode() (*NumberNode, error)
func (ValueListNode) AsOffsetDateTimeNode ¶
func (_ ValueListNode) AsOffsetDateTimeNode() (*OffsetDateTimeNode, error)
func (ValueListNode) AsPathNode ¶
func (ValueListNode) AsPatternNode ¶
func (_ ValueListNode) AsPatternNode() (*PatternNode, error)
func (ValueListNode) AsPredicateNode ¶
func (_ ValueListNode) AsPredicateNode() (*PredicateNode, error)
func (ValueListNode) AsStringNode ¶
func (_ ValueListNode) AsStringNode() (*StringNode, error)
func (ValueListNode) AsUndefinedNode ¶
func (_ ValueListNode) AsUndefinedNode() (*UndefinedNode, error)
func (*ValueListNode) AsValueListNode ¶
func (v *ValueListNode) AsValueListNode() (*ValueListNode, error)
func (*ValueListNode) Contains ¶
func (v *ValueListNode) Contains(node ValueNode) bool
func (*ValueListNode) Equals ¶
func (v *ValueListNode) Equals(o interface{}) bool
func (*ValueListNode) GetNodes ¶
func (v *ValueListNode) GetNodes() []ValueNode
func (ValueListNode) IsBooleanNode ¶
func (n ValueListNode) IsBooleanNode() bool
func (ValueListNode) IsClassNode ¶
func (n ValueListNode) IsClassNode() bool
func (ValueListNode) IsJsonNode ¶
func (n ValueListNode) IsJsonNode() bool
func (ValueListNode) IsNullNode ¶
func (n ValueListNode) IsNullNode() bool
func (ValueListNode) IsNumberNode ¶
func (n ValueListNode) IsNumberNode() bool
func (ValueListNode) IsOffsetDateTimeNode ¶
func (n ValueListNode) IsOffsetDateTimeNode() bool
func (ValueListNode) IsPathNode ¶
func (n ValueListNode) IsPathNode() bool
func (ValueListNode) IsPatternNode ¶
func (n ValueListNode) IsPatternNode() bool
func (ValueListNode) IsPredicateNode ¶
func (n ValueListNode) IsPredicateNode() bool
func (ValueListNode) IsStringNode ¶
func (n ValueListNode) IsStringNode() bool
func (ValueListNode) IsUndefinedNode ¶
func (n ValueListNode) IsUndefinedNode() bool
func (*ValueListNode) IsValueListNode ¶
func (v *ValueListNode) IsValueListNode() bool
func (*ValueListNode) String ¶
func (v *ValueListNode) String() string
func (*ValueListNode) SubSetOf ¶
func (v *ValueListNode) SubSetOf(right *ValueListNode) bool
func (*ValueListNode) TypeOf ¶
func (v *ValueListNode) TypeOf(ctx common.PredicateContext) reflect.Kind
Click to show internal directories.
Click to hide internal directories.