public final class ArrayTypeCondition extends VariableConditionAdapter
Modifier and Type | Field and Description |
---|---|
private boolean |
negated |
private SchemaVariable |
var |
Constructor and Description |
---|
ArrayTypeCondition(SchemaVariable var,
boolean negated)
creates an instance of this condition checking if an instantiation of a schema variable is an array or not
|
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 SchemaVariable var
private final boolean negated
public ArrayTypeCondition(SchemaVariable var, boolean negated)
var
- the SchemaVariable to be checkednegated
- if the result is to be negated upon findingpublic 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