Namespace: Json.Path
Inheritance: FilterSelector 🡒 object
Implemented interfaces:
- ISelector
- IEquatable<FilterSelector>
Represents a filter expression selector.
Properties
| Name | Type | Summary |
|---|---|---|
| Expression | IFilterExpression | Gets the expression. |
Methods
BuildString(StringBuilder builder)
Builds a string using a string builder.
Declaration
1
public void BuildString(StringBuilder builder)
| Parameter | Type | Description |
|---|---|---|
| builder | StringBuilder | The string builder. |
Equals(FilterSelector other)
Indicates whether the current object is equal to another object of the same type.
Declaration
1
public bool Equals(FilterSelector other)
Returns
Equals(object obj)
Determines whether the specified object is equal to the current object.
Declaration
1
public override bool Equals(object obj)
Returns
Evaluate(Node match, JsonNode rootNode)
Evaluates the selector.
Declaration
1
public IEnumerable<Node> Evaluate(Node match, JsonNode rootNode)
| Parameter | Type | Description |
|---|---|---|
| match | Node | The node to evaluate. |
| rootNode | JsonNode | The root node (typically used by filter selectors, e.g. $[?@foo < $.bar]) |
Returns
A collection of nodes.
Semantically, this is a nodelist, but leaving as IEnumerable<Node> allows for deferred execution.
GetHashCode()
Serves as the default hash function.
Declaration
1
public override int GetHashCode()
Returns
ToString()
Returns a string that represents the current object.
Declaration
1
public override string ToString()
Returns
A string that represents the current object.