01: /**
02: * JavaGuard -- an obfuscation package for Java classfiles.
03: *
04: * Copyright (c) 2002 Thorsten Heit (theit@gmx.de)
05: *
06: * This library is free software; you can redistribute it and/or
07: * modify it under the terms of the GNU Lesser General Public
08: * License as published by the Free Software Foundation; either
09: * version 2 of the License, or (at your option) any later version.
10: *
11: * This library is distributed in the hope that it will be useful,
12: * but WITHOUT ANY WARRANTY; without even the implied warranty of
13: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14: * Lesser General Public License for more details.
15: *
16: * You should have received a copy of the GNU Lesser General Public
17: * License along with this library; if not, write to the Free Software
18: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
19: *
20: * The author may be contacted at theit@gmx.de.
21: *
22: *
23: * $Id: InterfaceTest.java,v 1.1 2002/05/28 14:12:06 glurk Exp $
24: */package test;
25:
26: /** A simple test class that is used to demonstrate that the obfuscator
27: * correctly processes interfaces to obfuscate. Its only purpose is to return
28: * an object that implements the test interfaces.
29: *
30: * @author <a href="mailto:theit@gmx.de">Thorsten Heit</a>
31: */
32: public class InterfaceTest {
33: /** Returns an object that implements the TopLevelInterface.
34: * @return a new object that implements the TopLevelInterface
35: */
36: public TopLevelInterface getTopLevelInterfaceImpl() {
37: return new TopLevelImpl();
38: }
39:
40: /** Returns an object that implements the FirstLevelInterface.
41: * @return a new object that implements the FirstLevelInterface
42: */
43: public FirstLevelInterface getFirstLevelInterfaceImpl() {
44: return new FirstLevelImpl();
45: }
46:
47: /** Returns an object that implements the SecondLevelInterface.
48: * @return a new object that implements the SecondLevelInterface
49: */
50: public SecondLevelInterface getSecondLevelInterfaceImpl() {
51: return new SecondLevelImpl();
52: }
53: }
|