01: /*
02: * InnerImport.java --
03: *
04: * Test use of Java's import statement with inner class names.
05: *
06: * Copyright (c) 2006 by Moses DeJong
07: *
08: * See the file "license.terms" for information on usage and redistribution
09: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
10: *
11: * RCS: @(#) $Id: InnerImport.java,v 1.1 2006/04/13 07:36:51 mdejong Exp $st.java,v 1.1 1999/08/09 08:52:36 mo Exp $
12: *
13: */
14:
15: package tests;
16:
17: import tests.InnerTest.InnerClass3;
18: import tests.InnerTest.InnerClass3.InnerClass4;
19:
20: public class InnerImport {
21:
22: public static InnerTest.InnerClass3 newA() {
23: return new InnerTest.InnerClass3();
24: }
25:
26: public static InnerClass3 newB() {
27: return new InnerClass3();
28: }
29:
30: public static InnerClass4 newC() {
31: return new InnerClass3.InnerClass4();
32: }
33:
34: public static InnerClass4 newD() {
35: return new InnerClass4();
36: }
37:
38: public static InnerClass4 newE() {
39: return new tests.InnerTest.InnerClass3.InnerClass4();
40: }
41:
42: }
|