|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--gshute.util.Filters
Class Filters is a factory class that provides filters for accepting classes and methods based on various criteria. In addition, this class provides static methods for directly testing whether or not classes methods meet various criteria.
Inner Class Summary | |
class |
Filters.Compound
A Filters.Compound object combines the acceptance decisions of its constituent filters. |
Method Summary | |
static boolean |
classSubclassOf(java.lang.Class cl1,
java.lang.Class cl2)
Filters.classSubclassOf(cl1, cl2) returns true if cl1 is a subclass of cl2. |
static Filter |
getClassNotSubclassOfFilter(java.lang.Class cl)
Filters.getClassNotSubclassOfFilter(cl) returns a filter that filters objects from class Class. |
static Filter |
getClassNotSuperclassOfFilter(java.lang.Class cl)
Filters.getClassNotSuperclassOfFilter(cl) returns a filter that filters objects from class Class. |
static Filter |
getClassSubclassOfFilter(java.lang.Class cl)
Filters.getClassSubclassOfFilter(cl) returns a filter that filters objects from class Class. |
static Filter |
getClassSuperclassOfFilter(java.lang.Class cl)
Filters.getClassSuperclassOfFilter(cl) returns a filter that filters objects from class Class. |
static Filter |
getMethodImpByFilter(java.lang.Class cl)
Filters.getMethodImpByFilter(cl) returns a filter that filters objects from class Method. |
static Filter |
getMethodNameFilter(java.lang.String strt,
java.lang.String end)
Filters.getMethodNameFilter(strt, end) returns a filter that filters objects from class Method. |
static Filter |
getMethodNotImpByFilter(java.lang.Class cl)
Filters.getMethodNotImpByFilter(cl) returns a filter that filters objects from class Method. |
static Filter |
getMethodNumArgsFilter(int n)
Filters.getMethodNumArgsFilter(n) returns a filter that filters objects from class Method. |
static boolean |
methodImpBy(java.lang.reflect.Method m,
java.lang.Class cl)
Filters.methodImpBy(m, cl) returns true if the declaring class of m is a superclass of cl. |
static boolean |
methodNameMatches(java.lang.reflect.Method m,
java.lang.String strt,
java.lang.String end)
Filters.methodNameMatches(m, strt, end) returns true if the name of m starts with strt and ends with end. |
static boolean |
methodNumArgsEquals(java.lang.reflect.Method m,
int n)
Filters.methodNumArgsEquals(m, n) returns true if m has exactly n arguments. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Method Detail |
public static boolean classSubclassOf(java.lang.Class cl1, java.lang.Class cl2)
public static boolean methodNameMatches(java.lang.reflect.Method m, java.lang.String strt, java.lang.String end)
public static boolean methodNumArgsEquals(java.lang.reflect.Method m, int n)
public static boolean methodImpBy(java.lang.reflect.Method m, java.lang.Class cl)
public static Filter getClassSubclassOfFilter(java.lang.Class cl)
public static Filter getClassNotSubclassOfFilter(java.lang.Class cl)
public static Filter getClassSuperclassOfFilter(java.lang.Class cl)
public static Filter getClassNotSuperclassOfFilter(java.lang.Class cl)
public static Filter getMethodNameFilter(java.lang.String strt, java.lang.String end)
public static Filter getMethodNumArgsFilter(int n)
public static Filter getMethodImpByFilter(java.lang.Class cl)
public static Filter getMethodNotImpByFilter(java.lang.Class cl)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |