diff options
author | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-08-19 14:04:32 +0000 |
---|---|---|
committer | chiba <chiba@30ef5769-5b8d-40dd-aea6-55b5d6557bb3> | 2004-08-19 14:04:32 +0000 |
commit | 8c82477b4172ed0db9e5d866a0dba22ae20eb23f (patch) | |
tree | 413e976fd906df977b3ebf383f4eddf9372de84e /src/main/javassist/bytecode/MethodInfo.java | |
parent | 7fd8dd68388f6e910b1e0f54df363a84481d0809 (diff) | |
download | javassist-8c82477b4172ed0db9e5d866a0dba22ae20eb23f.tar.gz javassist-8c82477b4172ed0db9e5d866a0dba22ae20eb23f.zip |
implemented pruning
git-svn-id: http://anonsvn.jboss.org/repos/javassist/trunk@125 30ef5769-5b8d-40dd-aea6-55b5d6557bb3
Diffstat (limited to 'src/main/javassist/bytecode/MethodInfo.java')
-rw-r--r-- | src/main/javassist/bytecode/MethodInfo.java | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/main/javassist/bytecode/MethodInfo.java b/src/main/javassist/bytecode/MethodInfo.java index b3d33213..9e866578 100644 --- a/src/main/javassist/bytecode/MethodInfo.java +++ b/src/main/javassist/bytecode/MethodInfo.java @@ -95,6 +95,13 @@ public final class MethodInfo { read(src, methodname, classnameMap); } + void prune(ConstPool cp) { + attribute = null; + name = cp.addUtf8Info(getName()); + descriptor = cp.addUtf8Info(getDescriptor()); + constPool = cp; + } + /** * Returns a method name. */ |