public class ContainsAssignmentCondition extends VariableConditionAdapter
| Modifier and Type | Class and Description | 
|---|---|
private static class  | 
ContainsAssignmentCondition.ContainsAssignment
Visitor iterating over an expression and returning true if an assignment statement has been found. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
private SchemaVariable | 
expression  | 
private boolean | 
negated  | 
| Constructor and Description | 
|---|
ContainsAssignmentCondition(SchemaVariable x,
                           boolean negated)
creates an instance of the variable condition 
 | 
| Modifier and Type | Method and Description | 
|---|---|
boolean | 
check(SchemaVariable var,
     SVSubstitute instCandidate,
     SVInstantiations instMap,
     Services services)
checks if the condition for a correct instantiation is fulfilled 
 | 
java.lang.String | 
toString()  | 
checkprivate final SchemaVariable expression
private final boolean negated
public ContainsAssignmentCondition(SchemaVariable x, boolean negated)
x - the schemavariable whose instantiation is to be checkednegated - true iff the check should ensure the absence of an assignment statementjava.lang.IllegalArgumentException - if the given schemavariable is not a ProgramSVpublic boolean check(SchemaVariable var, SVSubstitute instCandidate, SVInstantiations instMap, Services services)
check in class VariableConditionAdaptervar - the template Variable to be instantiatedinstMap - 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