1 
2 import rename3.*;
3 
4 public class rename3_runme {
5 
6   static {
7     try {
8 	System.loadLibrary("rename3");
9     } catch (UnsatisfiedLinkError e) {
10       System.err.println("Native code library failed to load. See the chapter on Dynamic Linking Problems in the SWIG Java documentation for help.\n" + e);
11       System.exit(1);
12     }
13   }
14 
15   // The code in main is the same for rename1_runme, rename2_runme, rename3_runme and renam4_runme
main(String argv[])16   public static void main(String argv[]) {
17     {
18       XYZInt xyz = new XYZInt();
19       NotXYZInt notxyz = new NotXYZInt();
20       xyz.opIntPtrA();
21       xyz.opIntPtrB();
22       xyz.opAnother2();
23       xyz.opT2();
24       xyz.tMethod2(0);
25       xyz.tMethodNotXYZ2(notxyz);
26       xyz.opNotXYZ2();
27     }
28     {
29       XYZDouble xyz = new XYZDouble();
30       NotXYZDouble notxyz = new NotXYZDouble();
31       xyz.opIntPtrA();
32       xyz.opIntPtrB();
33       xyz.opAnother1();
34       xyz.opT1();
35       xyz.tMethod1(0);
36       xyz.tMethodNotXYZ1(notxyz);
37       xyz.opNotXYZ1();
38     }
39     {
40       XYZKlass xyz = new XYZKlass();
41       NotXYZKlass notxyz = new NotXYZKlass();
42       xyz.opIntPtrA();
43       xyz.opIntPtrB();
44       xyz.opAnother3();
45       xyz.opT3();
46       xyz.tMethod3(new Klass());
47       xyz.tMethodNotXYZ3(notxyz);
48       xyz.opNotXYZ3();
49     }
50     {
51       XYZEnu xyz = new XYZEnu();
52       NotXYZEnu notxyz = new NotXYZEnu();
53       xyz.opIntPtrA();
54       xyz.opIntPtrB();
55       xyz.opAnother4();
56       xyz.opT4();
57       xyz.tMethod4(Enu.En1);
58       xyz.tMethodNotXYZ4(notxyz);
59       xyz.opNotXYZ4();
60     }
61     {
62       ABC abc = new ABC();
63       abc.methodABC(abc);
64       Klass k = new Klass();
65       abc.methodKlass(k);
66       ABC a = abc.opABC();
67       k = abc.opKlass();
68     }
69   }
70 }
71 
72