MethodAnno - Annotation class used on methodParamAnno - Annotation class used on method parameterpublic class AnnotationMethodScan<MethodAnno extends java.lang.Class<? extends java.lang.annotation.Annotation>,ParamAnno extends java.lang.Class<? extends java.lang.annotation.Annotation>>
extends java.lang.Object
AnnotationMethodScanner.scan(Method).| Modifier and Type | Field and Description |
|---|---|
private java.util.Map<java.lang.String,java.lang.Object> |
annotationAttributes |
static AnnotationMethodScan |
EMPTY |
private java.lang.reflect.Method |
method |
private java.lang.annotation.Annotation[] |
paramAnnotation |
| Constructor and Description |
|---|
AnnotationMethodScan(java.lang.reflect.Method method,
java.util.Map<java.lang.String,java.lang.Object> annotationAttributes,
java.lang.annotation.Annotation[] paramAnnotation) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object o) |
java.util.Map<java.lang.String,java.lang.Object> |
getAnnotationAttributes()
Raw fields contained in the method annotation.
|
<NestedAnno extends java.lang.annotation.Annotation> |
getAnnotationValueArray()
Shortcut for annotation field 'value' that returns an array of annotations.
|
java.lang.reflect.Method |
getMethod()
The scanned
Method. |
<ParamAnno extends java.lang.annotation.Annotation> |
getParamAnnotations()
Array of annotations from each fields.
|
int |
hashCode() |
boolean |
isEmpty()
Is AnnotationMethodScan contains nothing.
|
static boolean |
isEmpty(AnnotationMethodScan annotationMethodScan)
Is AnnotationMethodScan contains nothing.
|
java.lang.String |
toString() |
public static final AnnotationMethodScan EMPTY
private java.lang.reflect.Method method
private java.util.Map<java.lang.String,java.lang.Object> annotationAttributes
private java.lang.annotation.Annotation[] paramAnnotation
AnnotationMethodScan(java.lang.reflect.Method method,
java.util.Map<java.lang.String,java.lang.Object> annotationAttributes,
java.lang.annotation.Annotation[] paramAnnotation)
public java.lang.reflect.Method getMethod()
Method.public java.util.Map<java.lang.String,java.lang.Object> getAnnotationAttributes()
public <NestedAnno extends java.lang.annotation.Annotation> NestedAnno[] getAnnotationValueArray()
NestedAnno - Nested annotation type for 'value'public <ParamAnno extends java.lang.annotation.Annotation> ParamAnno[] getParamAnnotations()
ATTENTION : ParamAnno[i] can be null if parameter index i doesn't have annotation.
ParamAnno - Annotation class used on method parameterpublic boolean isEmpty()
public static boolean isEmpty(AnnotationMethodScan annotationMethodScan)
annotationMethodScan - an AnnotationMethodScanpublic java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2021. All Rights Reserved.