aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtNewConstructor.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2003-05-19 05:57:40 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2003-05-19 05:57:40 +0000
commit03e676c3ec809a09ebcc3ee3c2927e903d19e461 (patch)
tree5e7c7fb595c79b34b5a8f3ad2ffd96f70919d765 /src/main/javassist/CtNewConstructor.java
parent0ed1ede707440a9a981c2e0cfd5421b0ba0e364d (diff)
downloadjavassist-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/CtNewConstructor.java')
-rw-r--r--src/main/javassist/CtNewConstructor.java13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/main/javassist/CtNewConstructor.java b/src/main/javassist/CtNewConstructor.java
index a461bb19..49e7465a 100644
--- a/src/main/javassist/CtNewConstructor.java
+++ b/src/main/javassist/CtNewConstructor.java
@@ -74,12 +74,15 @@ public class CtNewConstructor {
/**
* Creates a public constructor.
*
- * @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 constructor body.
* It must be a block surrounded by <code>{}</code>.
+ * If it is <code>null</code>, the substituted
+ * constructor body does nothing except calling
+ * <code>super()</code>.
* @param declaring the class to which the created method is added.
*/
public static CtConstructor make(CtClass[] parameters,