|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.elasticsearch.common.inject.matcher.Matchers
public class Matchers
Matcher implementations. Supports matching classes and methods.
Method Summary | ||
---|---|---|
static Matcher<java.lang.reflect.AnnotatedElement> |
annotatedWith(java.lang.annotation.Annotation annotation)
Returns a matcher which matches elements (methods, classes, etc.) with a given annotation. |
|
static Matcher<java.lang.reflect.AnnotatedElement> |
annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
Returns a matcher which matches elements (methods, classes, etc.) with a given annotation. |
|
static Matcher<java.lang.Object> |
any()
Returns a matcher which matches any input. |
|
static Matcher<java.lang.Object> |
identicalTo(java.lang.Object value)
Returns a matcher which matches only the given object. |
|
static Matcher<java.lang.Class> |
inPackage(java.lang.Package targetPackage)
Returns a matcher which matches classes in the given package. |
|
static Matcher<java.lang.Class> |
inSubpackage(java.lang.String targetPackageName)
Returns a matcher which matches classes in the given package and its subpackages. |
|
static
|
not(Matcher<? super T> p)
Inverts the given matcher. |
|
static Matcher<java.lang.Object> |
only(java.lang.Object value)
Returns a matcher which matches objects equal to the given object. |
|
static Matcher<java.lang.reflect.Method> |
returns(Matcher<? super java.lang.Class<?>> returnType)
Returns a matcher which matches methods with matching return types. |
|
static Matcher<java.lang.Class> |
subclassesOf(java.lang.Class<?> superclass)
Returns a matcher which matches subclasses of the given type (as well as the given type). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static Matcher<java.lang.Object> any()
public static <T> Matcher<T> not(Matcher<? super T> p)
public static Matcher<java.lang.reflect.AnnotatedElement> annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType)
public static Matcher<java.lang.reflect.AnnotatedElement> annotatedWith(java.lang.annotation.Annotation annotation)
public static Matcher<java.lang.Class> subclassesOf(java.lang.Class<?> superclass)
public static Matcher<java.lang.Object> only(java.lang.Object value)
public static Matcher<java.lang.Object> identicalTo(java.lang.Object value)
public static Matcher<java.lang.Class> inPackage(java.lang.Package targetPackage)
public static Matcher<java.lang.Class> inSubpackage(java.lang.String targetPackageName)
inPackage()
, this matches classes from any classloader.
public static Matcher<java.lang.reflect.Method> returns(Matcher<? super java.lang.Class<?>> returnType)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |