JPathExpression

Namespace: SnowBank.Data.Json.JPath · class

Implements: IEquatable<JPathExpression>

Base class of a node in a JPath query AST

Properties

Current

static JPathExpression Current { get; }

Returns the current node (relative to the current scope)

Root

static JPathExpression Root { get; }

Returns the root node of the JSON document

Methods

All

JPathExpression All()

Returns a JPathExpression that will return all the elements of this array

static JPathExpression All(JPathExpression node)

Unwrap elle the items of an array

AndAlso

static JPathExpression AndAlso(JPathExpression left, JPathExpression right)

Returns a JPathExpression that will apply match if both expressions are true

At

JPathExpression At(int index)

Returns a JPathExpression that will return the element at the specified index in this array

static JPathExpression At(JPathExpression node, int index)

Returns a JPathExpression that will return the element at the specified index in an array

BinaryOperator

static JPathExpression BinaryOperator(ExpressionType op, JPathExpression node, string literal)

Returns a JPathExpression that will apply a binary operator between an expression and a string constant

static JPathExpression BinaryOperator(ExpressionType op, JPathExpression node, JsonValue literal)

Returns a JPathExpression that will apply a binary operator between an expression and a constant

static JPathExpression BinaryOperator(ExpressionType op, JPathExpression node, JPathExpression literal)

Returns a JPathExpression that will apply a binary operator between two expressions

EqualTo

JPathExpression EqualTo(string literal)

Returns a JPathExpression that tests if this expression is equal to a string constant

JPathExpression EqualTo(JsonValue literal)

Returns a JPathExpression that tests if this expression is equal to a constant

static JPathExpression EqualTo(JPathExpression node, string literal)

Returns a JPathExpression that tests if an expression is equal to a string constant

static JPathExpression EqualTo(JPathExpression node, JsonValue literal)

Returns a JPathExpression that tests if an expression is equal to a constant

Equals

bool Equals(object obj)

bool Equals(JPathExpression other)

GetHashCode

int GetHashCode()

GreaterThan

JPathExpression GreaterThan(JsonValue literal)

Returns a JPathExpression that tests if this expression is greater than a constant

static JPathExpression GreaterThan(JPathExpression node, JsonValue literal)

Returns a JPathExpression that tests if an expression is greater than a constant

GreaterThanOrEqual

static JPathExpression GreaterThanOrEqual(JPathExpression node, JsonValue literal)

Returns a JPathExpression that tests if an expression is greater than or equal to a constant

GreaterThanOrEqualTo

JPathExpression GreaterThanOrEqualTo(JsonValue literal)

Returns a JPathExpression that tests if this expression is greater than or equal to a constant

LessThan

JPathExpression LessThan(JsonValue literal)

Returns a JPathExpression that tests if this expression is less than a constant

static JPathExpression LessThan(JPathExpression node, JsonValue literal)

Returns a JPathExpression that tests if an expression is less than a constant

LessThanOrEqual

static JPathExpression LessThanOrEqual(JPathExpression node, JsonValue literal)

Returns a JPathExpression that tests if an expression is less than or equal to a constant

LessThanOrEqualTo

JPathExpression LessThanOrEqualTo(JsonValue literal)

Returns a JPathExpression that tests if this expression is less than or equal to a constant

Matching

JPathExpression Matching(JPathExpression filter)

Returns a JPathExpression that applies a filter on this expression

static JPathExpression Matching(JPathExpression node, JPathExpression filter)

Returns a JPathExpression that applies a filter on another expression

Not

JPathExpression Not()

Returns a JPathExpression that inverses the result of this expression

static JPathExpression Not(JPathExpression node)

Returns a JPathExpression that inverses the result of another expression

NotEqualTo

JPathExpression NotEqualTo(string literal)

Returns a JPathExpression that tests if this expression is not equal to a string constant

JPathExpression NotEqualTo(JsonValue literal)

Returns a JPathExpression that tests if this expression is not equal to a constant

static JPathExpression NotEqualTo(JPathExpression node, string literal)

Returns a JPathExpression that tests if an expression is not equal to a string constant

static JPathExpression NotEqualTo(JPathExpression node, JsonValue literal)

Returns a JPathExpression that tests if an expression is not equal to a constant

OrElse

static JPathExpression OrElse(JPathExpression left, JPathExpression right)

Returns a JPathExpression that will apply match if at least one expression is true

Property

JPathExpression Property(string name)

Returns a JPathExpression that extracts the field this object with the specified name

static JPathExpression Property(JPathExpression node, string name)

Returns a JPathExpression that extracts the field of an object with the specified name

Quote

JPathExpression Quote()

Returns a JPathExpression that quotes this expression

static JPathExpression Quote(JPathExpression node)

Returns a JPathExpression that quotes another expression