| spoon.reflect.visitor.ReferenceFilter
ReferenceFilter | public interface ReferenceFilter (Code) | | This interface defines a filter for program element references.
Parameters: T - the type of the filtered references (an reference 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 references). | boolean | matches(T reference) Tells if the given reference matches. |
getType | Class<T> getType()(Code) | | Gets the runtime type that corresponds to the T parameter
(the type of the filtered references). Any reference assignable from this
type is a potential match and is tested using the
ReferenceFilter.matches(CtReference) method, while other references are never a
match.
|
matches | boolean matches(T reference)(Code) | | Tells if the given reference matches.
|
|
|