PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 4ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/java/inherit_target_language_runme.java

#
Java | 35 lines | 26 code | 9 blank | 0 comment | 0 complexity | 677be2cdb48ba62912cc5a79b0aaf1d0 MD5 | raw file
 1
 2import inherit_target_language.*;
 3
 4
 5public class inherit_target_language_runme {
 6
 7  static {
 8    try {
 9	System.loadLibrary("inherit_target_language");
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    new Derived1().targetLanguageBaseMethod();
18    new Derived2().targetLanguageBaseMethod();
19
20    new MultipleDerived1().targetLanguageBaseMethod();
21    new MultipleDerived2().targetLanguageBaseMethod();
22    new MultipleDerived3().f();
23    new MultipleDerived4().g();
24
25    BaseX baseX = new BaseX();
26    baseX.basex();
27    baseX.targetLanguageBase2Method();
28
29    DerivedX derivedX = new DerivedX();
30    derivedX.basex();
31    derivedX.derivedx();
32    derivedX.targetLanguageBase2Method();
33  }
34}
35