protected static class TypePool.LazyTypeDescription.AnnotationInvocationHandler extends Object implements InvocationHandler
TypePool.LazyTypeDescription.LazyAnnotationDescription
.Modifier and Type | Class and Description |
---|---|
protected static class |
TypePool.LazyTypeDescription.AnnotationInvocationHandler.DefaultValue
Represents a default value for an annotation property that is not explicitly defined by
an annotation.
|
Constructor and Description |
---|
AnnotationInvocationHandler(ClassLoader classLoader,
Class<? extends Annotation> annotationType,
Map<String,TypePool.LazyTypeDescription.AnnotationValue<?,?>> values)
Creates a new invocation handler.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other) |
int |
hashCode() |
Object |
invoke(Object proxy,
Method method,
Object[] arguments) |
String |
toString() |
protected String |
toStringRepresentation()
Returns the string representation of the represented annotation.
|
public AnnotationInvocationHandler(ClassLoader classLoader, Class<? extends Annotation> annotationType, Map<String,TypePool.LazyTypeDescription.AnnotationValue<?,?>> values) throws ClassNotFoundException
classLoader
- The class loader for loading this value.annotationType
- The loaded annotation type.values
- A sorted list of values of this annotation.ClassNotFoundException
- If an annotation value cannot be loaded.public Object invoke(Object proxy, Method method, Object[] arguments)
invoke
in interface InvocationHandler
protected String toStringRepresentation()
Copyright © 2014–2015. All rights reserved.