aboutsummaryrefslogtreecommitdiffstats
path: root/src/main/javassist/bytecode/AttributeInfo.java
diff options
context:
space:
mode:
authorchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-01-12 16:09:47 +0000
committerchiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3>2005-01-12 16:09:47 +0000
commite793a77000f14fd8272388f7b2878a54e2d628ca (patch)
tree47c705d645288afd4bc39a87a4baf80154222401 /src/main/javassist/bytecode/AttributeInfo.java
parent91895bb38cf5cf4feaf8dcb3ba76555d67d765db (diff)
downloadjavassist-e793a77000f14fd8272388f7b2878a54e2d628ca.tar.gz
javassist-e793a77000f14fd8272388f7b2878a54e2d628ca.zip
implemented removeMethod() etc.
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@151 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/bytecode/AttributeInfo.java')
-rw-r--r--src/main/javassist/bytecode/AttributeInfo.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/AttributeInfo.java b/src/main/javassist/bytecode/AttributeInfo.java
index 28b01846..06d89904 100644
--- a/src/main/javassist/bytecode/AttributeInfo.java
+++ b/src/main/javassist/bytecode/AttributeInfo.java
@@ -222,4 +222,18 @@ public class AttributeInfo {
attr.write(out);
}
}
+
+ static LinkedList copyAll(LinkedList list, ConstPool cp) {
+ if (list == null)
+ return null;
+
+ LinkedList newList = new LinkedList();
+ int n = list.size();
+ for (int i = 0; i < n; ++i) {
+ AttributeInfo attr = (AttributeInfo)list.get(i);
+ newList.add(attr.copy(cp, null));
+ }
+
+ return newList;
+ }
}