From aa92b8250ecf9bb0698a0844123b67a5f2ac5279 Mon Sep 17 00:00:00 2001 From: chiba Date: Mon, 19 Jul 2004 12:02:27 +0000 Subject: Bugs item #988787 has been fixed. git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@114 30ef5769-5b8d-40dd-aea6-55b5d6557bb3 --- tutorial/tutorial3.html | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'tutorial/tutorial3.html') diff --git a/tutorial/tutorial3.html b/tutorial/tutorial3.html index 4b732978..c965a64c 100644 --- a/tutorial/tutorial3.html +++ b/tutorial/tutorial3.html @@ -84,10 +84,16 @@ In other words, a FieldInfo (or MethodInfo etc.) objec must not be shared among different ClassFile objects.

-To remove a field or a method, you must first obtain a java.util.List +To remove a field or a method, +you must first obtain a java.util.List object containing all the fields of the class. getFields() and getMethods() return the lists. A field or a method can be removed by calling remove() on the List object. +An attribute can be removed in a similar way. +Call getAttributes() in FieldInfo or +MethodInfo to obtain the list of attributes, +and remove one from the list. +


-- cgit v1.2.3