| spoon.reflect.visitor.Filter
Filter | public interface Filter (Code) | | This interface defines a filter for program elements.
Parameters: T - the type of the filtered elements (an element belonging to thefiltered element must be assignable from T ). |
Method Summary | |
Class<T> | getType() Gets the runtime type that corresponds to the T parameter
(the type of the filtered elements). | boolean | matches(T element) Tells if the given element matches. |
getType | Class<T> getType()(Code) | | Gets the runtime type that corresponds to the T parameter
(the type of the filtered elements). Any element assignable from this
type is a potential match and is tested using the
Filter.matches(CtElement) method, while other elements are never a
match.
|
matches | boolean matches(T element)(Code) | | Tells if the given element matches.
|
|
|