1 /* |
1 /* |
2 * Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 2008, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
23 * questions. |
23 * questions. |
24 */ |
24 */ |
25 |
25 |
26 package com.sun.tools.classfile; |
26 package com.sun.tools.classfile; |
27 |
27 |
|
28 import java.util.Map; |
|
29 |
28 import com.sun.tools.classfile.ConstantPool.CONSTANT_Class_info; |
30 import com.sun.tools.classfile.ConstantPool.CONSTANT_Class_info; |
29 import com.sun.tools.classfile.ConstantPool.CONSTANT_Double_info; |
31 import com.sun.tools.classfile.ConstantPool.CONSTANT_Double_info; |
30 import com.sun.tools.classfile.ConstantPool.CONSTANT_Fieldref_info; |
32 import com.sun.tools.classfile.ConstantPool.CONSTANT_Fieldref_info; |
31 import com.sun.tools.classfile.ConstantPool.CONSTANT_Float_info; |
33 import com.sun.tools.classfile.ConstantPool.CONSTANT_Float_info; |
32 import com.sun.tools.classfile.ConstantPool.CONSTANT_Integer_info; |
34 import com.sun.tools.classfile.ConstantPool.CONSTANT_Integer_info; |
38 import com.sun.tools.classfile.ConstantPool.CONSTANT_Methodref_info; |
40 import com.sun.tools.classfile.ConstantPool.CONSTANT_Methodref_info; |
39 import com.sun.tools.classfile.ConstantPool.CONSTANT_NameAndType_info; |
41 import com.sun.tools.classfile.ConstantPool.CONSTANT_NameAndType_info; |
40 import com.sun.tools.classfile.ConstantPool.CONSTANT_String_info; |
42 import com.sun.tools.classfile.ConstantPool.CONSTANT_String_info; |
41 import com.sun.tools.classfile.ConstantPool.CONSTANT_Utf8_info; |
43 import com.sun.tools.classfile.ConstantPool.CONSTANT_Utf8_info; |
42 import com.sun.tools.classfile.ConstantPool.CPInfo; |
44 import com.sun.tools.classfile.ConstantPool.CPInfo; |
43 import java.util.Map; |
|
44 |
45 |
45 /** |
46 /** |
46 * Rewrites a class file using a map of translations. |
47 * Rewrites a class file using a map of translations. |
47 * |
48 * |
48 * <p><b>This is NOT part of any supported API. |
49 * <p><b>This is NOT part of any supported API. |