Table of Contents

Class P

Namespace
Gremlin.Net.Process.Traversal
Assembly
Gremlin.Net.dll

A P is a predicate of the form Func<object, bool>. That is, given some object, return true or false.

public class P : IPredicate
Inheritance
P
Implements
Derived
Inherited Members

Constructors

P(string, dynamic?, P?)

Initializes a new instance of the P class.

public P(string operatorName, dynamic? value, P? other = null)

Parameters

operatorName string

The name of the predicate.

value dynamic

The value of the predicate.

other P

An optional other predicate that is used as an argument for this predicate.

Properties

OperatorName

Gets the name of the predicate.

public string OperatorName { get; }

Property Value

string

Other

Gets an optional other predicate that is used as an argument for this predicate.

public P? Other { get; }

Property Value

P

Value

Gets the value of the predicate.

public dynamic? Value { get; }

Property Value

dynamic

Methods

And(P)

Returns a composed predicate that represents a logical AND of this predicate and another.

public P And(P otherPredicate)

Parameters

otherPredicate P

A predicate that will be logically-ANDed with this predicate.

Returns

P

The composed predicate.

Between(params object[]?)

public static P Between(params object[]? args)

Parameters

args object[]

Returns

P

Eq(params object[]?)

public static P Eq(params object[]? args)

Parameters

args object[]

Returns

P

Gt(params object[]?)

public static P Gt(params object[]? args)

Parameters

args object[]

Returns

P

Gte(params object[]?)

public static P Gte(params object[]? args)

Parameters

args object[]

Returns

P

Inside(params object[]?)

public static P Inside(params object[]? args)

Parameters

args object[]

Returns

P

Lt(params object[]?)

public static P Lt(params object[]? args)

Parameters

args object[]

Returns

P

Lte(params object[]?)

public static P Lte(params object[]? args)

Parameters

args object[]

Returns

P

Neq(params object[]?)

public static P Neq(params object[]? args)

Parameters

args object[]

Returns

P

Not(params object[]?)

public static P Not(params object[]? args)

Parameters

args object[]

Returns

P

Or(P)

Returns a composed predicate that represents a logical OR of this predicate and another.

public P Or(P otherPredicate)

Parameters

otherPredicate P

A predicate that will be logically-ORed with this predicate.

Returns

P

The composed predicate.

Outside(params object[]?)

public static P Outside(params object[]? args)

Parameters

args object[]

Returns

P

Test(params object[]?)

public static P Test(params object[]? args)

Parameters

args object[]

Returns

P

ToString()

public override string ToString()

Returns

string

Within(params object[]?)

public static P Within(params object[]? args)

Parameters

args object[]

Returns

P

Without(params object[]?)

public static P Without(params object[]? args)

Parameters

args object[]

Returns

P