public final class EnumConstantCondition extends VariableConditionAdapter
Modifier and Type | Field and Description |
---|---|
private SchemaVariable |
reference |
Constructor and Description |
---|
EnumConstantCondition(SchemaVariable reference)
the static reference condition checks if a suggested
instantiation for a schema variable denotes a reference to
an enum constant.
|
Modifier and Type | Method and Description |
---|---|
boolean |
check(SchemaVariable var,
SVSubstitute subst,
SVInstantiations svInst,
Services services)
checks if the condition for a correct instantiation is fulfilled
|
java.lang.String |
toString() |
check
private final SchemaVariable reference
public EnumConstantCondition(SchemaVariable reference)
public boolean check(SchemaVariable var, SVSubstitute subst, SVInstantiations svInst, Services services)
VariableConditionAdapter
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