public final class ParameterPredicates
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.util.function.Predicate<java.lang.reflect.Parameter> |
annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> type)
Returns a predicate that accepts parameters annotated with the given
annotation type.
|
static java.util.function.Predicate<java.lang.reflect.Parameter> |
assignableTo(java.lang.Class type)
Returns a predicate that accepts parameters compatible with the given type.
|
static java.util.function.Predicate<java.lang.reflect.Parameter> |
named(java.lang.String name)
Returns a predicate that accepts parameters with the given name.
|
static java.util.function.Predicate<java.lang.reflect.Parameter> |
type(java.lang.Class type)
Returns a predicate that accepts parameters of the given type.
|
public static java.util.function.Predicate<java.lang.reflect.Parameter> type(java.lang.Class type)
public static java.util.function.Predicate<java.lang.reflect.Parameter> assignableTo(java.lang.Class type)
public static java.util.function.Predicate<java.lang.reflect.Parameter> named(java.lang.String name)
Note that the code must be compiled with -parameters
or
the parameter names will be in a argX format.
public static java.util.function.Predicate<java.lang.reflect.Parameter> annotatedWith(java.lang.Class<? extends java.lang.annotation.Annotation> type)