public final class EnumTypeCondition extends VariableConditionAdapter
Modifier and Type | Field and Description |
---|---|
private boolean |
negated |
private TypeResolver |
resolver |
Constructor and Description |
---|
EnumTypeCondition(TypeResolver resolver,
boolean negated)
creates a condition that checks if a type is a EnumDeclaration
|
Modifier and Type | Method and Description |
---|---|
boolean |
check(SchemaVariable var,
SVSubstitute candidate,
SVInstantiations svInst,
Services services)
checks if the condition for a correct instantiation is fulfilled
|
java.lang.String |
toString() |
check
private final TypeResolver resolver
private final boolean negated
public EnumTypeCondition(TypeResolver resolver, boolean negated)
resolver
- the type resolver to be checkednegated
- should the result be negatedpublic boolean check(SchemaVariable var, SVSubstitute candidate, 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