3 import template_default_class_parms.*;
5 public class template_default_class_parms_runme {
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);
16 public static void main(String argv[]) {
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);
25 DefaultFoo foo = new DefaultFoo(new SomeType());
26 SomeType s = foo.getTType();
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);
37 FooAnotherType foo = new FooAnotherType(new AnotherType());
38 AnotherType a = foo.getTType();