Browse Source

edited the tutorial.


git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@132 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
tags/rel_3_17_1_ga
chiba 19 years ago
parent
commit
51ab670ccf
1 changed files with 11 additions and 0 deletions
  1. 11
    0
      tutorial/tutorial.html

+ 11
- 0
tutorial/tutorial.html View File

@@ -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>


Loading…
Cancel
Save