From bfdfdff690cdf56edb25ef28740da13dc2c86785 Mon Sep 17 00:00:00 2001 From: chiba Date: Mon, 31 Oct 2005 16:48:44 +0000 Subject: added makeUniqueName() in CtClass. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@215 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- tutorial/tutorial.html | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tutorial/tutorial.html') diff --git a/tutorial/tutorial.html b/tutorial/tutorial.html index c2d54a87..f591abe7 100644 --- a/tutorial/tutorial.html +++ b/tutorial/tutorial.html @@ -76,7 +76,9 @@ specified key. If such a CtClass object is not found, then returned as the resulting value of get().

The CtClass object obtained from a ClassPool -object can be modified. +object can be modified +(details of how to modify +a CtClass will be presented later). In the example above, it is modified so that the superclass of test.Rectangle is changed into a class test.Point. This change is reflected on the original @@ -101,7 +103,7 @@ Class clazz = cc.toClass();

toClass() requests the context class loader for the current thread to load the class file represented by the CtClass. It returns a java.lang.Class object representing the loaded class. -For more details, please see the following section. +For more details, please see this section below.

Defining a new class

-- cgit v1.2.3