public class Annotation
extends java.lang.Object
| Constructor and Description |
|---|
Annotation(java.lang.String annotationClassName,
java.lang.Object annotation,
AnnotationType type,
java.lang.String className,
java.lang.String memberName,
java.lang.String[] parameterTypes,
int parameterIndex)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object other)
Equals
|
java.lang.Object |
getAnnotation()
Get the annotation instance
|
java.lang.String |
getAnnotationClassName()
Get the fully qualified class name of the annotation
|
java.lang.String |
getClassName()
Get the fully qualified class name where the annotation is located
|
java.lang.String |
getMemberName()
Get the member name (field or method name);
null if class or constructor |
int |
getParameterIndex()
Get the parameter index for parameter annotation
|
java.lang.String[] |
getParameterTypes()
Get the fully qualified class names of all parameters;
null if there are no parameters |
AnnotationType |
getType()
Get the annotation type
|
int |
hashCode()
Hash code of the object
|
java.lang.String |
toString()
String representation
|
public Annotation(java.lang.String annotationClassName,
java.lang.Object annotation,
AnnotationType type,
java.lang.String className,
java.lang.String memberName,
java.lang.String[] parameterTypes,
int parameterIndex)
annotationClassName - The fully qualified class name for the annotationannotation - The annotation instancetype - The type of the annotationclassName - The fully qualified class name of the class where the annotation is locatedmemberName - The name of the field or method; null if class or constructorparameterTypes - The fully qualified class names of all parameters if any otherwise nullparameterIndex - The parameter index for parameter annotations; -1 if not neededpublic java.lang.String getAnnotationClassName()
public java.lang.Object getAnnotation()
public AnnotationType getType()
public java.lang.String getClassName()
public java.lang.String getMemberName()
null if class or constructorpublic java.lang.String[] getParameterTypes()
null if there are no parameterspublic int getParameterIndex()
public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Objectother - The other objectpublic java.lang.String toString()
toString in class java.lang.ObjectCopyright ? 2009 Red Hat Middleware LLC (http://www.jboss.com/)