|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.mycila.testing.core.introspect.Filters
public final class Filters
| Method Summary | ||
|---|---|---|
static
|
all()
|
|
static
|
and(Filter<T>... filters)
|
|
static Filter<Method> |
excludeOverridenMethods(Filter<Method> methodFilter)
This filter will exclude methods that are overriden, as defined in the JLS at http://java.sun.com/docs/books/jls/third_edition/html/classes.html#8.4.8 |
|
static Filter<Field> |
fieldsAccepting(Class<?> type)
Filter that select fields having specified type or a super-type of the specified type |
|
static Filter<Field> |
fieldsAnnotatedBy(Class<? extends Annotation> annotation)
Returns fields annotated by a given annotation |
|
static Filter<Field> |
fieldsProviding(Class<?> type)
Filter that select fields having specified type or a sub-type of the specified type |
|
static Filter<Method> |
methodsAnnotatedBy(Class<? extends Annotation> annotation)
Returns methods annotated by a given annotation |
|
static Filter<Method> |
methodsReturning(Class<?> type)
Select methods returning objects that are of a given type or of a sub-type of given type |
|
static
|
none()
|
|
static
|
not(Filter<T> filter)
|
|
static
|
or(Filter<T>... filters)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static <T> Filter<T> all()
public static <T> Filter<T> none()
public static <T> Filter<T> not(Filter<T> filter)
public static <T> Filter<T> and(Filter<T>... filters)
public static <T> Filter<T> or(Filter<T>... filters)
public static Filter<Field> fieldsProviding(Class<?> type)
type - Selected type
public static Filter<Field> fieldsAccepting(Class<?> type)
type - Selected type
public static Filter<Method> methodsReturning(Class<?> type)
type - The type of the return
public static Filter<Field> fieldsAnnotatedBy(Class<? extends Annotation> annotation)
annotation - The annotation
public static Filter<Method> methodsAnnotatedBy(Class<? extends Annotation> annotation)
annotation - The annotation
public static Filter<Method> excludeOverridenMethods(Filter<Method> methodFilter)
methodFilter - The method filter used to accept methods
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||