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