public class StorablePropertyAnnotation
extends java.lang.Object
Constructor and Description |
---|
StorablePropertyAnnotation(java.lang.annotation.Annotation annotation,
java.lang.reflect.Method method)
Use this constructor if an annotation was actually defined.
|
StorablePropertyAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType,
java.lang.reflect.Method method)
Use this constructor if an annotation was not defined, but instead is
being automatically applied.
|
Modifier and Type | Method and Description |
---|---|
java.lang.reflect.Method |
getAnnotatedMethod()
Returns the method that has the annotation.
|
java.lang.annotation.Annotation |
getAnnotation()
Returns the actual annotation instance, which may be null if annotation
was automatically applied.
|
java.lang.Class<? extends java.lang.annotation.Annotation> |
getAnnotationType()
Returns the type of annotation that was applied to the property method.
|
public StorablePropertyAnnotation(java.lang.annotation.Annotation annotation, java.lang.reflect.Method method)
annotation
- annotation on methodmethod
- method with annotationpublic StorablePropertyAnnotation(java.lang.Class<? extends java.lang.annotation.Annotation> annotationType, java.lang.reflect.Method method)
annotationType
- annotation type on methodmethod
- method with annotationpublic java.lang.annotation.Annotation getAnnotation()
public java.lang.Class<? extends java.lang.annotation.Annotation> getAnnotationType()
public java.lang.reflect.Method getAnnotatedMethod()
Copyright © 2006-2013 Amazon Technologies, Inc.. All Rights Reserved.