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 ++++-- tutorial/tutorial2.html | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'tutorial') 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

diff --git a/tutorial/tutorial2.html b/tutorial/tutorial2.html index 50ee8ec0..484e85ec 100644 --- a/tutorial/tutorial2.html +++ b/tutorial/tutorial2.html @@ -102,7 +102,7 @@ representing a method_info structure included in a class file. The low-level API uses the vocabulary from the Java Virtual machine specification. The users must have the knowledge about class files and bytecode. For more details, the users should see the -javassist.bytecode package. +javassist.bytecode package.

The class files modified by Javassist requires the javassist.runtime package for runtime support -- cgit v1.2.3