Class P
A P is a predicate of the form Func<object, bool>.
That is, given some object, return true or false.
Assembly: Gremlin.Net.dll
Syntax
public class P : IPredicate
Constructors
P(string, dynamic?, P?)
Initializes a new instance of the P class.
Declaration
public P(string operatorName, dynamic? value, P? other = null)
Parameters
Type |
Name |
Description |
string |
operatorName |
The name of the predicate.
|
dynamic |
value |
The value of the predicate.
|
P |
other |
An optional other predicate that is used as an argument for this predicate.
|
Properties
OperatorName
Gets the name of the predicate.
Declaration
public string OperatorName { get; }
Property Value
Other
Gets an optional other predicate that is used as an argument for this predicate.
Declaration
Property Value
Value
Gets the value of the predicate.
Declaration
public dynamic? Value { get; }
Property Value
Methods
And(P)
Returns a composed predicate that represents a logical AND of this predicate and another.
Declaration
public P And(P otherPredicate)
Parameters
Type |
Name |
Description |
P |
otherPredicate |
A predicate that will be logically-ANDed with this predicate.
|
Returns
Type |
Description |
P |
The composed predicate.
|
Between(params object[]?)
Declaration
public static P Between(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
Eq(params object[]?)
Declaration
public static P Eq(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
Gt(params object[]?)
Declaration
public static P Gt(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
Gte(params object[]?)
Declaration
public static P Gte(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
Inside(params object[]?)
Declaration
public static P Inside(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
Lt(params object[]?)
Declaration
public static P Lt(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
Lte(params object[]?)
Declaration
public static P Lte(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
Neq(params object[]?)
Declaration
public static P Neq(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
Not(params object[]?)
Declaration
public static P Not(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
Or(P)
Returns a composed predicate that represents a logical OR of this predicate and another.
Declaration
public P Or(P otherPredicate)
Parameters
Type |
Name |
Description |
P |
otherPredicate |
A predicate that will be logically-ORed with this predicate.
|
Returns
Type |
Description |
P |
The composed predicate.
|
Outside(params object[]?)
Declaration
public static P Outside(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
Test(params object[]?)
Declaration
public static P Test(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
ToString()
Declaration
public override string ToString()
Returns
Overrides
Within(params object[]?)
Declaration
public static P Within(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
Without(params object[]?)
Declaration
public static P Without(params object[]? args)
Parameters
Type |
Name |
Description |
object[] |
args |
|
Returns
Implements