Package spoon.reflect.visitor.filter
Class ExecutableReferenceFilter
java.lang.Object
spoon.reflect.visitor.filter.ExecutableReferenceFilter
- All Implemented Interfaces:
Filter<CtExecutableReference<?>>
This filter matches all the
CtExecutableReference
referencing defined one or more CtExecutable
s.-
Constructor Summary
ConstructorDescriptionCreates a new executable reference filter.ExecutableReferenceFilter(CtExecutable<?> executable)
Creates a new executable reference filter. -
Method Summary
Modifier and TypeMethodDescriptionaddExecutable(CtExecutable<?> executable)
Add nextCtExecutable
whoseCtExecutableReference
s has to be matchedboolean
matches(CtExecutableReference<?> execRef)
Tells if the given element matches.
-
Constructor Details
-
ExecutableReferenceFilter
public ExecutableReferenceFilter()Creates a new executable reference filter. CalladdExecutable(CtExecutable)
to define executables whose references it matches. -
ExecutableReferenceFilter
Creates a new executable reference filter.- Parameters:
executable
- the executable whose references it matches
-
-
Method Details
-
addExecutable
Add nextCtExecutable
whoseCtExecutableReference
s has to be matched- Parameters:
executable
- searchedCtExecutable
instance- Returns:
- this to support fluent API
-
matches
Description copied from interface:Filter
Tells if the given element matches.- Specified by:
matches
in interfaceFilter<CtExecutableReference<?>>
- Parameters:
execRef
- - the element to be checked for a match. Parameter element is never null ifQuery
is used.
-