org.openorb.rmi.compiler.generator
Class javatoidl

java.lang.Object
  |
  +--org.openorb.compiler.generator.IdlToJava
        |
        +--org.openorb.rmi.compiler.generator.javatoidl

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

This class takes an IDL graph and generates its IDL description.

Author:
Jerome Daniel

Fields inherited from class org.openorb.compiler.generator.IdlToJava
_root, current_pkg, tab, tab1, tab2, tab3, tab4, tab5, tab6
 
Constructor Summary
javatoidl()
          Constructor
 
Method Summary
 java.lang.String adaptExpression(java.lang.String expr)
          This method adapts an expression to be valid in an IDL description
 java.lang.String adaptToRMI(org.openorb.compiler.object.IdlObject obj)
          Adapt an identifier to RMI naming
 java.lang.String correctIdentifier(java.lang.String expr)
          This method corrects an identifier to be a valid IDL identifier
 java.io.PrintWriter create_idl_file(java.lang.String file_name)
          This method creates an IDL file.
 java.lang.String fullname_idl(org.openorb.compiler.object.IdlObject obj)
          This method returns a full name for a IDL item.
 java.lang.String fullnameOpaque(org.openorb.compiler.object.IdlObject obj)
          This "fullname" with Opaque value as last part
 void indent(java.io.PrintWriter writeInto)
          This method indents a file
 void indent(java.lang.String msg, java.io.PrintWriter writeInto)
          This method indents a file
 java.lang.String pragmaName(java.lang.String name)
          This method returns a pragma name
 void translate_marshalling_data(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter output, java.lang.String outname, java.lang.String tname)
          Translate an unmarshalling for a RMI data
 void translate_operation_rmi_stub(org.openorb.compiler.object.IdlObject obj, org.openorb.compiler.object.IdlObject base, java.io.PrintWriter output)
          Translate an operation for a RMI stub
 void translate_operation_rmi_tie(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter output)
          Translate an operation for RMI Tie
 void translate_parameter(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter output, int attr)
          Translate a parameter
 void translate_read_attribute_rmi_stub(org.openorb.compiler.object.IdlObject obj, org.openorb.compiler.object.IdlObject base, java.io.PrintWriter output)
          Translate an read attribute for a RMI stub
 void translate_read_attribute_rmi_tie(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter output)
          Translate a read attribute for RMI Tie
 void translate_rmi_stub_interface(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto)
          Translate an interface for the RMI Stub
 void translate_rmi_stub_module(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto)
          Translate a module for the RMI Stub
 void translate_rmi_stub(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto)
          Translate an object for the RMI stub
 void translate_rmi_tie_interface(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto)
          Translate an interface for the RMI Tie
 void translate_rmi_tie_module(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto)
          Translate a module for the RMI Tie
 void translate_rmi_tie(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto)
          Translate an object for the RMI Tie
 void translate_type(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter output)
          Translate a type
 void translate_unmarshalling_data(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter output, java.lang.String inname)
          Translate an unmarshalling for a RMI data
 void translate_write_attribute_rmi_stub(org.openorb.compiler.object.IdlObject obj, org.openorb.compiler.object.IdlObject base, java.io.PrintWriter output)
          Translate a write attribute for a RMI stub
 void translate_write_attribute_rmi_tie(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter output)
          Translate a write attribute for RMI Tie
 void translateAttribute(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates an Attribute
 void translateConstant(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates a Constant
 void translateDescription(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates IDL description to an IDL file.
 void translateEnum(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates an Enum
 void translateException(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates an Exception
 void translateInit(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates an init member
 void translateInterface(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates an Interface
 void translateInternalDescription(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates an internal IDL description to an IDL file.
 void translateModule(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates a Module
 void translateNative(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates a Native
 void translateOperation(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates an Operation
 void translateParameter(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates a IDL parameter
 void translateRMIStub(org.openorb.compiler.object.IdlObject root)
          This method creates an Stub class for a RMI object.
 void translateRMITie(org.openorb.compiler.object.IdlObject root)
          This method creates an Tie class for a RMI object.
 void translateStateMember(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates a state member
 void translateStruct(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates a Struct
 void translateToIDL(org.openorb.compiler.object.IdlObject root, java.lang.String file_name)
          This method translates IDL descriptions to an IDL file and creates the IDL file.
 void translateType(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto, java.lang.String name, boolean write)
          This method translates a IDL type
 void translateTypedef(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates a TypeDef
 void translateUnion(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates an Union
 void translateValueBox(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates a ValueBox
 void translateValueType(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter writeInto)
          This method translates a ValueType
 
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_member, translate_marshalling, translate_module, translate_native, translate_new_typecode, translate_object_content, translate_object, translate_operation_skel_stream, translate_operation_skel, translate_operation_stub_stream, translate_operation_stub, translate_operation_tie, translate_operation, translate_read_attribute_skel_stream, translate_read_attribute_skel, translate_state_member, translate_struct, translate_to_java_expression, translate_to_union_case_expression, translate_typecode, translate_typedef, translate_union, 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

javatoidl

public javatoidl()
Constructor
Method Detail

indent

public void indent(java.io.PrintWriter writeInto)
This method indents a file

indent

public void indent(java.lang.String msg,
                   java.io.PrintWriter writeInto)
This method indents a file

create_idl_file

public java.io.PrintWriter create_idl_file(java.lang.String file_name)
This method creates an IDL file.

fullname_idl

public java.lang.String fullname_idl(org.openorb.compiler.object.IdlObject obj)
This method returns a full name for a IDL item.

translateType

public void translateType(org.openorb.compiler.object.IdlObject obj,
                          java.io.PrintWriter writeInto,
                          java.lang.String name,
                          boolean write)
This method translates a IDL type

translateParameter

public void translateParameter(org.openorb.compiler.object.IdlObject obj,
                               java.io.PrintWriter writeInto)
This method translates a IDL parameter

translateModule

public void translateModule(org.openorb.compiler.object.IdlObject obj,
                            java.io.PrintWriter writeInto)
This method translates a Module

translateEnum

public void translateEnum(org.openorb.compiler.object.IdlObject obj,
                          java.io.PrintWriter writeInto)
This method translates an Enum

translateStruct

public void translateStruct(org.openorb.compiler.object.IdlObject obj,
                            java.io.PrintWriter writeInto)
This method translates a Struct

translateUnion

public void translateUnion(org.openorb.compiler.object.IdlObject obj,
                           java.io.PrintWriter writeInto)
This method translates an Union

translateException

public void translateException(org.openorb.compiler.object.IdlObject obj,
                               java.io.PrintWriter writeInto)
This method translates an Exception

translateTypedef

public void translateTypedef(org.openorb.compiler.object.IdlObject obj,
                             java.io.PrintWriter writeInto)
This method translates a TypeDef

translateValueBox

public void translateValueBox(org.openorb.compiler.object.IdlObject obj,
                              java.io.PrintWriter writeInto)
This method translates a ValueBox

translateInit

public void translateInit(org.openorb.compiler.object.IdlObject obj,
                          java.io.PrintWriter writeInto)
This method translates an init member

translateStateMember

public void translateStateMember(org.openorb.compiler.object.IdlObject obj,
                                 java.io.PrintWriter writeInto)
This method translates a state member

translateAttribute

public void translateAttribute(org.openorb.compiler.object.IdlObject obj,
                               java.io.PrintWriter writeInto)
This method translates an Attribute

translateOperation

public void translateOperation(org.openorb.compiler.object.IdlObject obj,
                               java.io.PrintWriter writeInto)
This method translates an Operation

translateValueType

public void translateValueType(org.openorb.compiler.object.IdlObject obj,
                               java.io.PrintWriter writeInto)
This method translates a ValueType

translateInterface

public void translateInterface(org.openorb.compiler.object.IdlObject obj,
                               java.io.PrintWriter writeInto)
This method translates an Interface

correctIdentifier

public java.lang.String correctIdentifier(java.lang.String expr)
This method corrects an identifier to be a valid IDL identifier

adaptExpression

public java.lang.String adaptExpression(java.lang.String expr)
This method adapts an expression to be valid in an IDL description

translateConstant

public void translateConstant(org.openorb.compiler.object.IdlObject obj,
                              java.io.PrintWriter writeInto)
This method translates a Constant

translateNative

public void translateNative(org.openorb.compiler.object.IdlObject obj,
                            java.io.PrintWriter writeInto)
This method translates a Native

translateInternalDescription

public void translateInternalDescription(org.openorb.compiler.object.IdlObject obj,
                                         java.io.PrintWriter writeInto)
This method translates an internal IDL description to an IDL file.

pragmaName

public java.lang.String pragmaName(java.lang.String name)
This method returns a pragma name

translateDescription

public void translateDescription(org.openorb.compiler.object.IdlObject obj,
                                 java.io.PrintWriter writeInto)
This method translates IDL description to an IDL file.

translateToIDL

public void translateToIDL(org.openorb.compiler.object.IdlObject root,
                           java.lang.String file_name)
This method translates IDL descriptions to an IDL file and creates the IDL file.

adaptToRMI

public java.lang.String adaptToRMI(org.openorb.compiler.object.IdlObject obj)
Adapt an identifier to RMI naming

translate_type

public void translate_type(org.openorb.compiler.object.IdlObject obj,
                           java.io.PrintWriter output)
Translate a type
Overrides:
translate_type in class org.openorb.compiler.generator.IdlToJava

translate_parameter

public void translate_parameter(org.openorb.compiler.object.IdlObject obj,
                                java.io.PrintWriter output,
                                int attr)
Translate a parameter
Overrides:
translate_parameter in class org.openorb.compiler.generator.IdlToJava

translate_marshalling_data

public void translate_marshalling_data(org.openorb.compiler.object.IdlObject obj,
                                       java.io.PrintWriter output,
                                       java.lang.String outname,
                                       java.lang.String tname)
Translate an unmarshalling for a RMI data
Overrides:
translate_marshalling_data in class org.openorb.compiler.generator.IdlToJava

translate_unmarshalling_data

public void translate_unmarshalling_data(org.openorb.compiler.object.IdlObject obj,
                                         java.io.PrintWriter output,
                                         java.lang.String inname)
Translate an unmarshalling for a RMI data
Overrides:
translate_unmarshalling_data in class org.openorb.compiler.generator.IdlToJava

translate_read_attribute_rmi_tie

public void translate_read_attribute_rmi_tie(org.openorb.compiler.object.IdlObject obj,
                                             java.io.PrintWriter output)
Translate a read attribute for RMI Tie

translate_write_attribute_rmi_tie

public void translate_write_attribute_rmi_tie(org.openorb.compiler.object.IdlObject obj,
                                              java.io.PrintWriter output)
Translate a write attribute for RMI Tie

translate_operation_rmi_tie

public void translate_operation_rmi_tie(org.openorb.compiler.object.IdlObject obj,
                                        java.io.PrintWriter output)
Translate an operation for RMI Tie

translate_rmi_tie_interface

public void translate_rmi_tie_interface(org.openorb.compiler.object.IdlObject obj,
                                        java.io.File writeInto)
Translate an interface for the RMI Tie

translate_rmi_tie_module

public void translate_rmi_tie_module(org.openorb.compiler.object.IdlObject obj,
                                     java.io.File writeInto)
Translate a module for the RMI Tie

translate_rmi_tie

public void translate_rmi_tie(org.openorb.compiler.object.IdlObject obj,
                              java.io.File writeInto)
Translate an object for the RMI Tie

translateRMITie

public void translateRMITie(org.openorb.compiler.object.IdlObject root)
This method creates an Tie class for a RMI object.

fullnameOpaque

public java.lang.String fullnameOpaque(org.openorb.compiler.object.IdlObject obj)
This "fullname" with Opaque value as last part

translate_operation_rmi_stub

public void translate_operation_rmi_stub(org.openorb.compiler.object.IdlObject obj,
                                         org.openorb.compiler.object.IdlObject base,
                                         java.io.PrintWriter output)
Translate an operation for a RMI stub

translate_read_attribute_rmi_stub

public void translate_read_attribute_rmi_stub(org.openorb.compiler.object.IdlObject obj,
                                              org.openorb.compiler.object.IdlObject base,
                                              java.io.PrintWriter output)
Translate an read attribute for a RMI stub

translate_write_attribute_rmi_stub

public void translate_write_attribute_rmi_stub(org.openorb.compiler.object.IdlObject obj,
                                               org.openorb.compiler.object.IdlObject base,
                                               java.io.PrintWriter output)
Translate a write attribute for a RMI stub

translate_rmi_stub_interface

public void translate_rmi_stub_interface(org.openorb.compiler.object.IdlObject obj,
                                         java.io.File writeInto)
Translate an interface for the RMI Stub

translate_rmi_stub_module

public void translate_rmi_stub_module(org.openorb.compiler.object.IdlObject obj,
                                      java.io.File writeInto)
Translate a module for the RMI Stub

translate_rmi_stub

public void translate_rmi_stub(org.openorb.compiler.object.IdlObject obj,
                               java.io.File writeInto)
Translate an object for the RMI stub

translateRMIStub

public void translateRMIStub(org.openorb.compiler.object.IdlObject root)
This method creates an Stub class for a RMI object.