Upstream version 1.3.40
[profile/ivi/swig.git] / Examples / test-suite / java / template_default_class_parms_runme.java
1
2
3 import template_default_class_parms.*;
4
5 public class template_default_class_parms_runme {
6
7   static {
8     try {
9         System.loadLibrary("template_default_class_parms");
10     } catch (UnsatisfiedLinkError e) {
11       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);
12       System.exit(1);
13     }
14   }
15
16   public static void main(String argv[]) {
17     {
18       DefaultBar bar = new DefaultBar(20.0, new SomeType(), 10);
19       double d = bar.getCType();
20       SomeType s = bar.getDType();
21       int i = bar.getEType();
22       d = bar.method(d, s, i);
23     }
24     {
25       DefaultFoo foo = new DefaultFoo(new SomeType());
26       SomeType s = foo.getTType();
27       s = foo.method(s);
28     }
29     {
30       BarAnotherTypeBool bar = new BarAnotherTypeBool(new AnotherType(), true, 10);
31       AnotherType a = bar.getCType();
32       boolean b = bar.getDType();
33       int i = bar.getEType();
34       a = bar.method(a, b, i);
35     }
36     {
37       FooAnotherType foo = new FooAnotherType(new AnotherType());
38       AnotherType a = foo.getTType();
39       a = foo.method(a);
40     }
41   }
42 }
43