diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-09-12 16:51:58 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-09-12 16:51:58 +0000 |
commit | 1e8cb81f354dfd68a5ae033a7ebc9ddae1152e37 (patch) | |
tree | a35e285df44f9f0f74cda30375bed2abcffa6cd8 /src/main | |
parent | 889debb103db3a2a5ec26f12509d6e6dfbda14d0 (diff) | |
download | javassist-1e8cb81f354dfd68a5ae033a7ebc9ddae1152e37.tar.gz javassist-1e8cb81f354dfd68a5ae033a7ebc9ddae1152e37.zip |
javadoc comments have been modified.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@135 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/javassist/CtClass.java | 22 |
1 files changed, 21 insertions, 1 deletions
diff --git a/src/main/javassist/CtClass.java b/src/main/javassist/CtClass.java index fbb3569a..0e435d78 100644 --- a/src/main/javassist/CtClass.java +++ b/src/main/javassist/CtClass.java @@ -35,7 +35,7 @@ public abstract class CtClass { /** * The version number of this release. */ - public static final String version = "3.0 beta 3"; + public static final String version = "3.0 RC1"; /** * Prints the version number and the copyright notice. @@ -820,7 +820,17 @@ public abstract class CtClass { * If that attribute is not found in the class file, this * method returns null. * + * <p>This is a convenient method mainly for obtaining + * a user-defined attribute. For dealing with attributes, see the + * <code>javassist.bytecode</code> package. For example, the following + * expression returns all the attributes of a class file. + * + * <ul><pre> + * getClassFile().getAttributes() + * </pre></ul> + * * @param name attribute name + * @see javassist.bytecode.AttributeInfo */ public byte[] getAttribute(String name) { return null; @@ -835,8 +845,18 @@ public abstract class CtClass { * If there is already an attribute with * the same name, this method substitutes the new one for it. * + * <p>This is a convenient method mainly for adding + * a user-defined attribute. For dealing with attributes, see the + * <code>javassist.bytecode</code> package. For example, the following + * expression adds an attribute of a class file. + * + * <ul><pre> + * getClassFile().addAttribute(info) + * </pre></ul> + * * @param name attribute name * @param data attribute value + * @see javassist.bytecode.AttributeInfo */ public void setAttribute(String name, byte[] data) { checkModify(); |