public final class EnumTypeCondition extends VariableConditionAdapter
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
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
Copyright © 2003-2019 The KeY-Project.