public class PVariable
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
PVariable |
getDirectUnifiedInto() |
java.lang.String |
getName() |
java.util.Set<PConstraint> |
getReferringConstraints() |
<ConstraintType> |
getReferringConstraintsOfType(java.lang.Class<ConstraintType> constraintClass) |
PVariable |
getUnifiedIntoRoot() |
boolean |
isDeducable()
Determines whether there are any constraints that can deduce this variable
|
boolean |
isUnique() |
boolean |
isVirtual() |
void |
refer(PConstraint constraint)
Register that this variable is referred by the given constraint.
|
java.lang.String |
toString() |
void |
unifyInto(PVariable replacement)
Replaces this variable with a given other, resulting in their unification.
|
void |
unrefer(PConstraint constraint)
Register that this variable is no longer referred by the given constraint.
|
public void unifyInto(PVariable replacement)
replacement
- public boolean isDeducable()
public void refer(PConstraint constraint)
constraint
- public void unrefer(PConstraint constraint)
constraint
- public java.lang.String getName()
public boolean isVirtual()
public java.util.Set<PConstraint> getReferringConstraints()
public <ConstraintType> java.util.Set<ConstraintType> getReferringConstraintsOfType(java.lang.Class<ConstraintType> constraintClass)
public java.lang.String toString()
toString
in class java.lang.Object
public PVariable getDirectUnifiedInto()
public PVariable getUnifiedIntoRoot()
public boolean isUnique()