Public Member Functions | |
void | translate_object_content (IdlObject obj, File writeInto, int translateType) |
void | translate_operation (IdlObject obj, PrintWriter output) |
void | write_helper (IdlObject obj, File writeInto) |
void | write_holder (IdlObject obj, File writeInto) |
PrintWriter | fileAccess (File writeInto) |
File | createDirectory (String name, File writeInto) |
File | createPrefixDirectories (String prefix, File writeInto) |
File | getDirectory (String name, File writeInto) |
Package Functions | |
JavaPackageScout () | |
void | collectInterfacePackages (IdlObject root, String rootPackage) |
String | getPackage (IdlInterface idlInterface) |
Private Attributes | |
Map | m_ifPkgMap |
To save some programming effort, the packages are computed during a full run of org.openorb.compiler.generator.IdlToJava. Therefore, a full IDL-to-Java translation happens in memory, with the only used result being the Java packages. The rest gets lost in memory. This implementation is certainly not the best choice for performance, but as long as that's good enough, the gain in robustness should justify it.
|
|
|
|
|
|
|
|
|
Prevents file output (all will be lost in memory...).
|
|
|
|
|
|
|
|
Cutting off the tree traversal here is not only a performance optimization, but also a workaround for a bug (ArrayIndexOutOfBoundsEx) that otherwise would occur when translating sequence typedefs. TODO: better fix that bug
|
|
|
|
|
|
|