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 void |
getReferenced(StringSet properties,
StringSet functions,
StringSet operators,
DataValue value)
Collect the names of properties, functions and operators referenced by the
value. |
static boolean |
immutableFilter(EntityType entityType,
QueryFilter queryFilter) |
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.
path - Data path.context - (nullable) Structure (ComplexValue or EntityValue) providing the evaluation 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 void getReferenced(StringSet properties, StringSet functions, StringSet operators, DataValue value)
Collect the names of properties, functions and operators referenced by the value.
properties - Names of referenced properties (paths will appear as "X/Y").functions - (nullable) To collect referenced functions (if this parameter is non-null).functions - (nullable) To collect referenced operators (if this parameter is non-null).value - (nullable) Value to search within for property/function/operator references.public static boolean immutableFilter(EntityType entityType, QueryFilter queryFilter)
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.