Calling from generated Java code to Java code

Your generated Java program can call generated or non-generated Java code.

To call one generated Java program from another, invoke the target Java™ class by using a call statement. However, be aware of package dependencies. One of the following statements must be true:
If you want the generated Java program to invoke non-generated Java code, create an ExternalType part that has the JavaObject stereotype. The part contains function prototypes for the Java methods of interest. In this case, invoke a Java method in one of two ways:

When you invoke a non-generated class, it must provide a method to instantiate itself. You cannot instantiate a Java class from within EGL.