public abstract class AnnotationInfo extends Object
Modifier and Type | Field and Description |
---|---|
protected String |
annotationValue
The raw annotation value.
|
protected Class<?> |
javaClass
The class that hosts the annotated Java method.
|
protected Method |
javaMethod
The annotated Java method.
|
protected Method |
javaMethodImpl
The upper implementation of the annotated Java method.
|
Constructor and Description |
---|
AnnotationInfo(Class<?> javaClass,
Method javaMethod,
String annotationValue)
Constructor.
|
AnnotationInfo(Class<?> javaClass,
String annotationValue)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object other)
Indicates if the current variant is equal to the given object.
|
String |
getAnnotationValue()
Returns the raw annotation value.
|
protected static Class<?> |
getJavaActualType(Class<?> currentClass,
String genericTypeName)
Returns the actual type for a given generic type name.
|
protected Class<?> |
getJavaActualType(Class<?> initialType,
Type genericType)
Returns the actual type for a given generic type.
|
protected static Class<?> |
getJavaActualType(Type currentType,
String genericTypeName)
Returns the actual type for a given generic type name.
|
Class<?> |
getJavaClass()
Returns the resource interface value.
|
Method |
getJavaMethod()
Returns the annotated Java method.
|
protected static Class<?> |
getTypeClass(Type type)
Returns the underlying class for a type or null.
|
String |
toString() |
protected final String annotationValue
protected final Class<?> javaClass
protected final Method javaMethod
protected final Method javaMethodImpl
public AnnotationInfo(Class<?> javaClass, Method javaMethod, String annotationValue)
javaClass
- The annotated Java class or parent Java class.javaMethod
- The annotated Java method.annotationValue
- The annotation value.protected static Class<?> getJavaActualType(Class<?> currentClass, String genericTypeName)
currentClass
- The current class to walk up.genericTypeName
- The generic type name to resolve.protected static Class<?> getJavaActualType(Type currentType, String genericTypeName)
currentType
- The current type to start with.genericTypeName
- The generic type name to resolve.protected static Class<?> getTypeClass(Type type)
type
- The generic type.public boolean equals(Object other)
public String getAnnotationValue()
protected Class<?> getJavaActualType(Class<?> initialType, Type genericType)
initialType
- The initial type, which may be generic.genericType
- The generic type information if any.public Class<?> getJavaClass()
public Method getJavaMethod()
Copyright © 2005–2016. All rights reserved.