public class GenericSingleConstraintPQuery extends BasePQuery
End users should use {link GenericQuerySpecification} instead.
PQuery.PQueryStatus
pProblems, 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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getParameter, getSimpleName
public 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.ViatraQueryRuntimeException
public Pattern getPattern()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String getFullyQualifiedName()
PQueryHeader
public java.util.List<PParameter> getParameters()
PQueryHeader
protected java.util.Set<PBody> doGetContainedBodies()
BasePQuery
doGetContainedBodies
in class BasePQuery