01: /* ===========================================================================
02: * $RCSfile: NameListUp.java,v $
03: * ===========================================================================
04: *
05: * RetroGuard -- an obfuscation package for Java classfiles.
06: *
07: * Copyright (c) 1998-2006 Mark Welsh (markw@retrologic.com)
08: *
09: * This program can be redistributed and/or modified under the terms of the
10: * Version 2 of the GNU General Public License as published by the Free
11: * Software Foundation.
12: *
13: * This program is distributed in the hope that it will be useful,
14: * but WITHOUT ANY WARRANTY; without even the implied warranty of
15: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16: * GNU General Public License for more details.
17: *
18: */
19:
20: package COM.rl.obf;
21:
22: /**
23: * Interface to a list of method and field names and descriptors -- used for checking
24: * if a name/descriptor is in the public/protected lists of the super-class/interface
25: * hierarchy.
26: *
27: * @author Mark Welsh
28: */
29: public interface NameListUp {
30: /** Get output method name from list, or null if no mapping exists. */
31: public String getMethodOutNameUp(String name, String descriptor)
32: throws Exception;
33:
34: /** Get obfuscated method name from list, or null if no mapping exists. */
35: public String getMethodObfNameUp(String name, String descriptor)
36: throws Exception;
37:
38: /** Get output field name from list, or null if no mapping exists. */
39: public String getFieldOutNameUp(String name) throws Exception;
40:
41: /** Get obfuscated field name from list, or null if no mapping exists. */
42: public String getFieldObfNameUp(String name) throws Exception;
43: }
|