|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Annotation
The common interface extended by all annotation types.
An annotation consists of a name (getName()
) and a map of attributes
getAttribute(java.lang.String)
.
To get the annotation associated with a component, use
ComponentCtrl.getAnnotation(String)
.
To get the annotation associated with a component's property,
use ComponentCtrl.getAnnotation(String, String)
ComponentCtrl.getAnnotation(String)
,
ComponentCtrl.getAnnotation(String, String)
,
ComponentCtrl.getAnnotations()
,
ComponentCtrl.getAnnotations(String)
Method Summary | |
---|---|
java.lang.String |
getAttribute(java.lang.String name)
Returns the first value of the given attribute, or null if not found. |
java.util.Map<java.lang.String,java.lang.String[]> |
getAttributes()
Returns the map of attributes(never null). |
java.lang.String[] |
getAttributeValues(java.lang.String name)
Returns all values of the given attribute, or null if not found. |
Location |
getLocation()
Returns the location information of the annotation in the document, or null if not available. |
java.lang.String |
getName()
Returns the name of this annotation. |
Method Detail |
---|
java.lang.String getName()
For each declaration, there is at most one annotation with the same name.
java.util.Map<java.lang.String,java.lang.String[]> getAttributes()
The returned map is read-only.
java.lang.String getAttribute(java.lang.String name)
java.lang.String[] getAttributeValues(java.lang.String name)
Location getLocation()
private static String message(String message, Location loc) {
return loc != null ? loc.format(message): message;
}
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |