public class LengthAccessor extends MetaPropertyAccessor
log
Constructor and Description |
---|
LengthAccessor() |
Modifier and Type | Method and Description |
---|---|
Object |
getKey()
Always returns "length", the name of the meta-property which this
accessor provides.
|
Object |
getValue(Annotation annot,
AnnotationSet context)
Return the length of the span of the annotation.
|
equals, hashCode, setKey, toString
public LengthAccessor()
public Object getValue(Annotation annot, AnnotationSet context)
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()
getKey
in interface AnnotationAccessor
getKey
in class MetaPropertyAccessor