PageRenderTime 40ms CodeModel.GetById 1ms RepoModel.GetById 0ms app.codeStats 0ms

/trunk/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. import rename3.*;
  2. public class rename3_runme {
  3. static {
  4. try {
  5. System.loadLibrary("rename3");
  6. } catch (UnsatisfiedLinkError e) {
  7. 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);
  8. System.exit(1);
  9. }
  10. }
  11. // The code in main is the same for rename1_runme, rename2_runme, rename3_runme and renam4_runme
  12. public static void main(String argv[]) {
  13. {
  14. XYZInt xyz = new XYZInt();
  15. NotXYZInt notxyz = new NotXYZInt();
  16. xyz.opIntPtrA();
  17. xyz.opIntPtrB();
  18. xyz.opAnother2();
  19. xyz.opT2();
  20. xyz.tMethod2(0);
  21. xyz.tMethodNotXYZ2(notxyz);
  22. xyz.opNotXYZ2();
  23. xyz.opXYZ2();
  24. }
  25. {
  26. XYZDouble xyz = new XYZDouble();
  27. NotXYZDouble notxyz = new NotXYZDouble();
  28. xyz.opIntPtrA();
  29. xyz.opIntPtrB();
  30. xyz.opAnother1();
  31. xyz.opT1();
  32. xyz.tMethod1(0);
  33. xyz.tMethodNotXYZ1(notxyz);
  34. xyz.opNotXYZ1();
  35. xyz.opXYZ1();
  36. }
  37. {
  38. XYZKlass xyz = new XYZKlass();
  39. NotXYZKlass notxyz = new NotXYZKlass();
  40. xyz.opIntPtrA();
  41. xyz.opIntPtrB();
  42. xyz.opAnother3();
  43. xyz.opT3();
  44. xyz.tMethod3(new Klass());
  45. xyz.tMethodNotXYZ3(notxyz);
  46. xyz.opNotXYZ3();
  47. xyz.opXYZ3();
  48. }
  49. {
  50. XYZEnu xyz = new XYZEnu();
  51. NotXYZEnu notxyz = new NotXYZEnu();
  52. xyz.opIntPtrA();
  53. xyz.opIntPtrB();
  54. xyz.opAnother4();
  55. xyz.opT4();
  56. xyz.tMethod4(Enu.En1);
  57. xyz.tMethodNotXYZ4(notxyz);
  58. xyz.opNotXYZ4();
  59. xyz.opXYZ4();
  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. }