Package spoon.reflect.visitor.filter
Class InvocationFilter
java.lang.Object
spoon.reflect.visitor.filter.InvocationFilter
- All Implemented Interfaces:
Filter<CtInvocation<?>>
This simple filter matches all the accesses to a given executable or any
executable that overrides it.
-
Constructor Summary
ConstructorsConstructorDescriptionInvocationFilter(CtMethod<?> method) Creates a new invocation filter.InvocationFilter(CtExecutableReference<?> executable) Creates a new invocation filter. -
Method Summary
Modifier and TypeMethodDescriptionbooleanmatches(CtInvocation<?> invocation) Tells if the given element matches.
-
Constructor Details
-
InvocationFilter
Creates a new invocation filter.- Parameters:
executable- the executable to be tested for being invoked
-
InvocationFilter
Creates a new invocation filter.- Parameters:
method- the executable to be tested for being invoked.
-
-
Method Details
-
matches
Description copied from interface:FilterTells if the given element matches.- Specified by:
matchesin interfaceFilter<CtInvocation<?>>- Parameters:
invocation- - the element to be checked for a match. Parameter element is never null ifQueryis used.
-