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
|
String |
toString() |
checkprivate 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)
VariableConditionAdaptercheck in class VariableConditionAdaptervar - 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 object