|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
A generic interface for inserting or storing attributes that will be associated with the class.
| Method Summary | |
java.lang.Object |
createAttributeInstance(java.lang.String text,
java.net.URLClassLoader classLoader,
java.lang.String[] attributePackages)
Create the object that will be used to store the attribute. |
void |
insertClassAttribute(java.lang.Object attribute)
Associate an attribute at the class level. |
void |
insertFieldAttribute(java.lang.String field,
java.lang.Object attribute)
Associate an attribute at the field level. |
void |
insertMethodAttribute(com.sun.javadoc.MethodDoc methodDoc,
java.lang.Object attribute)
Associate an attribute at the method level. |
void |
write(java.lang.String destDir)
Do the work of writing all the meta-data to the new .class file. |
| Method Detail |
public java.lang.Object createAttributeInstance(java.lang.String text,
java.net.URLClassLoader classLoader,
java.lang.String[] attributePackages)
text - The string describing the attribute.classLoader - The class loader user to resolve the attribute classattributePackages - The list of package names to prefix the attribute
search
public void insertClassAttribute(java.lang.Object attribute)
attribute - The attribute, should be serializable.
public void insertMethodAttribute(com.sun.javadoc.MethodDoc methodDoc,
java.lang.Object attribute)
methodDoc - The particular method in the class to associate an
attribute.attribute - The attribute, should be serializable.
public void insertFieldAttribute(java.lang.String field,
java.lang.Object attribute)
field - The name of the field.attribute - The attribute, should be serializable.public void write(java.lang.String destDir)
destDir - where the new .class file will be located.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||