github.com/Axway/agent-sdk@v1.1.101/pkg/filter/expr_any.go (about) 1 package filter 2 3 // AnyExpr - Any implementation. Returns all filter data values to be checked against 4 type AnyExpr struct { 5 FilterType string 6 } 7 8 func newAnyExpr(filterType string) CallExpr { 9 return &AnyExpr{ 10 FilterType: filterType, 11 } 12 } 13 14 // GetType - Returns the CallType 15 func (e *AnyExpr) GetType() CallType { 16 return ANY 17 } 18 19 // Execute - Returns all filter data values to be checked against 20 func (e *AnyExpr) Execute(data Data) (interface{}, error) { 21 return data.GetValues(e.FilterType), nil 22 } 23 24 func (e *AnyExpr) String() string { 25 return e.FilterType + ".Any()" 26 }