Class PVariable
java.lang.Object
tools.refinery.interpreter.matchers.psystem.PVariable
-
Method Summary
Modifier and TypeMethodDescriptiongetName()<ConstraintType>
Set<ConstraintType> getReferringConstraintsOfType(Class<ConstraintType> constraintClass) booleanDetermines whether there are any constraints that can deduce this variablebooleanisUnique()booleanvoidrefer(PConstraint constraint) Register that this variable is referred by the given constraint.toString()voidReplaces this variable with a given other, resulting in their unification.voidunrefer(PConstraint constraint) Register that this variable is no longer referred by the given constraint.
-
Method Details
-
unifyInto
Replaces this variable with a given other, resulting in their unification. This variable will no longer be unique.- Parameters:
replacement-
-
isDeducable
public boolean isDeducable()Determines whether there are any constraints that can deduce this variable -
refer
Register that this variable is referred by the given constraint.- Parameters:
constraint-
-
unrefer
Register that this variable is no longer referred by the given constraint.- Parameters:
constraint-
-
getName
- Returns:
- the name of the pattern variable. This is the unique key of the pattern node.
-
isVirtual
public boolean isVirtual()- Returns:
- the virtual
-
getReferringConstraints
- Returns:
- the referringConstraints
-
getReferringConstraintsOfType
-
toString
-
getDirectUnifiedInto
-
getUnifiedIntoRoot
-
isUnique
public boolean isUnique()
-