public final class StaticMethodCondition extends VariableConditionAdapter
Modifier and Type | Field and Description |
---|---|
private SchemaVariable |
args |
private SchemaVariable |
caller |
private SchemaVariable |
methname |
private boolean |
negation |
Constructor and Description |
---|
StaticMethodCondition(boolean negation,
SchemaVariable caller,
SchemaVariable methname,
SchemaVariable args)
the static reference condition checks if a suggested
instantiation for a schema variable denotes a static method
call.
|
Modifier and Type | Method and Description |
---|---|
boolean |
check(SchemaVariable var,
SVSubstitute subst,
SVInstantiations svInst,
Services services)
checks if the condition for a correct instantiation is fulfilled
|
private static ImmutableArray<Expression> |
toExpArray(ImmutableArray<? extends ProgramElement> a) |
java.lang.String |
toString() |
check
private final boolean negation
private final SchemaVariable caller
private final SchemaVariable methname
private final SchemaVariable args
public StaticMethodCondition(boolean negation, SchemaVariable caller, SchemaVariable methname, SchemaVariable args)
private static ImmutableArray<Expression> toExpArray(ImmutableArray<? extends ProgramElement> a)
public boolean check(SchemaVariable var, SVSubstitute subst, 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