public abstract class QueryInternal
extends java.lang.Object
For internal use only.
Constructor and Description |
---|
QueryInternal() |
Modifier and Type | Method and Description |
---|---|
static DataValue |
applyFunction(QueryFunctionCall call,
StructureBase context)
Evaluate a query function call in the provided context.
|
static DataValue |
applyOperator(QueryOperatorCall call,
StructureBase context)
Evaluate a query operator call in the provided context.
|
static DataValue |
evaluate(DataValue value,
StructureBase context)
Evaluate a query expression
value in the provided context . |
static DataValue |
evaluatePath(DataPath path,
StructureBase context)
Evaluate a data path in the provided
context . |
static StringValue |
evaluateString(DataValue value,
StructureBase context)
Evaluate a string-typed query expression
value in the provided context . |
static boolean |
matchFilter(QueryFilter filter,
StructureBase context)
Return
true if a query filter evaluates to true in the provided context. |
public static DataValue applyFunction(QueryFunctionCall call, StructureBase context)
Evaluate a query function call in the provided context.
call
- Query function call expression.context
- (nullable) Structure (ComplexValue
or EntityValue
) providing the evaluation context.public static DataValue applyOperator(QueryOperatorCall call, StructureBase context)
Evaluate a query operator call in the provided context.
call
- Query operator call expression.context
- (nullable) Structure (ComplexValue
or EntityValue
) providing the evaluation context.public static DataValue evaluate(DataValue value, StructureBase context)
Evaluate a query expression value
in the provided context
.
value
- (nullable) Query expression to be evaluated.context
- (nullable) Structure (ComplexValue
or EntityValue
) providing the evaluation context.public static DataValue evaluatePath(DataPath path, StructureBase context)
Evaluate a data path in the provided context
.
public static StringValue evaluateString(DataValue value, StructureBase context)
Evaluate a string-typed query expression value
in the provided context
.
value
- (nullable) Query expression to be evaluated.context
- (nullable) Structure (ComplexValue
or EntityValue
) providing the evaluation context.string
.public static boolean matchFilter(QueryFilter filter, StructureBase context)
Return true
if a query filter evaluates to true
in the provided context.
filter
- (nullable) Query filter.context
- Structure (ComplexValue
or EntityValue
) providing the evaluation context.true
if a query filter evaluates to true
in the provided context.