public class BridgeMethodUtils extends Object
| Constructor and Description |
|---|
BridgeMethodUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends Annotation> |
getAnnotation(Class<T> annotationClass,
ResolvedJavaMethod method)
A helper for
AnnotatedElement.getAnnotation(Class) that handles the absence of
annotations on bridge methods where the bridged method has annotations. |
static Annotation[] |
getAnnotations(ResolvedJavaMethod method)
A helper for
AnnotatedElement.getAnnotations() that handles the absence of
annotations on bridge methods where the bridged method has annotations. |
static ResolvedJavaMethod |
getBridgedMethod(ResolvedJavaMethod bridge)
Gets the method bridged to by a bridge method.
|
static Annotation[] |
getDeclaredAnnotations(ResolvedJavaMethod method)
A helper for
AnnotatedElement.getDeclaredAnnotations() that handles the absence of
annotations on bridge methods where the bridged method has annotations. |
static <T extends Annotation> |
getParameterAnnotation(Class<T> annotationClass,
int parameterIndex,
ResolvedJavaMethod method)
A helper for
ResolvedJavaMethod.getParameterAnnotation(Class, int) that handles the
absence of parameter annotations on bridge methods where the bridged method has parameter
annotations. |
static Annotation[][] |
getParameterAnnotations(ResolvedJavaMethod method)
A helper for
ResolvedJavaMethod.getParameterAnnotations() that handles the absence of
parameter annotations on bridge methods where the bridged method has parameter annotations. |
public static ResolvedJavaMethod getBridgedMethod(ResolvedJavaMethod bridge)
method that has the same name as
bridge.bridge - a bridge methodbridge whose name is the same as
bridge.getName()public static <T extends Annotation> T getAnnotation(Class<T> annotationClass, ResolvedJavaMethod method)
AnnotatedElement.getAnnotation(Class) that handles the absence of
annotations on bridge methods where the bridged method has annotations.public static Annotation[] getAnnotations(ResolvedJavaMethod method)
AnnotatedElement.getAnnotations() that handles the absence of
annotations on bridge methods where the bridged method has annotations.public static Annotation[] getDeclaredAnnotations(ResolvedJavaMethod method)
AnnotatedElement.getDeclaredAnnotations() that handles the absence of
annotations on bridge methods where the bridged method has annotations.public static Annotation[][] getParameterAnnotations(ResolvedJavaMethod method)
ResolvedJavaMethod.getParameterAnnotations() that handles the absence of
parameter annotations on bridge methods where the bridged method has parameter annotations.public static <T extends Annotation> T getParameterAnnotation(Class<T> annotationClass, int parameterIndex, ResolvedJavaMethod method)
ResolvedJavaMethod.getParameterAnnotation(Class, int) that handles the
absence of parameter annotations on bridge methods where the bridged method has parameter
annotations.