|
||||||||||
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.classpublic 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.InvocationHandler
java.lang.Throwable
public java.lang.Class<? extends Annotation> annotationType()
Annotation
annotationType
in interface Annotation
public boolean equals(java.lang.Object obj)
Annotation
equals
in interface Annotation
equals
in class java.lang.Object
public int hashCode()
Annotation
hashCode
in interface Annotation
hashCode
in class java.lang.Object
public java.lang.String toString()
Annotation
toString
in interface Annotation
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |