diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2005-08-26 05:54:02 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2005-08-26 05:54:02 +0000 |
commit | 5e191f7f297bfbd53c4f65ffc66074572e6b5ac2 (patch) | |
tree | 6d0f58a3084c87dcb0a8600add015dc48ebdc932 /src/main/javassist/bytecode/ClassFile.java | |
parent | 1d89891b544624cabe7ec0d374e2edee32a11bd7 (diff) | |
download | javassist-5e191f7f297bfbd53c4f65ffc66074572e6b5ac2.tar.gz javassist-5e191f7f297bfbd53c4f65ffc66074572e6b5ac2.zip |
fixed JIRA Javassist-9. javadoc comments have been updated.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@198 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/bytecode/ClassFile.java')
-rw-r--r-- | src/main/javassist/bytecode/ClassFile.java | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/src/main/javassist/bytecode/ClassFile.java b/src/main/javassist/bytecode/ClassFile.java index 9fd3c8e4..bab40b70 100644 --- a/src/main/javassist/bytecode/ClassFile.java +++ b/src/main/javassist/bytecode/ClassFile.java @@ -523,7 +523,11 @@ public final class ClassFile { } /** - * Returns all the attributes. + * Returns all the attributes. The returned <code>List</code> object + * is shared with this object. If you add a new attribute to the list, + * the attribute is also added to the classs file represented by this + * object. If you remove an attribute from the list, it is also removed + * from the class file. * * @return a list of <code>AttributeInfo</code> objects. * @see AttributeInfo @@ -533,10 +537,12 @@ public final class ClassFile { } /** - * Returns the attribute with the specified name. + * Returns the attribute with the specified name. If there are multiple + * attributes with that name, this method returns either of them. It + * returns null if the specified attributed is not found. * - * @param name - * attribute name + * @param name attribute name + * @see #getAttributes() */ public AttributeInfo getAttribute(String name) { LinkedList list = attributes; @@ -553,6 +559,8 @@ public final class ClassFile { /** * Appends an attribute. If there is already an attribute with the same * name, the new one substitutes for it. + * + * @see #getAttributes() */ public void addAttribute(AttributeInfo info) { AttributeInfo.remove(attributes, info.getName()); |