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
ConstructorDescriptionInvocationFilter(CtMethod<?> method)
Creates a new invocation filter.InvocationFilter(CtExecutableReference<?> executable)
Creates a new invocation filter. -
Method Summary
Modifier and TypeMethodDescriptionboolean
matches(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:Filter
Tells if the given element matches.- Specified by:
matches
in interfaceFilter<CtInvocation<?>>
- Parameters:
invocation
- - the element to be checked for a match. Parameter element is never null ifQuery
is used.
-