Class PQueries
java.lang.Object
tools.refinery.interpreter.matchers.psystem.queries.PQueries
Utility class for using PQueries in functional/streaming collection operations effectively
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcalculateSimpleName(String qualifiedName) Calculates the simple name related from a given qualified name by finding the part after the last '.' character.Enumerates referred queries (without duplicates) for the given bodydirectlyRequiredTypesOfDisjunction(PDisjunction disjunctBodies, boolean enumerablesOnly) Enumerates directly referred extensional relations (without duplicates) for the given formulation of a query.directlyRequiredTypesOfQuery(PQuery query, boolean enumerablesOnly) Enumerates directly referred extensional relations (without duplicates) in the canonical form of the given querystatic Set<PTraceable> getTraceables(PQuery query) Returns allPTraceables contained in the givenPQuery: itself, its bodies and their constraints.static Predicate<PParameter> parameterDirectionPredicate(PParameterDirection direction) Predicate checking for the status of selected queries
-
Method Details
-
queryStatusPredicate
Predicate checking for the status of selected queries -
directlyReferencedQueriesFunction
Enumerates referred queries (without duplicates) for the given body -
directlyRequiredTypesOfQuery
Enumerates directly referred extensional relations (without duplicates) in the canonical form of the given query- Parameters:
enumerablesOnly- only enumerable type constraints are considered- Since:
- 2.0
-
directlyRequiredTypesOfDisjunction
public static Stream<IInputKey> directlyRequiredTypesOfDisjunction(PDisjunction disjunctBodies, boolean enumerablesOnly) Enumerates directly referred extensional relations (without duplicates) for the given formulation of a query.- Parameters:
enumerablesOnly- only enumerable type constraints are considered- Since:
- 2.0
-
parameterDirectionPredicate
- Since:
- 1.4
-
getTraceables
Returns allPTraceables contained in the givenPQuery: itself, its bodies and their constraints.- Since:
- 1.6
-
calculateSimpleName
Calculates the simple name related from a given qualified name by finding the part after the last '.' character.- Since:
- 2.0
-