Class IDLNameTranslatorImpl
java.lang.Object
com.sun.corba.se.impl.presentation.rmi.IDLNameTranslatorImpl
- All Implemented Interfaces:
IDLNameTranslator
Bidirectional translator between RMI-IIOP interface methods and
and IDL Names.
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringcharToUnicodeRepresentation(char c) Returns Unicode mangling as defined in Section 1.3.2.4 of Java2IDL spec.static IDLNameTranslatorReturn an IDLNameTranslator for the given interface.static IDLNameTranslatorReturn an IDLNameTranslator for the given interfacex.static StringgetExceptionId(Class cls) getIDLName(Method method) Get the mangled name that corresponds to the given method on this IDLNameTranslator's interface.Class[]Get the interfaces that this IDLNameTranslator describes.Get the method from this IDLNameTranslator's interfaces that corresponds to the mangled name idlName.Method[]Get all methods for this remote interface.toString()
-
Method Details
-
get
Return an IDLNameTranslator for the given interface.- Throws:
IllegalStateException- if given class is not a valid RMI/IIOP Remote Interface
-
get
Return an IDLNameTranslator for the given interfacex.- Throws:
IllegalStateException- if given classes are not valid RMI/IIOP Remote Interfaces
-
getExceptionId
-
getInterfaces
Description copied from interface:IDLNameTranslatorGet the interfaces that this IDLNameTranslator describes.- Specified by:
getInterfacesin interfaceIDLNameTranslator
-
getMethods
Description copied from interface:IDLNameTranslatorGet all methods for this remote interface. The methods are returned in a canonical order, that is, they are always in the same order for a particular interface.- Specified by:
getMethodsin interfaceIDLNameTranslator
-
getMethod
Description copied from interface:IDLNameTranslatorGet the method from this IDLNameTranslator's interfaces that corresponds to the mangled name idlName. Returns null if there is no matching method.- Specified by:
getMethodin interfaceIDLNameTranslator
-
getIDLName
Description copied from interface:IDLNameTranslatorGet the mangled name that corresponds to the given method on this IDLNameTranslator's interface. Returns null if there is no matching name.- Specified by:
getIDLNamein interfaceIDLNameTranslator
-
charToUnicodeRepresentation
Returns Unicode mangling as defined in Section 1.3.2.4 of Java2IDL spec. "For Java identifiers that contain illegal OMG IDL identifier characters such as '$' or Unicode characters outside of ISO Latin 1, any such illegal characters are replaced by "U" followed by the 4 hexadecimal characters(in upper case) representing the Unicode value. So, the Java name a$b is mapped to aU0024b and xμy is mapped to xU03BCy." -
toString
-