|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectca.infoway.messagebuilder.j5goodies.Predicates
public class Predicates
Provides some standard class finder predicates.
Constructor Summary | |
---|---|
Predicates()
|
Method Summary | |
---|---|
static ClassPredicate |
hasAnnotationPredicate(Class<? extends Annotation> annotation)
Construct a predicate that finds all classes with a particular annotation. |
static ClassPredicate |
isInstanceofPredicate(Class<?> type)
Construct a predicate that finds all classes of a particular type. |
static ClassPredicate |
isInstanceofPredicate(Class<?> type,
boolean isInterface)
Construct a predicate that finds all classes of a particular type. |
static ClassPredicate |
packageNamePredicate(String expectedPackageName)
Construct a predicate that finds all classes in a particular package. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Predicates()
Method Detail |
---|
public static ClassPredicate packageNamePredicate(String expectedPackageName)
Construct a predicate that finds all classes in a particular package.
expectedPackageName
- - the package
public static ClassPredicate hasAnnotationPredicate(Class<? extends Annotation> annotation)
Construct a predicate that finds all classes with a particular annotation.
annotation
- - the annotation
public static ClassPredicate isInstanceofPredicate(Class<?> type)
Construct a predicate that finds all classes of a particular type.
type
- - the type
public static ClassPredicate isInstanceofPredicate(Class<?> type, boolean isInterface)
Construct a predicate that finds all classes of a particular type.
type
- - the typeisInterface
- - true if the predicate should only return interfaces;
false if the predicate should never return interfaces
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |