diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2005-11-22 16:51:12 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2005-11-22 16:51:12 +0000 |
commit | ecb71c75155bdd2990141314db777348fdf313ff (patch) | |
tree | d45c70c481bf274e87dd9ecbbc41670e51e080ef /tutorial | |
parent | a1419a5df6a881f26d3eedacb37d9ea616764cf0 (diff) | |
download | javassist-ecb71c75155bdd2990141314db777348fdf313ff.tar.gz javassist-ecb71c75155bdd2990141314db777348fdf313ff.zip |
added some methods to javassist.Bytecode and Descriptor.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@225 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/tutorial.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tutorial/tutorial.html b/tutorial/tutorial.html index f3766d43..b1541770 100644 --- a/tutorial/tutorial.html +++ b/tutorial/tutorial.html @@ -184,6 +184,7 @@ for that purpose. It stops pruning, write a class file, defrost it, and turn pruning on again (if it was initially on). </ul> + <h4>Class search path</h4> <p>The default <code>ClassPool</code> returned @@ -328,6 +329,11 @@ cc.detach(); <p>You must not call any method on that <code>CtClass</code> object after <code>detach()</code> is called. +However, you can call <code>get()</code> on <code>ClassPool</code> +to make a new instance of <code>CtClass</code> representing +the same class. If you call <code>get()</code>, the <code>ClassPool</code> +reads a class file again and newly creates a <code>CtClass</code> +object, which is returned by <code>get()</code>. <p> Another idea is to occasionally replace a <code>ClassPool</code> with |