org.openorb.ir.util
Class IdlToIR

java.lang.Object
  |
  +--org.openorb.ir.util.IdlToIR

public class IdlToIR
extends java.lang.Object

This class fills the Interface Repository from a IDL reflective compilation graph.

Author:
Olivier Modica

Constructor Summary
IdlToIR(java.util.Enumeration contents, org.omg.CORBA.Repository root, org.omg.CORBA.ORB orb)
          Constructor
 
Method Summary
 org.omg.CORBA.ArrayDef addArray(org.openorb.compiler.idl.reflect.idlArray obj)
          Add an Array definition
 void addAttribute(org.openorb.compiler.idl.reflect.idlAttribute obj, org.omg.CORBA.Container into)
          Add an Attribute definition
 void addConst(org.openorb.compiler.idl.reflect.idlConst obj, org.omg.CORBA.Container into)
          Add a Constant definition
 void addDefinition(java.util.Enumeration contents, org.omg.CORBA.Container into)
          Add a definition into the IR
 void addEnum(org.openorb.compiler.idl.reflect.idlEnum obj, org.omg.CORBA.Container into)
          Add an Enum definition
 void addException(org.openorb.compiler.idl.reflect.idlException obj, org.omg.CORBA.Container into)
          Add an Exception definition
 void addFactory(org.openorb.compiler.idl.reflect.idlFactory obj, org.omg.CORBA.ValueDef into)
          Ajoute la definition d'une factory d'une Value dans l'IR
 org.omg.CORBA.FixedDef addFixed(org.openorb.compiler.idl.reflect.idlFixed obj)
          Add a Fixed definition
 void addIDLData()
          Start filling the IR
 void addInterface(org.openorb.compiler.idl.reflect.idlInterface obj, org.omg.CORBA.Container into)
          Add an Interface definition
 void addModule(org.openorb.compiler.idl.reflect.idlModule obj, org.omg.CORBA.Container into)
          Add a Module definition
 void addNative(org.openorb.compiler.idl.reflect.idlNative obj, org.omg.CORBA.Container into)
          Add a Native definition
 void addOperation(org.openorb.compiler.idl.reflect.idlOperation obj, org.omg.CORBA.Container into)
          Add an Operation definition
 org.omg.CORBA.SequenceDef addSequence(org.openorb.compiler.idl.reflect.idlSequence obj)
          Add a Sequence definition
 void addState(org.openorb.compiler.idl.reflect.idlState obj, org.omg.CORBA.ValueDef into)
          Add a State definition
 org.omg.CORBA.StringDef addString(org.openorb.compiler.idl.reflect.idlString obj)
          Add a String definition
 void addStruct(org.openorb.compiler.idl.reflect.idlStruct obj, org.omg.CORBA.Container into)
          Add a Struct definition
 void addTypeDef(org.openorb.compiler.idl.reflect.idlTypeDef obj, org.omg.CORBA.Container into)
          Add a TypeDef definition
 void addUnion(org.openorb.compiler.idl.reflect.idlUnion obj, org.omg.CORBA.Container into)
          Add an Union definition
 void addValue(org.openorb.compiler.idl.reflect.idlValue obj, org.omg.CORBA.Container into)
          Add a Value definition
 void addValueBox(org.openorb.compiler.idl.reflect.idlValueBox obj, org.omg.CORBA.Container into)
          Ajoute la definition d'un Value box dans l'IR
 org.omg.CORBA.WstringDef addWString(org.openorb.compiler.idl.reflect.idlWString obj)
          Add a WString definition
 org.omg.CORBA.IDLType getIDLType(org.openorb.compiler.idl.reflect.idlObject obj)
          Get an IDL Type
 org.omg.CORBA.TypeCode getTypeCode(org.openorb.compiler.idl.reflect.idlObject obj)
          Return the TypeCode
 org.omg.CORBA.TypeCode getTypeCodeReal(org.openorb.compiler.idl.reflect.idlObject obj)
          Retourne un TypeCode pour un type de donnee
 org.omg.CORBA.Any getUnionMemberLabel(org.openorb.compiler.idl.reflect.idlUnion obj, org.openorb.compiler.idl.reflect.idlUnionMember switchObj)
          Get an UnionMember value
 java.lang.String getVersion(org.openorb.compiler.idl.reflect.idlObject obj)
          Return a version number from an object ID
static void setVerbose(boolean verbose)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IdlToIR

public IdlToIR(java.util.Enumeration contents,
               org.omg.CORBA.Repository root,
               org.omg.CORBA.ORB orb)
Constructor
Method Detail

setVerbose

public static void setVerbose(boolean verbose)

