diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-09-06 14:05:34 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-09-06 14:05:34 +0000 |
commit | 51ab670ccf46e3d26648d0b55cc725db6a4ad0c7 (patch) | |
tree | 59ae91828eeed097b7f3b34ee052a38c6b72e2c3 | |
parent | 0e6ebb79d3872415b7cb3d41f9aa8f83aba623ba (diff) | |
download | javassist-51ab670ccf46e3d26648d0b55cc725db6a4ad0c7.tar.gz javassist-51ab670ccf46e3d26648d0b55cc725db6a4ad0c7.zip |
edited the tutorial.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@132 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
-rw-r--r-- | tutorial/tutorial.html | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tutorial/tutorial.html b/tutorial/tutorial.html index 84de35b4..9e27fe28 100644 --- a/tutorial/tutorial.html +++ b/tutorial/tutorial.html @@ -103,6 +103,17 @@ CtClass cc = pool.makeClass("Point"); <p>This program defines a class <code>Point</code> including no members. +Member methods of <code>Point</code> can be created with +factory methods declared in <code>CtNewMethod</code> and +appended to <code>Point</code> with <code>addMethod()</code> +in <code>CtClass</code>. + +<p><code>makeClass()</code> cannot create a new interface; +<code>makeInterface()</code> in <code>ClassPool</code> can do. +Member methods in an interface can be created with +<code>abstractMethod()</code> in <code>CtNewMethod</code>. +Note that an interface method is an abstract method. + <h4>Frozen classes</h4> |