Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.jboss.aop.annotation
Class AnnotationElement

    java.lang.Object
      org.jboss.aop.annotation.PortableAnnotationElement
          org.jboss.aop.annotation.AnnotationElement

public class AnnotationElement
extends PortableAnnotationElement

Bridge/portability class for resolving annotations in JDK 1.4 and JDK1.5 Should be usable in JDK 1.4 and also should support finding invisible annotations. This would be needed for aspect bindings

Version:
  $Revision: 1.7 $
Author:
  Bill Burke

Constructor Summary
`AnnotationElement()`

Method Summary
`static Object` | `getVisibleAnnotation(Class clazz, Class annotation)` If class has a visible annotation, return it.
`static Object` | `getVisibleAnnotation(Constructor con, Class annotation)` If constructor has visible annotation return it.
`static Object` | `getVisibleAnnotation(Field field, Class annotation)` If field has a visible annotation return it.
`static Object` | `getVisibleAnnotation(Method method, Class annotation)` Get a visible annotation for a particle Method.
`static Object[]` | `getVisibleAnnotations(Class clazz)`
`static Object[]` | `getVisibleAnnotations(Constructor c)`
`static Object[]` | `getVisibleAnnotations(Field f)`
`static Object[]` | `getVisibleAnnotations(Method m)`
`static boolean` | `isVisibleAnnotationPresent(Class clazz, Class annotation)`
`static boolean` | `isVisibleAnnotationPresent(Constructor con, Class annotation)`
`static boolean` | `isVisibleAnnotationPresent(Field field, Class annotation)`
`static boolean` | `isVisibleAnnotationPresent(Method method, Class annotation)`

Methods inherited from class org.jboss.aop.annotation.PortableAnnotationElement
`create, getAnnotationType, getAnyAnnotation, getAnyAnnotation, getAnyAnnotation, getAnyAnnotation, getClassFile, getInvisibleAnnotation, getInvisibleAnnotation, getInvisibleAnnotation, getInvisibleAnnotation, isAnyAnnotationPresent, isAnyAnnotationPresent, isAnyAnnotationPresent, isAnyAnnotationPresent, isAnyAnnotationPresent, isAnyAnnotationPresent, isAnyAnnotationPresent, isAnyAnnotationPresent, isAnyAnnotationPresent, isAnyAnnotationPresent, isAnyAnnotationPresent, isAnyAnnotationPresent, isInvisibleAnnotationPresent, isInvisibleAnnotationPresent, isInvisibleAnnotationPresent, isInvisibleAnnotationPresent, isInvisibleAnnotationPresent, isInvisibleAnnotationPresent, isVisibleAnnotationPresent, isVisibleAnnotationPresent, isVisibleAnnotationPresent, isVisibleAnnotationPresent, isVisibleAnnotationPresent, isVisibleAnnotationPresent`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### AnnotationElement

    public AnnotationElement()

Method Detail

### getVisibleAnnotation

    public static Object getVisibleAnnotation(Method method,
                                              Class annotation)

  Get a visible annotation for a particle Method. If this is JDK 1.5 then this is a wrapper for Method.getAnnotation

  Parameters:
    `method` -
    `annotation` -
  Returns:

### getVisibleAnnotation

    public static Object getVisibleAnnotation(Constructor con,
                                              Class annotation)

  If constructor has visible annotation return it. If this is JDK 1.5 this is a wrapper for Constructor.getAnnotation()

  Parameters:
    `con` -
    `annotation` -
  Returns:

### getVisibleAnnotation

    public static Object getVisibleAnnotation(Field field,
                                              Class annotation)

  If field has a visible annotation return it. If this is JDK 1.5 this is a wrapper for Field.getAnnotation.

  Parameters:
    `field` -
    `annotation` -
  Returns:

### getVisibleAnnotation

    public static Object getVisibleAnnotation(Class clazz,
                                              Class annotation)

  If class has a visible annotation, return it. If this is JDK 1.5 this is a wrapper for Class.getAnnotation

  Parameters:
    `clazz` -
    `annotation` -
  Returns:

### isVisibleAnnotationPresent

    public static boolean isVisibleAnnotationPresent(Field field,
                                                     Class annotation)
                                              throws Exception

  Throws:
    `Exception`

### isVisibleAnnotationPresent

    public static boolean isVisibleAnnotationPresent(Class clazz,
                                                     Class annotation)
                                              throws Exception

  Throws:
    `Exception`

### isVisibleAnnotationPresent

    public static boolean isVisibleAnnotationPresent(Constructor con,
                                                     Class annotation)
                                              throws Exception

  Throws:
    `Exception`

### isVisibleAnnotationPresent

    public static boolean isVisibleAnnotationPresent(Method method,
                                                     Class annotation)
                                              throws Exception

  Throws:
    `Exception`

### getVisibleAnnotations

    public static Object[] getVisibleAnnotations(Class clazz)
                                          throws Exception

  Throws:
    `Exception`

### getVisibleAnnotations

    public static Object[] getVisibleAnnotations(Method m)
                                          throws Exception

  Throws:
    `Exception`

### getVisibleAnnotations

    public static Object[] getVisibleAnnotations(Field f)
                                          throws Exception

  Throws:
    `Exception`

### getVisibleAnnotations

    public static Object[] getVisibleAnnotations(Constructor c)
                                          throws Exception

  Throws:
    `Exception`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2004 JBoss Inc. All Rights Reserved.