getVersion

public java.lang.String getVersion(org.openorb.compiler.idl.reflect.idlObject obj)
Return a version number from an object ID
Parameters:
obj - the object from which the version number is returned
Returns:
version number

getTypeCode

public org.omg.CORBA.TypeCode getTypeCode(org.openorb.compiler.idl.reflect.idlObject obj)
Return the TypeCode

getTypeCodeReal

public org.omg.CORBA.TypeCode getTypeCodeReal(org.openorb.compiler.idl.reflect.idlObject obj)
Retourne un TypeCode pour un type de donnee
Parameters:
obj - l'objet
Returns:
le TypeCode correspondant

getIDLType

public org.omg.CORBA.IDLType getIDLType(org.openorb.compiler.idl.reflect.idlObject obj)
Get an IDL Type

addArray

public org.omg.CORBA.ArrayDef addArray(org.openorb.compiler.idl.reflect.idlArray obj)
Add an Array definition

addSequence

public org.omg.CORBA.SequenceDef addSequence(org.openorb.compiler.idl.reflect.idlSequence obj)
Add a Sequence definition

addString

public org.omg.CORBA.StringDef addString(org.openorb.compiler.idl.reflect.idlString obj)
Add a String definition

addWString

public org.omg.CORBA.WstringDef addWString(org.openorb.compiler.idl.reflect.idlWString obj)
Add a WString definition

addFixed

public org.omg.CORBA.FixedDef addFixed(org.openorb.compiler.idl.reflect.idlFixed obj)
Add a Fixed definition

addModule

public void addModule(org.openorb.compiler.idl.reflect.idlModule obj,
                      org.omg.CORBA.Container into)
Add a Module definition

addConst

public void addConst(org.openorb.compiler.idl.reflect.idlConst obj,
                     org.omg.CORBA.Container into)
Add a Constant definition

getUnionMemberLabel

public org.omg.CORBA.Any getUnionMemberLabel(org.openorb.compiler.idl.reflect.idlUnion obj,
                                             org.openorb.compiler.idl.reflect.idlUnionMember switchObj)
Get an UnionMember value

addEnum

public void addEnum(org.openorb.compiler.idl.reflect.idlEnum obj,
                    org.omg.CORBA.Container into)
Add an Enum definition

addStruct

public void addStruct(org.openorb.compiler.idl.reflect.idlStruct obj,
                      org.omg.CORBA.Container into)
Add a Struct definition

addUnion

public void addUnion(org.openorb.compiler.idl.reflect.idlUnion obj,
                     org.omg.CORBA.Container into)
Add an Union definition

addTypeDef

public void addTypeDef(org.openorb.compiler.idl.reflect.idlTypeDef obj,
                       org.omg.CORBA.Container into)
Add a TypeDef definition

addNative

public void addNative(org.openorb.compiler.idl.reflect.idlNative obj,
                      org.omg.CORBA.Container into)
Add a Native definition

addValueBox

public void addValueBox(org.openorb.compiler.idl.reflect.idlValueBox obj,
                        org.omg.CORBA.Container into)
Ajoute la definition d'un Value box dans l'IR
Parameters:
obj - l'objet a ajouter
into - conteneur de l'IR

addState

public void addState(org.openorb.compiler.idl.reflect.idlState obj,
                     org.omg.CORBA.ValueDef into)
Add a State definition

addFactory

public void addFactory(org.openorb.compiler.idl.reflect.idlFactory obj,
                       org.omg.CORBA.ValueDef into)
Ajoute la definition d'une factory d'une Value dans l'IR
Parameters:
obj - l'objet a ajouter
into - conteneur de l'IR

addValue

public void addValue(org.openorb.compiler.idl.reflect.idlValue obj,
                     org.omg.CORBA.Container into)
Add a Value definition

addException

public void addException(org.openorb.compiler.idl.reflect.idlException obj,
                         org.omg.CORBA.Container into)
Add an Exception definition

addAttribute

public void addAttribute(org.openorb.compiler.idl.reflect.idlAttribute obj,
                         org.omg.CORBA.Container into)
Add an Attribute definition

addOperation

public void addOperation(org.openorb.compiler.idl.reflect.idlOperation obj,
                         org.omg.CORBA.Container into)
Add an Operation definition

addInterface

public void addInterface(org.openorb.compiler.idl.reflect.idlInterface obj,
                         org.omg.CORBA.Container into)
Add an Interface definition

addDefinition

public void addDefinition(java.util.Enumeration contents,
                          org.omg.CORBA.Container into)
Add a definition into the IR

addIDLData

public void addIDLData()
Start filling the IR