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 CtExecutables.-
Constructor Summary
ConstructorsConstructorDescriptionCreates a new executable reference filter.ExecutableReferenceFilter(CtExecutable<?> executable) Creates a new executable reference filter. -
Method Summary
Modifier and TypeMethodDescriptionaddExecutable(CtExecutable<?> executable) Add nextCtExecutablewhoseCtExecutableReferences has to be matchedbooleanmatches(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 nextCtExecutablewhoseCtExecutableReferences has to be matched- Parameters:
executable- searchedCtExecutableinstance- Returns:
- this to support fluent API
-
matches
Description copied from interface:FilterTells if the given element matches.- Specified by:
matchesin interfaceFilter<CtExecutableReference<?>>- Parameters:
execRef- - the element to be checked for a match. Parameter element is never null ifQueryis used.
-