From 13ecd1542cc38d7a4699006ad9d7471fa224be0b Mon Sep 17 00:00:00 2001 From: chiba Date: Wed, 2 Mar 2005 03:42:10 +0000 Subject: fixed a bug of CtBehavior.insertAt (and a few other minor fixes) git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@162 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- tutorial/tutorial.html | 4 +++- tutorial/tutorial2.html | 2 +- tutorial/tutorial3.html | 18 +++++++++++++++++- 3 files changed, 21 insertions(+), 3 deletions(-) (limited to 'tutorial') 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 CtClass object is pruned, the bytecode of a method is not accessible although method names and signatures are accessible. +

(Note: the current version of Javassist turns pruning off by default.) +

To disallow pruning a CtClass, stopPruning() must be called in advance: @@ -1001,6 +1003,6 @@ binary code license.


Java(TM) is a trademark of Sun Microsystems, Inc.
-Copyright (C) 2000-2004 by Shigeru Chiba, All rights reserved. +Copyright (C) 2000-2005 by Shigeru Chiba, All rights reserved. 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:
Java(TM) is a trademark of Sun Microsystems, Inc.
-Copyright (C) 2000-2004 by Shigeru Chiba, All rights reserved. +Copyright (C) 2000-2005 by Shigeru Chiba, All rights reserved. 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 @@
  • Adding and removing a member
  • Traversing a method body
  • Producing a bytecode sequence +
  • Annotations (Meta tags) @@ -190,12 +191,27 @@ constructed from the Bytecode object. To recompute the maximum stack depth of a method body, call computeMaxStack() in CodeAttribute. +


    + + +

    5.5 Annotations (Meta tags)

    + +

    Annotations are stored in a class file +as runtime invisible (or visible) annotations attribute. +These attributes can be obtained from ClassFile, +MethodInfo, or FieldInfo objects. +Call getAttribute(AnnotationsAttribute.invisibleTag) +on those objects. For more details, see the javadoc manual +of javassist.bytecode.AnnotationsAttribute class +and the javassist.bytecode.annotation package. + +


    Previous page


    Java(TM) is a trademark of Sun Microsystems, Inc.
    -Copyright (C) 2000-2004 by Shigeru Chiba, All rights reserved. +Copyright (C) 2000-2005 by Shigeru Chiba, All rights reserved. -- cgit v1.2.3