|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ICrystalAnnotation
Interface for accessing annotations through the Crystal annotation database. To get Crystal to recognize an annotation that an analysis is interested in, use the extension-point edu.cmu.cs.crystal.CrystalAnnotation in plugin.xml and provide an implementation of ICrystalAnnotation that will parse your annotation. The implementation @link{CrystalAnnotation} will do very simple parsing.
Method Summary | |
---|---|
String |
getName()
Returns the fully qualified name of the original annotation class used in the source. |
Object |
getObject(String key)
Returns the value of an annotation parameter with the given name. |
void |
setName(String name)
The annotation database will use this method to populate the fully qualified name of the original annotation class. |
void |
setObject(String key,
Object value)
The annotation database will use this method to populate the explicit and implicit parameters of an annotation instance present in the analyzed source code. |
Method Detail |
---|
String getName()
void setName(String name)
name
- The fully qualified name of the original annotation class used in the source.getName()
Object getObject(String key)
ITypeBinding
for the class objectIVariableBinding
for the enum constantICrystalAnnotation
Object[]
whose elements are as per above (the language
only allows single dimensional arrays in annotations)
key
- Name of the annotation parameter, e.g., "value".
null
if
the parameter is unknown.IMemberValuePairBinding.getValue()
void setObject(String key, Object value)
getObject(String)
key
- Parameter name.value
- Parameter value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |