org.openorb.pss.compiler.generator
Class psdlToJava

java.lang.Object
  extended by org.openorb.compiler.generator.IdlToJava
      extended by org.openorb.pss.compiler.generator.psdlToJava

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

This class converts PSDL description to Java classes and interfaces

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
psdlToJava(PsdlCompilerProperties psp)
          Constructor
 
Method Summary
 void addDescriptiveHeader(java.io.PrintWriter output, org.openorb.compiler.object.IdlObject obj)
           
 void javadoc(java.io.PrintWriter output, org.openorb.compiler.object.IdlObject obj)
          Add a JavaDoc comment
 void translate_abstract_storagehome(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto)
          Translate an abstract storagehome
 void translate_abstract_storagetype_content(PsdlAbstractStorageType abs, java.io.PrintWriter output)
          Translate an abstract storagetype content
 void translate_abstract_storagetype_local_op(PsdlLocalOp op, java.io.PrintWriter output)
          Translate an abstract storagetype local op
 void translate_abstract_storagetype_state(PsdlState state, java.io.PrintWriter output)
          Translate an abstract storagetype state
 void translate_abstract_storagetype(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto)
          Translate an abstract storagetype
 void translate_catalog(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto)
          Translate a catalog
 void translate_comment_section(java.io.PrintWriter output, java.lang.String description, org.openorb.compiler.object.IdlObject obj)
          Translate a JavaDoc comments section
 void translate_factory_to_equivalent_operations(PsdlFactory factory, org.openorb.compiler.object.IdlObject obj, PsdlAbstractStorageHome abh)
          Translate factory to equivalent operations
 void translate_key_to_equivalent_operations(PsdlKey key, org.openorb.compiler.object.IdlObject obj, PsdlAbstractStorageHome abh)
          Translate key to equivalent operations
 void translate_object_content(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto, int translateType)
          Translate data from PSDL description to Java
 void translate_object(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto, int translateType)
          Traduit les donnees d'un objet conteneur ( Module, Interface, Root )
 void translate_parameter(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter output, int attr)
          Translate a parameter
 void translate_provides_to_equivalent_operations(PsdlProvides provides, org.openorb.compiler.object.IdlObject obj)
          Translate provides to equivalent operations
 void translate_type(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter output)
          Translate a data type
 void translate_typedef(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto)
          Translate a typedef
 void write_helper(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto)
          Add a helper
 void write_holder_for_abstract_storagetype_ref(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter output)
          Write an holder for an abstract storagetype ref
 void write_holder_for_abstract_storagetype(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter output)
          Write an holder for an abstract_storagetype
 void write_holder_for_sequence_ref(org.openorb.compiler.object.IdlObject obj, java.io.PrintWriter output)
          Write an holder for a sequence ref
 void write_holder(org.openorb.compiler.object.IdlObject obj, java.io.File writeInto)
          Add a holder
 
Methods inherited from class org.openorb.compiler.generator.IdlToJava
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, newFile, printConcreteTypeCode, printNativeDefinition, recursion, removePackageName, translate_any_insert, translate_attribute_stub_stream, translate_attribute_stub, translate_attribute_tie, translate_attribute, 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_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_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, 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

psdlToJava

public psdlToJava(PsdlCompilerProperties psp)
Constructor

Method Detail

translate_comment_section

public void translate_comment_section(java.io.PrintWriter output,
                                      java.lang.String description,
                                      org.openorb.compiler.object.IdlObject obj)
Translate a JavaDoc comments section

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

javadoc

public void javadoc(java.io.PrintWriter output,
                    org.openorb.compiler.object.IdlObject obj)
Add a JavaDoc comment

Overrides:
javadoc in class org.openorb.compiler.generator.IdlToJava
Parameters:
output - the target file
obj - the object the header has to be added

translate_abstract_storagetype_state

public void translate_abstract_storagetype_state(PsdlState state,
                                                 java.io.PrintWriter output)
Translate an abstract storagetype state


translate_abstract_storagetype_local_op

public void translate_abstract_storagetype_local_op(PsdlLocalOp op,
                                                    java.io.PrintWriter output)
Translate an abstract storagetype local op


translate_abstract_storagetype_content

public void translate_abstract_storagetype_content(PsdlAbstractStorageType abs,
                                                   java.io.PrintWriter output)
Translate an abstract storagetype content


translate_abstract_storagetype

public void translate_abstract_storagetype(org.openorb.compiler.object.IdlObject obj,
                                           java.io.File writeInto)
Translate an abstract storagetype


translate_key_to_equivalent_operations

public void translate_key_to_equivalent_operations(PsdlKey key,
                                                   org.openorb.compiler.object.IdlObject obj,
                                                   PsdlAbstractStorageHome abh)
Translate key to equivalent operations


translate_factory_to_equivalent_operations

public void translate_factory_to_equivalent_operations(PsdlFactory factory,
                                                       org.openorb.compiler.object.IdlObject obj,
                                                       PsdlAbstractStorageHome abh)
Translate factory to equivalent operations


translate_provides_to_equivalent_operations

public void translate_provides_to_equivalent_operations(PsdlProvides provides,
                                                        org.openorb.compiler.object.IdlObject obj)
Translate provides to equivalent operations


translate_abstract_storagehome

public void translate_abstract_storagehome(org.openorb.compiler.object.IdlObject obj,
                                           java.io.File writeInto)
Translate an abstract storagehome


translate_catalog

public void translate_catalog(org.openorb.compiler.object.IdlObject obj,
                              java.io.File writeInto)
Translate a catalog


addDescriptiveHeader

public void addDescriptiveHeader(java.io.PrintWriter output,
                                 org.openorb.compiler.object.IdlObject obj)
Overrides:
addDescriptiveHeader 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_typedef

public void translate_typedef(org.openorb.compiler.object.IdlObject obj,
                              java.io.File writeInto)
Translate a typedef

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

translate_type

public void translate_type(org.openorb.compiler.object.IdlObject obj,
                           java.io.PrintWriter output)
Translate a data type

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

write_holder_for_abstract_storagetype

public void write_holder_for_abstract_storagetype(org.openorb.compiler.object.IdlObject obj,
                                                  java.io.PrintWriter output)
Write an holder for an abstract_storagetype


write_holder_for_abstract_storagetype_ref

public void write_holder_for_abstract_storagetype_ref(org.openorb.compiler.object.IdlObject obj,
                                                      java.io.PrintWriter output)
Write an holder for an abstract storagetype ref


write_holder_for_sequence_ref

public void write_holder_for_sequence_ref(org.openorb.compiler.object.IdlObject obj,
                                          java.io.PrintWriter output)
Write an holder for a sequence ref


write_holder

public void write_holder(org.openorb.compiler.object.IdlObject obj,
                         java.io.File writeInto)
Add a holder

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

write_helper

public void write_helper(org.openorb.compiler.object.IdlObject obj,
                         java.io.File writeInto)
Add a helper

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

translate_object_content

public void translate_object_content(org.openorb.compiler.object.IdlObject obj,
                                     java.io.File writeInto,
                                     int translateType)
Translate data from PSDL description to Java

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)
Traduit les donnees d'un objet conteneur ( Module, Interface, Root )

Overrides:
translate_object in class org.openorb.compiler.generator.IdlToJava
Parameters:
obj - l'objet a traduire
writeInto - l'acces en ecriture
translateType - le type de traduction ( 0=data, 1=stub, 2=skeleton )