Package 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
Modifier and TypeMethodDescription<T extends Annotation>
TgetAnnotation(Class<T> annotationType) Returns an instantiated annotation, or null if the target does not have the indicated annotation.<T extends Annotation>
booleanhasAnnotation(Class<T> annotationType) Checks to see if the target has an annotation of the given type.
-
Method Details
-
hasAnnotation
Checks to see if the target has an annotation of the given type. -
getAnnotation
Returns an instantiated annotation, or null if the target does not have the indicated annotation.
-