Java Code Examples for com.sun.corba.se.impl.util.Utility#tieNameForCompiler()
The following examples show how to use
com.sun.corba.se.impl.util.Utility#tieNameForCompiler() .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: StubGenerator.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
void setStandardClassesInUse(CompoundType type, boolean stub) throws IOException { // Reset our state... currentPackage = type.getPackageName(); imports.clear(); classesInUse.clear(); namesInUse.clear(); importCount = 0; castArray = false; // Add the top-level type... addClassInUse(type); // Set current class name... if (stub) { currentClass = Utility.stubNameForCompiler(type.getName()); } else { currentClass = Utility.tieNameForCompiler(type.getName()); } // Add current class... if (currentPackage == null) { addClassInUse(currentClass,currentClass,currentPackage); } else { addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage); } // Add standard classes... addClassInUse("javax.rmi.CORBA.Util"); addClassInUse(idRemote.toString()); addClassInUse(idRemoteException.toString()); addClassInUse(idOutputStream.toString()); addClassInUse(idInputStream.toString()); addClassInUse(idSystemException.toString()); addClassInUse(idJavaIoSerializable.toString()); addClassInUse(idCorbaORB.toString()); addClassInUse(idReplyHandler.toString()); // Add stub/tie specific imports... if (stub) { addClassInUse(stubBaseClass); addClassInUse("java.rmi.UnexpectedException"); addClassInUse(idRemarshalException.toString()); addClassInUse(idApplicationException.toString()); if (localStubs) { addClassInUse("org.omg.CORBA.portable.ServantObject"); } } else { addClassInUse(type); addClassInUse(tieBaseClass); addClassInUse(idTieInterface.toString()); addClassInUse(idBadMethodException.toString()); addClassInUse(idPortableUnknownException.toString()); addClassInUse(idJavaLangThrowable.toString()); } }
Example 2
Source File: StubGenerator.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
void setStandardClassesInUse(CompoundType type, boolean stub) throws IOException { // Reset our state... currentPackage = type.getPackageName(); imports.clear(); classesInUse.clear(); namesInUse.clear(); importCount = 0; castArray = false; // Add the top-level type... addClassInUse(type); // Set current class name... if (stub) { currentClass = Utility.stubNameForCompiler(type.getName()); } else { currentClass = Utility.tieNameForCompiler(type.getName()); } // Add current class... if (currentPackage == null) { addClassInUse(currentClass,currentClass,currentPackage); } else { addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage); } // Add standard classes... addClassInUse("javax.rmi.CORBA.Util"); addClassInUse(idRemote.toString()); addClassInUse(idRemoteException.toString()); addClassInUse(idOutputStream.toString()); addClassInUse(idInputStream.toString()); addClassInUse(idSystemException.toString()); addClassInUse(idJavaIoSerializable.toString()); addClassInUse(idCorbaORB.toString()); addClassInUse(idReplyHandler.toString()); // Add stub/tie specific imports... if (stub) { addClassInUse(stubBaseClass); addClassInUse("java.rmi.UnexpectedException"); addClassInUse(idRemarshalException.toString()); addClassInUse(idApplicationException.toString()); if (localStubs) { addClassInUse("org.omg.CORBA.portable.ServantObject"); } } else { addClassInUse(type); addClassInUse(tieBaseClass); addClassInUse(idTieInterface.toString()); addClassInUse(idBadMethodException.toString()); addClassInUse(idPortableUnknownException.toString()); addClassInUse(idJavaLangThrowable.toString()); } }
Example 3
Source File: StubGenerator.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
void setStandardClassesInUse(CompoundType type, boolean stub) throws IOException { // Reset our state... currentPackage = type.getPackageName(); imports.clear(); classesInUse.clear(); namesInUse.clear(); importCount = 0; castArray = false; // Add the top-level type... addClassInUse(type); // Set current class name... if (stub) { currentClass = Utility.stubNameForCompiler(type.getName()); } else { currentClass = Utility.tieNameForCompiler(type.getName()); } // Add current class... if (currentPackage == null) { addClassInUse(currentClass,currentClass,currentPackage); } else { addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage); } // Add standard classes... addClassInUse("javax.rmi.CORBA.Util"); addClassInUse(idRemote.toString()); addClassInUse(idRemoteException.toString()); addClassInUse(idOutputStream.toString()); addClassInUse(idInputStream.toString()); addClassInUse(idSystemException.toString()); addClassInUse(idJavaIoSerializable.toString()); addClassInUse(idCorbaORB.toString()); addClassInUse(idReplyHandler.toString()); // Add stub/tie specific imports... if (stub) { addClassInUse(stubBaseClass); addClassInUse("java.rmi.UnexpectedException"); addClassInUse(idRemarshalException.toString()); addClassInUse(idApplicationException.toString()); if (localStubs) { addClassInUse("org.omg.CORBA.portable.ServantObject"); } } else { addClassInUse(type); addClassInUse(tieBaseClass); addClassInUse(idTieInterface.toString()); addClassInUse(idBadMethodException.toString()); addClassInUse(idPortableUnknownException.toString()); addClassInUse(idJavaLangThrowable.toString()); } }
Example 4
Source File: StubGenerator.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
void setStandardClassesInUse(CompoundType type, boolean stub) throws IOException { // Reset our state... currentPackage = type.getPackageName(); imports.clear(); classesInUse.clear(); namesInUse.clear(); importCount = 0; castArray = false; // Add the top-level type... addClassInUse(type); // Set current class name... if (stub) { currentClass = Utility.stubNameForCompiler(type.getName()); } else { currentClass = Utility.tieNameForCompiler(type.getName()); } // Add current class... if (currentPackage == null) { addClassInUse(currentClass,currentClass,currentPackage); } else { addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage); } // Add standard classes... addClassInUse("javax.rmi.CORBA.Util"); addClassInUse(idRemote.toString()); addClassInUse(idRemoteException.toString()); addClassInUse(idOutputStream.toString()); addClassInUse(idInputStream.toString()); addClassInUse(idSystemException.toString()); addClassInUse(idJavaIoSerializable.toString()); addClassInUse(idCorbaORB.toString()); addClassInUse(idReplyHandler.toString()); // Add stub/tie specific imports... if (stub) { addClassInUse(stubBaseClass); addClassInUse("java.rmi.UnexpectedException"); addClassInUse(idRemarshalException.toString()); addClassInUse(idApplicationException.toString()); if (localStubs) { addClassInUse("org.omg.CORBA.portable.ServantObject"); } } else { addClassInUse(type); addClassInUse(tieBaseClass); addClassInUse(idTieInterface.toString()); addClassInUse(idBadMethodException.toString()); addClassInUse(idPortableUnknownException.toString()); addClassInUse(idJavaLangThrowable.toString()); } }
Example 5
Source File: StubGenerator.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
void setStandardClassesInUse(CompoundType type, boolean stub) throws IOException { // Reset our state... currentPackage = type.getPackageName(); imports.clear(); classesInUse.clear(); namesInUse.clear(); importCount = 0; castArray = false; // Add the top-level type... addClassInUse(type); // Set current class name... if (stub) { currentClass = Utility.stubNameForCompiler(type.getName()); } else { currentClass = Utility.tieNameForCompiler(type.getName()); } // Add current class... if (currentPackage == null) { addClassInUse(currentClass,currentClass,currentPackage); } else { addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage); } // Add standard classes... addClassInUse("javax.rmi.CORBA.Util"); addClassInUse(idRemote.toString()); addClassInUse(idRemoteException.toString()); addClassInUse(idOutputStream.toString()); addClassInUse(idInputStream.toString()); addClassInUse(idSystemException.toString()); addClassInUse(idJavaIoSerializable.toString()); addClassInUse(idCorbaORB.toString()); addClassInUse(idReplyHandler.toString()); // Add stub/tie specific imports... if (stub) { addClassInUse(stubBaseClass); addClassInUse("java.rmi.UnexpectedException"); addClassInUse(idRemarshalException.toString()); addClassInUse(idApplicationException.toString()); if (localStubs) { addClassInUse("org.omg.CORBA.portable.ServantObject"); } } else { addClassInUse(type); addClassInUse(tieBaseClass); addClassInUse(idTieInterface.toString()); addClassInUse(idBadMethodException.toString()); addClassInUse(idPortableUnknownException.toString()); addClassInUse(idJavaLangThrowable.toString()); } }
Example 6
Source File: StubGenerator.java From hottub with GNU General Public License v2.0 | 4 votes |
void setStandardClassesInUse(CompoundType type, boolean stub) throws IOException { // Reset our state... currentPackage = type.getPackageName(); imports.clear(); classesInUse.clear(); namesInUse.clear(); importCount = 0; castArray = false; // Add the top-level type... addClassInUse(type); // Set current class name... if (stub) { currentClass = Utility.stubNameForCompiler(type.getName()); } else { currentClass = Utility.tieNameForCompiler(type.getName()); } // Add current class... if (currentPackage == null) { addClassInUse(currentClass,currentClass,currentPackage); } else { addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage); } // Add standard classes... addClassInUse("javax.rmi.CORBA.Util"); addClassInUse(idRemote.toString()); addClassInUse(idRemoteException.toString()); addClassInUse(idOutputStream.toString()); addClassInUse(idInputStream.toString()); addClassInUse(idSystemException.toString()); addClassInUse(idJavaIoSerializable.toString()); addClassInUse(idCorbaORB.toString()); addClassInUse(idReplyHandler.toString()); // Add stub/tie specific imports... if (stub) { addClassInUse(stubBaseClass); addClassInUse("java.rmi.UnexpectedException"); addClassInUse(idRemarshalException.toString()); addClassInUse(idApplicationException.toString()); if (localStubs) { addClassInUse("org.omg.CORBA.portable.ServantObject"); } } else { addClassInUse(type); addClassInUse(tieBaseClass); addClassInUse(idTieInterface.toString()); addClassInUse(idBadMethodException.toString()); addClassInUse(idPortableUnknownException.toString()); addClassInUse(idJavaLangThrowable.toString()); } }
Example 7
Source File: StubGenerator.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
void setStandardClassesInUse(CompoundType type, boolean stub) throws IOException { // Reset our state... currentPackage = type.getPackageName(); imports.clear(); classesInUse.clear(); namesInUse.clear(); importCount = 0; castArray = false; // Add the top-level type... addClassInUse(type); // Set current class name... if (stub) { currentClass = Utility.stubNameForCompiler(type.getName()); } else { currentClass = Utility.tieNameForCompiler(type.getName()); } // Add current class... if (currentPackage == null) { addClassInUse(currentClass,currentClass,currentPackage); } else { addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage); } // Add standard classes... addClassInUse("javax.rmi.CORBA.Util"); addClassInUse(idRemote.toString()); addClassInUse(idRemoteException.toString()); addClassInUse(idOutputStream.toString()); addClassInUse(idInputStream.toString()); addClassInUse(idSystemException.toString()); addClassInUse(idJavaIoSerializable.toString()); addClassInUse(idCorbaORB.toString()); addClassInUse(idReplyHandler.toString()); // Add stub/tie specific imports... if (stub) { addClassInUse(stubBaseClass); addClassInUse("java.rmi.UnexpectedException"); addClassInUse(idRemarshalException.toString()); addClassInUse(idApplicationException.toString()); if (localStubs) { addClassInUse("org.omg.CORBA.portable.ServantObject"); } } else { addClassInUse(type); addClassInUse(tieBaseClass); addClassInUse(idTieInterface.toString()); addClassInUse(idBadMethodException.toString()); addClassInUse(idPortableUnknownException.toString()); addClassInUse(idJavaLangThrowable.toString()); } }
Example 8
Source File: StubGenerator.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
void setStandardClassesInUse(CompoundType type, boolean stub) throws IOException { // Reset our state... currentPackage = type.getPackageName(); imports.clear(); classesInUse.clear(); namesInUse.clear(); importCount = 0; castArray = false; // Add the top-level type... addClassInUse(type); // Set current class name... if (stub) { currentClass = Utility.stubNameForCompiler(type.getName()); } else { currentClass = Utility.tieNameForCompiler(type.getName()); } // Add current class... if (currentPackage == null) { addClassInUse(currentClass,currentClass,currentPackage); } else { addClassInUse(currentClass,(currentPackage+"."+currentClass),currentPackage); } // Add standard classes... addClassInUse("javax.rmi.CORBA.Util"); addClassInUse(idRemote.toString()); addClassInUse(idRemoteException.toString()); addClassInUse(idOutputStream.toString()); addClassInUse(idInputStream.toString()); addClassInUse(idSystemException.toString()); addClassInUse(idJavaIoSerializable.toString()); addClassInUse(idCorbaORB.toString()); addClassInUse(idReplyHandler.toString()); // Add stub/tie specific imports... if (stub) { addClassInUse(stubBaseClass); addClassInUse("java.rmi.UnexpectedException"); addClassInUse(idRemarshalException.toString()); addClassInUse(idApplicationException.toString()); if (localStubs) { addClassInUse("org.omg.CORBA.portable.ServantObject"); } } else { addClassInUse(type); addClassInUse(tieBaseClass); addClassInUse(idTieInterface.toString()); addClassInUse(idBadMethodException.toString()); addClassInUse(idPortableUnknownException.toString()); addClassInUse(idJavaLangThrowable.toString()); } }