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.apache.tapestry5.plastic
Interface AnnotationAccess

All Known Subinterfaces:
  MethodInvocation, MethodParameter, PlasticClass, PlasticField, PlasticMethod

All Known Implementing Classes:
  AbstractMethodInvocation, DelegatingAnnotationAccess, EmptyAnnotationAccess, PlasticClassImpl

    public interface AnnotationAccess

Interface implemented by members that may hold annotations.

Method Summary
`
`<T extends java.lang.annotation.Annotation> T`
` | `getAnnotation(java.lang.Class<T> annotationType)` Returns an instantiated annotation, or null if the target does not have the indicated annotation.
`
`<T extends java.lang.annotation.Annotation> boolean`
` | `hasAnnotation(java.lang.Class<T> annotationType)` Checks to see if the target has an annotation of the given type.

Method Detail

### hasAnnotation

    <T extends java.lang.annotation.Annotation> boolean hasAnnotation(java.lang.Class<T> annotationType)

  Checks to see if the target has an annotation of the given type.

### getAnnotation

    <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> annotationType)

  Returns an instantiated annotation, or null if the target does not have the indicated annotation.

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 © 2003-2012 The Apache Software Foundation.