Package spoon.reflect.visitor.filter
Class NamedElementFilter<T extends CtNamedElement>
java.lang.Object
spoon.reflect.visitor.filter.NamedElementFilter<T>
- All Implemented Interfaces:
Filter<T>
Filters elements by name and by type (for instance to find a method). Example:
CtMethod<?> normalFor = type.getElements( new NamedElementFilter<CtMethod<?>>(CtMethod.class, "normalFor")).get(0);
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
NamedElementFilter
- Parameters:
name
- Name of the expected elementacceptedClass
- Expected class of the results
-
-
Method Details