IT. Expert System.

Android Reference

AnnotationFactory


org.apache.harmony.lang.annotation

Class AnnotationFactory

    • Method Detail

      • getElementsDescription

        public static AnnotationMember[] getElementsDescription(Class<? extends Annotation> annotationType)
        Reflects specified annotation type and returns an array of member element definitions with default values.
      • createAnnotation

        public static Annotation createAnnotation(Class<? extends Annotation> annotationType,
                                  AnnotationMember[] elements)
        Provides a new annotation instance.
        Parameters:
        annotationType - the annotation type definition
        elements - name-value pairs representing elements of the annotation
        Returns:
        a new annotation instance
      • equals

        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.
        Note, actual underlying implementation mechanism does not matter - it may differ completely from this class.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare this instance with.
        Returns:
        true if the passed object is equivalent annotation instance, false otherwise.
        See Also:
        android.lang.annotation.AnnotationMember#equals(Object)
      • hashCode

        public int hashCode()
        Returns a hash code composed as a sum of hash codes of member elements, including elements with default values.
        Overrides:
        hashCode in class Object
        Returns:
        this object's hash code.
        See Also:
        android.lang.annotation.AnnotationMember#hashCode()
      • toString

        public String toString()
        Provides detailed description of this annotation instance, including all member name-values pairs.
        Overrides:
        toString in class Object
        Returns:
        string representation of this annotation
      • invoke

        public Object invoke(Object proxy,
                    Method method,
                    Object[] args)
                      throws Throwable
        Processes a method invocation request to this annotation instance. Recognizes the methods declared in the java.lang.annotation.Annotation interface, and member-defining methods of the implemented annotation type.
        Specified by:
        invoke in interface InvocationHandler
        Parameters:
        proxy - the proxy instance on which the method was invoked
        method - the method invoked on the proxy instance
        args - an array of objects containing the parameters passed to the method, or null if no arguments are expected. Primitive types are boxed.
        Returns:
        the invocation result
        Throws:
        IllegalArgumentException - If the specified method is none of the above
        Throwable - the exception to throw from the invoked method on the proxy. The exception must match one of the declared exception types of the invoked method or any unchecked exception type. If not then an UndeclaredThrowableException is thrown


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 749 / 158781788. Delta: 0.00593 с