From 51ab670ccf46e3d26648d0b55cc725db6a4ad0c7 Mon Sep 17 00:00:00 2001 From: chiba Date: Mon, 6 Sep 2004 14:05:34 +0000 Subject: edited the tutorial. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@132 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- tutorial/tutorial.html | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'tutorial') 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

-- cgit v1.2.3