public class GenericSingleConstraintPQuery extends BasePQuery
End users should use {link GenericQuerySpecification} instead.
PQuery.PQueryStatuspProblems, status, visibility| Constructor and Description |
|---|
GenericSingleConstraintPQuery(Pattern parentPattern,
CallableRelation constraint,
java.lang.String queryName)
Initializes a generic query representation for a given pattern.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.util.Set<PBody> |
doGetContainedBodies()
Creates and returns the bodies of the query.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getFullyQualifiedName()
Identifies the pattern for which matchers can be instantiated.
|
java.util.List<PParameter> |
getParameters()
Returns a list of parameter descriptions
|
Pattern |
getPattern() |
int |
hashCode() |
addAnnotation, addError, checkMutability, ensureInitialized, getAllAnnotations, getAllReferredQueries, getAnnotationsByName, getDirectReferredQueries, getDisjunctBodies, getEvaluationHints, getFirstAnnotationByName, getParameterNames, getPositionOfParameter, getPProblems, getStatus, getTypeGuarantees, getVisibility, isMutable, publishedAs, setBodies, setEvaluationHints, setStatus, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetParameter, getSimpleNamepublic GenericSingleConstraintPQuery(Pattern parentPattern, CallableRelation constraint, java.lang.String queryName)
Warning: it is not recommended to directly instantiate GenericPQuery instances as
they will not reuse previously built specifications- use SpecificationBuilder instead.
pattern - the pattern for which the matcher is to be constructed.ViatraQueryRuntimeExceptionpublic Pattern getPattern()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String getFullyQualifiedName()
PQueryHeaderpublic java.util.List<PParameter> getParameters()
PQueryHeaderprotected java.util.Set<PBody> doGetContainedBodies()
BasePQuerydoGetContainedBodies in class BasePQuery