Performance hint: Use {@link IAnnotationModelExtension#replaceAnnotations(Annotation[],java.util.Map)}if several annotations are added and/or removed.
@param annotation the annotation to add, may not benull
@param position the position describing the range covered by this annotation,may not be null
null
not permitted).
@see #removeAnnotation(CategoryAnnotation)
null
not permitted).
@see #getAnnotations()
@see #removeAnnotation(XYAnnotation)
Unlike Java, you can add annotations dynamically, and each component has its own annotations. @param annotName the annotation name (never null, nor empty). @param annotAttrs a map of attributes, or null if no attribute.The attribute must be in a pair of strings (String name, String value).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|