public class TypeConstraint extends KeyedEnumerablePConstraint<IInputKey> implements ITypeConstraint
IInputKey
.
The InputKey must be enumerable!
ITypeConstraint.TypeConstraintUtil
PConstraint.CompareByMonotonousID
supplierKey
variablesTuple
pBody
Constructor and Description |
---|
TypeConstraint(PBody pBody,
Tuple variablesTuple,
IInputKey inputKey) |
Modifier and Type | Method and Description |
---|---|
void |
doReplaceVariable(PVariable obsolete,
PVariable replacement) |
TypeJudgement |
getEquivalentJudgement() |
java.util.Map<java.util.Set<PVariable>,java.util.Set<PVariable>> |
getFunctionalDependencies(IQueryMetaContext context)
A (preferably minimal) cover of known functional dependencies between variables.
|
java.util.Set<TypeJudgement> |
getImpliedJudgements(IQueryMetaContext context)
Returns type information implied by this constraint.
|
protected java.lang.String |
keyToString() |
getSupplierKey, toStringRestRest
getDeducedVariables, getVariableInTuple, getVariablesTuple, toStringRest
checkSanity, delete, getAffectedVariables, getMonotonousID, getPSystem, replaceVariable, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
checkSanity, delete, getAffectedVariables, getDeducedVariables, getMonotonousID, replaceVariable
protected java.lang.String keyToString()
keyToString
in class KeyedEnumerablePConstraint<IInputKey>
public TypeJudgement getEquivalentJudgement()
getEquivalentJudgement
in interface ITypeConstraint
public java.util.Set<TypeJudgement> getImpliedJudgements(IQueryMetaContext context)
ITypeInfoProviderConstraint
getImpliedJudgements
in interface ITypeInfoProviderConstraint
public java.util.Map<java.util.Set<PVariable>,java.util.Set<PVariable>> getFunctionalDependencies(IQueryMetaContext context)
PConstraint
getFunctionalDependencies
in interface PConstraint
getFunctionalDependencies
in class BasePConstraint
public void doReplaceVariable(PVariable obsolete, PVariable replacement)
doReplaceVariable
in class EnumerablePConstraint