PageRenderTime 43ms CodeModel.GetById 27ms app.highlight 12ms RepoModel.GetById 1ms app.codeStats 0ms

/tags/rel-1.3.35/Examples/test-suite/java/rename3_runme.java

#
Java | 75 lines | 69 code | 5 blank | 1 comment | 0 complexity | 9e4d2836c593c6b2155a23c748590d61 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
 1
 2import rename3.*;
 3
 4public 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
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      xyz.opXYZ2();
28    }
29    {
30      XYZDouble xyz = new XYZDouble();
31      NotXYZDouble notxyz = new NotXYZDouble();
32      xyz.opIntPtrA();
33      xyz.opIntPtrB();
34      xyz.opAnother1();
35      xyz.opT1();
36      xyz.tMethod1(0);
37      xyz.tMethodNotXYZ1(notxyz);
38      xyz.opNotXYZ1();
39      xyz.opXYZ1();
40    }
41    {
42      XYZKlass xyz = new XYZKlass();
43      NotXYZKlass notxyz = new NotXYZKlass();
44      xyz.opIntPtrA();
45      xyz.opIntPtrB();
46      xyz.opAnother3();
47      xyz.opT3();
48      xyz.tMethod3(new Klass());
49      xyz.tMethodNotXYZ3(notxyz);
50      xyz.opNotXYZ3();
51      xyz.opXYZ3();
52    }
53    {
54      XYZEnu xyz = new XYZEnu();
55      NotXYZEnu notxyz = new NotXYZEnu();
56      xyz.opIntPtrA();
57      xyz.opIntPtrB();
58      xyz.opAnother4();
59      xyz.opT4();
60      xyz.tMethod4(Enu.En1);
61      xyz.tMethodNotXYZ4(notxyz);
62      xyz.opNotXYZ4();
63      xyz.opXYZ4();
64    }
65    {
66      ABC abc = new ABC();
67      abc.methodABC(abc);
68      Klass k = new Klass();
69      abc.methodKlass(k);
70      ABC a = abc.opABC();
71      k = abc.opKlass();
72    }
73  }
74}
75