| java.lang.Object org.apache.harmony.lang.annotation.AnnotationFactory
Method Summary | |
public static Annotation | createAnnotation(Class<? extends Annotation> annotationType, AnnotationMember[] elements) Provides a new annotation instance. | public boolean | equals(Object obj) Returns true if the specified object represents the same annotation instance.
That is, if it implements the same annotation type and
returns the same element values. | public static AnnotationMember[] | getElementsDescription(Class<? extends Annotation> annotationType) Reflects specified annotation type and returns an array
of member element definitions with default values. | public int | hashCode() Returns a hash code composed as a sum of hash codes of member elements,
including elements with default values. | public Object | invoke(Object proxy, Method method, Object[] args) Processes a method invocation request to this annotation instance. | public String | toString() Provides detailed description of this annotation instance,
including all member name-values pairs. |
createAnnotation | public static Annotation createAnnotation(Class<? extends Annotation> annotationType, AnnotationMember[] elements)(Code) | | Provides a new annotation instance.
Parameters: annotationType - the annotation type definition Parameters: elements - name-value pairs representing elements of the annotation a new annotation instance |
equals | public boolean equals(Object obj)(Code) | | Returns true if the specified object represents the same annotation instance.
That is, if it implements the same annotation type and
returns the same element values.
Note, actual underlying implementation mechanism does not matter - it may
differ completely from this class.
true if the passed object is equivalent annotation instance, false otherwise. See Also: org.apache.harmony.lang.annotation.AnnotationMember.equals(Object) |
getElementsDescription | public static AnnotationMember[] getElementsDescription(Class<? extends Annotation> annotationType)(Code) | | Reflects specified annotation type and returns an array
of member element definitions with default values.
|
toString | public String toString()(Code) | | Provides detailed description of this annotation instance,
including all member name-values pairs.
string representation of this annotation |
|
|