From: chiba Date: Mon, 6 Sep 2004 14:05:34 +0000 (+0000) Subject: edited the tutorial. X-Git-Tag: rel_3_17_1_ga~482 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=51ab670ccf46e3d26648d0b55cc725db6a4ad0c7;p=javassist.git edited the tutorial. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@132 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- 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");

This program defines a class Point including no members. +Member methods of Point can be created with +factory methods declared in CtNewMethod and +appended to Point with addMethod() +in CtClass. + +

makeClass() cannot create a new interface; +makeInterface() in ClassPool can do. +Member methods in an interface can be created with +abstractMethod() in CtNewMethod. +Note that an interface method is an abstract method. +

Frozen classes