KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > spoon > support > query > ReferenceTypeFilter


1 package spoon.support.query;
2
3 import spoon.reflect.reference.CtReference;
4
5 /**
6  * This simple filter matches all the references of a given type.
7  */

8 public class ReferenceTypeFilter<T extends CtReference> extends
9         AbstractReferenceFilter<T> {
10
11     /**
12      * Creates the filter.
13      *
14      * @param type the type that matches
15      */

16     public ReferenceTypeFilter(Class JavaDoc<T> type) {
17         super(type);
18     }
19
20     public boolean matches(T reference) {
21         return true;
22     }
23 }
Popular Tags