diff options
Diffstat (limited to 'tutorial')
-rw-r--r-- | tutorial/tutorial.html | 4 | ||||
-rw-r--r-- | tutorial/tutorial2.html | 2 | ||||
-rw-r--r-- | tutorial/tutorial3.html | 18 |
3 files changed, 21 insertions, 3 deletions
diff --git a/tutorial/tutorial.html b/tutorial/tutorial.html index 9e27fe28..4cbf6821 100644 --- a/tutorial/tutorial.html +++ b/tutorial/tutorial.html @@ -130,6 +130,8 @@ example, the data of method bodies. Thus, after a <code>CtClass</code> object is pruned, the bytecode of a method is not accessible although method names and signatures are accessible. +<p>(Note: the current version of Javassist turns pruning off by default.) + <p>To disallow pruning a <code>CtClass</code>, <code>stopPruning()</code> must be called in advance: @@ -1001,6 +1003,6 @@ binary code license.</i> <hr> Java(TM) is a trademark of Sun Microsystems, Inc.<br> -Copyright (C) 2000-2004 by Shigeru Chiba, All rights reserved. +Copyright (C) 2000-2005 by Shigeru Chiba, All rights reserved. </body> </html> diff --git a/tutorial/tutorial2.html b/tutorial/tutorial2.html index abac129a..6bc3d50b 100644 --- a/tutorial/tutorial2.html +++ b/tutorial/tutorial2.html @@ -1466,6 +1466,6 @@ write: <hr> Java(TM) is a trademark of Sun Microsystems, Inc.<br> -Copyright (C) 2000-2004 by Shigeru Chiba, All rights reserved. +Copyright (C) 2000-2005 by Shigeru Chiba, All rights reserved. </body> </html> diff --git a/tutorial/tutorial3.html b/tutorial/tutorial3.html index 635e01b6..f19e5c0d 100644 --- a/tutorial/tutorial3.html +++ b/tutorial/tutorial3.html @@ -18,6 +18,7 @@ <br><li><a href="#member">Adding and removing a member</a> <br><li><a href="#traverse">Traversing a method body</a> <br><li><a href="#bytecode">Producing a bytecode sequence</a> +<br><li><a href="#annotation">Annotations (Meta tags)</a> </ul> @@ -192,10 +193,25 @@ call <code>computeMaxStack()</code> in <code>CodeAttribute</code>. <p><br> +<a name="annotation"> +<h3>5.5 Annotations (Meta tags)</h3> + +<p>Annotations are stored in a class file +as runtime invisible (or visible) annotations attribute. +These attributes can be obtained from <code>ClassFile</code>, +<code>MethodInfo</code>, or <code>FieldInfo</code> objects. +Call <code>getAttribute(AnnotationsAttribute.invisibleTag)</code> +on those objects. For more details, see the javadoc manual +of <code>javassist.bytecode.AnnotationsAttribute</code> class +and the <code>javassist.bytecode.annotation</code> package. + + +<p><br> + <a href="tutorial2.html">Previous page</a> <hr> Java(TM) is a trademark of Sun Microsystems, Inc.<br> -Copyright (C) 2000-2004 by Shigeru Chiba, All rights reserved. +Copyright (C) 2000-2005 by Shigeru Chiba, All rights reserved. </body> </html> |