|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AnnotationMap
Relates AnnotationKeys to annotation object values. Implementations may define specific delegation behavior. AnnotationMap implementations must provide a no-arg constructor in order to take advantage of automatic lazy instantiation.
Method Summary | |
---|---|
java.lang.Object |
getAnnotation(java.lang.Object key)
Returns the annotation associated with the specified key. |
AnnotationManager |
getAnnotationManager()
Returns the AnnotationManager to which this AnnotationMap belongs. |
boolean |
isKeySupported(java.lang.Object key)
Returns true if the map supports the specified key. |
boolean |
isMutable()
Returns true if entries in the map can be added or updated. |
void |
setAnnotation(java.lang.Object key,
java.lang.Object annotation)
Sets the annotation object associated with the specified key. |
void |
setAnnotationManager(AnnotationManager manager)
Sets the AnnotationManager to which this map belongs. |
Method Detail |
---|
void setAnnotationManager(AnnotationManager manager)
AnnotationManager getAnnotationManager()
java.lang.Object getAnnotation(java.lang.Object key)
void setAnnotation(java.lang.Object key, java.lang.Object annotation) throws ImmutableAnnotationMapException, UnsupportedKeyException
ImmutableAnnotationMapException
- when the underlying implementation
does not support adding or updating annotations. This can be
the case for algorithmic annotations or for any annotations that
cannot be changed at runtime.
UnsupportedKeyException
boolean isMutable()
boolean isKeySupported(java.lang.Object key)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |