类 SynthesizedMergedAnnotationInvocationHandler<A extends Annotation>
java.lang.Object
cn.taketoday.core.annotation.SynthesizedMergedAnnotationInvocationHandler<A>
- 类型参数:
A- the annotation type
- 所有已实现的接口:
InvocationHandler
final class SynthesizedMergedAnnotationInvocationHandler<A extends Annotation>
extends Object
implements InvocationHandler
InvocationHandler for an Annotation that has
synthesized (i.e. wrapped in a dynamic proxy) with additional
functionality such as attribute alias handling.- 从以下版本开始:
- 4.0
- 作者:
- Sam Brannen, Phillip Webb, Harry Yang
- 另请参阅:
-
字段概要
字段修饰符和类型字段说明private final AbstractMergedAnnotation<?>private final AttributeMethodsprivate Integerprivate String -
构造器概要
构造器构造器说明SynthesizedMergedAnnotationInvocationHandler(AbstractMergedAnnotation<A> annotation, Class<A> type) -
方法概要
修饰符和类型方法说明private booleanannotationEquals(Object proxy, Object other) SeeAnnotation.equals(Object)for a definition of the required algorithm.private intSeeAnnotation.hashCode()for a definition of the required algorithm.private Stringprivate static ObjectcloneArray(Object array) Clone the provided array, ensuring that the original component type is retained.private Integer(专用程序包) static <A extends Annotation>
AcreateProxy(AbstractMergedAnnotation<A> annotation, Class<A> type) private ObjectgetAttributeValue(Method method, boolean cloneArray) private StringThis method currently does not address the following issues which we may choose to address at a later point in time.
-
字段详细资料
-
type
-
attributeMethods
-
annotation
-
valueCache
-
hash
-
string
-
-
构造器详细资料
-
SynthesizedMergedAnnotationInvocationHandler
SynthesizedMergedAnnotationInvocationHandler(AbstractMergedAnnotation<A> annotation, Class<A> type)
-
-
方法详细资料
-
invoke
- 指定者:
invoke在接口中InvocationHandler
-
annotationEquals
SeeAnnotation.equals(Object)for a definition of the required algorithm.- 参数:
other- the other object to compare against
-
annotationHashCode
private int annotationHashCode()SeeAnnotation.hashCode()for a definition of the required algorithm. -
computeHashCode
-
annotationToString
-
toString
This method currently does not address the following issues which we may choose to address at a later point in time.- non-ASCII, non-visible, and non-printable characters within a character or String literal are not escaped.
- formatting for float and double values does not take into account whether a value is not a number (NaN) or infinite.
- 参数:
value- the attribute value to format- 返回:
- the formatted string representation
-
getAttributeValue
-
cloneArray
Clone the provided array, ensuring that the original component type is retained.- 参数:
array- the array to clone
-
createProxy
-