Package spoon.legacy
Class NameFilter<T extends CtNamedElement>
java.lang.Object
spoon.legacy.NameFilter<T>
- All Implemented Interfaces:
Filter<T>
Filters elements by name (for instance to find a method). Example:
CtMethod<?> normalFor = type.getElements( new NameFilter<CtMethod<?>>("normalFor")).get(0);Use
NamedElementFilter
instead: the actual NameFilter could return wrongly typed results. NamedElementFilter explicit the use of a type.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NameFilter
- Parameters:
name
- Name of the expected element
-
-
Method Details