aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/CtNewConstructor.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/javassist/CtNewConstructor.java')
-rw-r--r--src/main/javassist/CtNewConstructor.java26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/main/javassist/CtNewConstructor.java b/src/main/javassist/CtNewConstructor.java
index 606e1a3c..ecec642f 100644
--- a/src/main/javassist/CtNewConstructor.java
+++ b/src/main/javassist/CtNewConstructor.java
@@ -219,8 +219,8 @@ public class CtNewConstructor {
* <code>Object</code>. The signature of the super's constructor
* must be:
*
- * <ul><code>constructor(Object[] params, &lt;type&gt; cvalue)
- * </code></ul>
+ * <pre>constructor(Object[] params, &lt;type&gt; cvalue)
+ * </pre>
*
* <p>Here, <code>cvalue</code> is the constant value specified
* by <code>cparam</code>.
@@ -228,7 +228,7 @@ public class CtNewConstructor {
* <p>If <code>cparam</code> is <code>null</code>, the signature
* must be:
*
- * <ul><code>constructor(Object[] params)</code></ul>
+ * <pre>constructor(Object[] params)</pre>
*
* <p>If <code>body</code> is not null, a copy of that method is
* embedded in the body of the created constructor.
@@ -245,20 +245,20 @@ public class CtNewConstructor {
* The method specified by <code>body</code> must have the
* signature shown below:
*
- * <ul><code>Object method(Object[] params, &lt;type&gt; cvalue)
- * </code></ul>
+ * <pre>Object method(Object[] params, &lt;type&gt; cvalue)</pre>
*
* <p>If <code>cparam</code> is <code>null</code>, the signature
* must be:
*
- * <ul><code>Object method(Object[] params)</code></ul>
+ * <pre>Object method(Object[] params)</pre>
*
* <p>Although the type of the returned value is <code>Object</code>,
* the value must be always <code>null</code>.
*
* <p><i>Example:</i>
*
- * <ul><pre>ClassPool pool = ... ;
+ * <pre>
+ * ClassPool pool = ... ;
* CtClass xclass = pool.makeClass("X");
* CtMethod method = pool.getMethod("Sample", "m");
* xclass.setSuperclass(pool.get("Y"));
@@ -266,20 +266,22 @@ public class CtNewConstructor {
* ConstParameter cparam = ConstParameter.string("test");
* CtConstructor c = CtNewConstructor.make(argTypes, null,
* PASS_PARAMS, method, cparam, xclass);
- * xclass.addConstructor(c);</pre></ul>
+ * xclass.addConstructor(c);</pre>
*
* <p>where the class <code>Sample</code> is as follows:
*
- * <ul><pre>public class Sample {
+ * <pre>
+ * public class Sample {
* public Object m(Object[] args, String msg) {
* System.out.println(msg);
* return null;
* }
- * }</pre></ul>
+ * }</pre>
*
* <p>This program produces the following class:
*
- * <ul><pre>public class X extends Y {
+ * <pre>
+ * public class X extends Y {
* public X(int p0) {
* super(p0);
* String msg = "test";
@@ -289,7 +291,7 @@ public class CtNewConstructor {
* Object result = null;
* // end
* }
- * }</pre></ul>
+ * }</pre>
*
* @param parameters a list of the parameter types
* @param exceptions a list of the exceptions