public class SimpleAnnotationAccessor extends MetaPropertyAccessor
log
Constructor and Description |
---|
SimpleAnnotationAccessor() |
Modifier and Type | Method and Description |
---|---|
Object |
getKey()
Sub-classes should return the name of the meta-property which they implement.
|
Object |
getValue(Annotation annot,
AnnotationSet context)
Obtain the value of some part of the given annotation
|
equals, hashCode, setKey, toString
public SimpleAnnotationAccessor()
public Object getValue(Annotation annot, AnnotationSet context)
AnnotationAccessor
context
- optional parameter with information about the
context in which the annotation has meaning. Normally this
would be a Document
. Not all accessors will
require the context information so it may be null. Some
accessor implementations may throw an exception without
it.public Object getKey()
MetaPropertyAccessor
getKey
in interface AnnotationAccessor
getKey
in class MetaPropertyAccessor