|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sourceforge.retroweaver.runtime.java.lang.annotation.AnnotationImpl
public class AnnotationImpl
The implementation of the Annotation interface, which gets returned from various points in java.lang.Class and java.lang.reflect.* classes.
| Method Summary | |
|---|---|
java.lang.Class<? extends Annotation> |
annotationType()
Returns the annotation type of this annotation. |
static Annotation |
createAnnotation(java.lang.Class<? extends Annotation> annotationType,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Called from generated bytecode to instantiate a new Annotation. |
boolean |
equals(java.lang.Object obj)
Returns true if the specified object represents an annotation that is logically equivalent to this one. |
int |
hashCode()
Returns the hash code of this annotation, as defined below: |
java.lang.Object |
invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
|
java.lang.String |
toString()
Returns a string representation of this annotation. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static Annotation createAnnotation(java.lang.Class<? extends Annotation> annotationType,
java.util.Map<java.lang.String,java.lang.Object> attributes)
annotationType - - The Annotation class that this AnnotationImpl should representattributes - - The attributes for the Annotation
For example, for @Persistable, Persistable.class
public java.lang.Object invoke(java.lang.Object proxy,
java.lang.reflect.Method method,
java.lang.Object[] args)
throws java.lang.Throwable
invoke in interface java.lang.reflect.InvocationHandlerjava.lang.Throwablepublic java.lang.Class<? extends Annotation> annotationType()
Annotation
annotationType in interface Annotationpublic boolean equals(java.lang.Object obj)
Annotation
equals in interface Annotationequals in class java.lang.Objectpublic int hashCode()
Annotation
hashCode in interface AnnotationhashCode in class java.lang.Objectpublic java.lang.String toString()
Annotation
toString in interface AnnotationtoString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||