org.openorb.trader.compiler.generator
Class STDLGenerator

java.lang.Object
  extended by org.openorb.compiler.generator.IdlToJava
      extended by org.openorb.trader.compiler.generator.STDLGenerator

public class STDLGenerator
extends org.openorb.compiler.generator.IdlToJava

This class provides a generator to facilitate the Trading Service usage.

Author:
Jerome Daniel

Field Summary
 
Fields inherited from class org.openorb.compiler.generator.IdlToJava
_root, current_pkg, tab, tab1, tab2, tab3, tab4, tab5, tab6
 
Constructor Summary
STDLGenerator(StdlCompilerProperties scp)
           
 
Method Summary
 void translate_object_content(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto, int translateType)
          Translate all service descriptions
 void translate_object(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto, int translateType)
          Apply the mapping
 void translate_service_to_helper(org.openorb.compiler.object.IdlObject obj, java.lang.String packageName)
          This operation is used from the STDL compiler to generate helper classes.
 void translate_service(org.openorb.compiler.object.IdlObject obj, java.lang.String packageName)
          This operation is used from the STDL compiler to generate Java classes.
 
Methods inherited from class org.openorb.compiler.generator.IdlToJava
addDescriptiveHeader, addPackageName, addToPkg, createDirectory, createPrefixDirectories, fileAccess, final_kind, final_type, find_default_value, fullname, get_array_name, getContext, getDirectory, getPrefixDirectories, IdlEspaceCharToJavaEscapeChar, IdlScopeToJavaScope, inversedPrefix, isAbstractBaseInterface, isEmpty, isEmptyInterface, isEmptyValue, isEnumCase, isHexaCar, isInto, isNativeDefinition, isSameScope, isTruncatable, javadoc, newFile, printConcreteTypeCode, printNativeDefinition, recursion, removePackageName, translate_any_insert, translate_attribute_stub_stream, translate_attribute_stub, translate_attribute_tie, translate_attribute, translate_comment_section, translate_constant, translate_enum, translate_exception, translate_interface_operations, translate_interface_skel, translate_interface_stub, translate_interface_tie, translate_interface, translate_marshalling_data, translate_marshalling_member, translate_marshalling, translate_module, translate_native, translate_new_typecode, translate_operation_skel_stream, translate_operation_skel, translate_operation_stub_stream, translate_operation_stub, translate_operation_tie, translate_operation, translate_parameter, translate_read_attribute_skel_stream, translate_read_attribute_skel, translate_state_member, translate_struct, translate_to_java_expression, translate_to_union_case_expression, translate_type, translate_typecode, translate_typedef, translate_union, translate_unmarshalling_data, translate_unmarshalling_member, translate_unmarshalling, translate_user_attribute, translate_user_interface, translate_user_module, translate_user_object, translate_user_operation, translate_value_box, translate_value_type, translate_write_attribute_skel_stream, translate_write_attribute_skel, translateData, translateSkeleton, translateStub, translateTIE, translateUser, write_helper, write_holder, writeDefaultAttribute, writeDefaultMethods, writeDefaultMethodsForInterfaces, writeDefaultMethodsForValueTypes, writeDefaultOperation, writeDefaultValueFactory, writeDefaultValueImpl
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

STDLGenerator

public STDLGenerator(StdlCompilerProperties scp)
Method Detail

translate_object_content

public void translate_object_content(org.openorb.compiler.object.IdlObject obj,
                                     java.io.File writeInto,
                                     int translateType)
Translate all service descriptions

Overrides:
translate_object_content in class org.openorb.compiler.generator.IdlToJava

translate_object

public void translate_object(org.openorb.compiler.object.IdlObject obj,
                             java.io.File writeInto,
                             int translateType)
Apply the mapping

Overrides:
translate_object in class org.openorb.compiler.generator.IdlToJava

translate_service_to_helper

public void translate_service_to_helper(org.openorb.compiler.object.IdlObject obj,
                                        java.lang.String packageName)
This operation is used from the STDL compiler to generate helper classes.


translate_service

public void translate_service(org.openorb.compiler.object.IdlObject obj,
                              java.lang.String packageName)
This operation is used from the STDL compiler to generate Java classes.