public final class AlternativeVariableCondition extends VariableConditionAdapter
Modifier and Type | Field and Description |
---|---|
private VariableConditionAdapter |
delegate0 |
private VariableConditionAdapter |
delegate1 |
Constructor and Description |
---|
AlternativeVariableCondition(VariableConditionAdapter delegate0,
VariableConditionAdapter delegate1) |
Modifier and Type | Method and Description |
---|---|
boolean |
check(SchemaVariable var,
SVSubstitute subst,
SVInstantiations svInst,
Services services)
check whether any of the two delegates apply
|
java.lang.String |
toString() |
check
private final VariableConditionAdapter delegate0
private final VariableConditionAdapter delegate1
public AlternativeVariableCondition(VariableConditionAdapter delegate0, VariableConditionAdapter delegate1)
public boolean check(SchemaVariable var, SVSubstitute subst, SVInstantiations svInst, Services services)
check
in class VariableConditionAdapter
var
- the template Variable to be instantiatedsvInst
- the MatchCondition with the current matching state and in particular
the SVInstantiations that are already known to be neededservices
- the program information objectpublic java.lang.String toString()
toString
in class java.lang.Object