private TypeCode getConstantTypeCode ( Class cls ) throws IRConstructionException { if ( cls == null ) throw IIOPLogger . ROOT_LOGGER . invalidNullClass ( ) ; TypeCode ret = constantTypeCodeMap . get ( cls ) ; if ( ret == null ) throw IIOPLogger . ROOT_LOGGER . badClassForConstant ( cls . getName ( ) ) ; return ret ; }
Returns the TypeCode suitable for an IDL constant .