diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2003-05-19 05:57:40 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2003-05-19 05:57:40 +0000 |
commit | 03e676c3ec809a09ebcc3ee3c2927e903d19e461 (patch) | |
tree | 5e7c7fb595c79b34b5a8f3ad2ffd96f70919d765 /src/main/javassist/CtNewMethod.java | |
parent | 0ed1ede707440a9a981c2e0cfd5421b0ba0e364d (diff) | |
download | javassist-03e676c3ec809a09ebcc3ee3c2927e903d19e461.tar.gz javassist-03e676c3ec809a09ebcc3ee3c2927e903d19e461.zip |
changed CtBehavior.setBody() so that setBody(null) produces a body
including nothing but a return statement.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@20 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/CtNewMethod.java')
-rw-r--r-- | src/main/javassist/CtNewMethod.java | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/main/javassist/CtNewMethod.java b/src/main/javassist/CtNewMethod.java index 525a1216..4853c2fd 100644 --- a/src/main/javassist/CtNewMethod.java +++ b/src/main/javassist/CtNewMethod.java @@ -84,12 +84,14 @@ public class CtNewMethod { /** * Creates a public method. * - * @param returnType the type of the returned value - * @param mname the method name - * @param parameters a list of the parameter types - * @param exceptions a list of the exception types - * @param src the source text of the method body. + * @param returnType the type of the returned value. + * @param mname the method name. + * @param parameters a list of the parameter types. + * @param exceptions a list of the exception types. + * @param body the source text of the method body. * It must be a block surrounded by <code>{}</code>. + * If it is <code>null</code>, the created method + * does nothing except returning zero or null. * @param declaring the class to which the created method is added. */ public static CtMethod make(CtClass returnType, String mname, |