Java Code Examples for com.sun.corba.se.spi.orb.ORB#get_primitive_tc()
The following examples show how to use
com.sun.corba.se.spi.orb.ORB#get_primitive_tc() .
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: ORBUtility.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
private static StructMember[] systemExceptionMembers (ORB orb) { if (members == null) { members = new StructMember[3]; members[0] = new StructMember("id", orb.create_string_tc(0), null); members[1] = new StructMember("minor", orb.get_primitive_tc(TCKind.tk_long), null); members[2] = new StructMember("completed", orb.get_primitive_tc(TCKind.tk_long), null); } return members; }
Example 2
Source File: AnyImpl.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
/** * A constructor that sets the Any to contain a null. It also marks * the value as being invalid so that extractions throw an exception * until an insertion has been performed. */ public AnyImpl(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ; typeCode = orb.get_primitive_tc(TCKind._tk_null); stream = null; object = null; value = 0; // null is a valid value isInitialized = true; }
Example 3
Source File: AnyImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
/** * A constructor that sets the Any to contain a null. It also marks * the value as being invalid so that extractions throw an exception * until an insertion has been performed. */ public AnyImpl(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ; typeCode = orb.get_primitive_tc(TCKind._tk_null); stream = null; object = null; value = 0; // null is a valid value isInitialized = true; }
Example 4
Source File: ORBUtility.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private static StructMember[] systemExceptionMembers (ORB orb) { if (members == null) { members = new StructMember[3]; members[0] = new StructMember("id", orb.create_string_tc(0), null); members[1] = new StructMember("minor", orb.get_primitive_tc(TCKind.tk_long), null); members[2] = new StructMember("completed", orb.get_primitive_tc(TCKind.tk_long), null); } return members; }
Example 5
Source File: AnyImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
/** * A constructor that sets the Any to contain a null. It also marks * the value as being invalid so that extractions throw an exception * until an insertion has been performed. */ public AnyImpl(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ; typeCode = orb.get_primitive_tc(TCKind._tk_null); stream = null; object = null; value = 0; // null is a valid value isInitialized = true; }
Example 6
Source File: AnyImpl.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
/** * A constructor that sets the Any to contain a null. It also marks * the value as being invalid so that extractions throw an exception * until an insertion has been performed. */ public AnyImpl(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ; typeCode = orb.get_primitive_tc(TCKind._tk_null); stream = null; object = null; value = 0; // null is a valid value isInitialized = true; }
Example 7
Source File: AnyImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
/** * A constructor that sets the Any to contain a null. It also marks * the value as being invalid so that extractions throw an exception * until an insertion has been performed. */ public AnyImpl(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ; typeCode = orb.get_primitive_tc(TCKind._tk_null); stream = null; object = null; value = 0; // null is a valid value isInitialized = true; }
Example 8
Source File: ORBUtility.java From openjdk-8-source with GNU General Public License v2.0 | 5 votes |
private static StructMember[] systemExceptionMembers (ORB orb) { if (members == null) { members = new StructMember[3]; members[0] = new StructMember("id", orb.create_string_tc(0), null); members[1] = new StructMember("minor", orb.get_primitive_tc(TCKind.tk_long), null); members[2] = new StructMember("completed", orb.get_primitive_tc(TCKind.tk_long), null); } return members; }
Example 9
Source File: ORBUtility.java From hottub with GNU General Public License v2.0 | 5 votes |
private static StructMember[] systemExceptionMembers (ORB orb) { if (members == null) { members = new StructMember[3]; members[0] = new StructMember("id", orb.create_string_tc(0), null); members[1] = new StructMember("minor", orb.get_primitive_tc(TCKind.tk_long), null); members[2] = new StructMember("completed", orb.get_primitive_tc(TCKind.tk_long), null); } return members; }
Example 10
Source File: AnyImpl.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
/** * A constructor that sets the Any to contain a null. It also marks * the value as being invalid so that extractions throw an exception * until an insertion has been performed. */ public AnyImpl(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ; typeCode = orb.get_primitive_tc(TCKind._tk_null); stream = null; object = null; value = 0; // null is a valid value isInitialized = true; }
Example 11
Source File: AnyImpl.java From hottub with GNU General Public License v2.0 | 5 votes |
/** * A constructor that sets the Any to contain a null. It also marks * the value as being invalid so that extractions throw an exception * until an insertion has been performed. */ public AnyImpl(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ; typeCode = orb.get_primitive_tc(TCKind._tk_null); stream = null; object = null; value = 0; // null is a valid value isInitialized = true; }
Example 12
Source File: AnyImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 5 votes |
/** * A constructor that sets the Any to contain a null. It also marks * the value as being invalid so that extractions throw an exception * until an insertion has been performed. */ public AnyImpl(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ; typeCode = orb.get_primitive_tc(TCKind._tk_null); stream = null; object = null; value = 0; // null is a valid value isInitialized = true; }
Example 13
Source File: AnyImpl.java From TencentKona-8 with GNU General Public License v2.0 | 5 votes |
/** * A constructor that sets the Any to contain a null. It also marks * the value as being invalid so that extractions throw an exception * until an insertion has been performed. */ public AnyImpl(ORB orb) { this.orb = orb; wrapper = ORBUtilSystemException.get( (com.sun.corba.se.spi.orb.ORB)orb, CORBALogDomains.RPC_PRESENTATION ) ; typeCode = orb.get_primitive_tc(TCKind._tk_null); stream = null; object = null; value = 0; // null is a valid value isInitialized = true; }
Example 14
Source File: ORBUtility.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
private static StructMember[] systemExceptionMembers (ORB orb) { if (members == null) { members = new StructMember[3]; members[0] = new StructMember("id", orb.create_string_tc(0), null); members[1] = new StructMember("minor", orb.get_primitive_tc(TCKind.tk_long), null); members[2] = new StructMember("completed", orb.get_primitive_tc(TCKind.tk_long), null); } return members; }
Example 15
Source File: AnyImpl.java From JDKSourceCode1.8 with MIT License | 4 votes |
/** * It looks like this was copied from io.ValueUtility at some * point. * * It's used by createTypeCodeForClass. The tcORB passed in * should have the desired ORB version, and is used to * create the type codes. */ private TypeCode getPrimitiveTypeCodeForClass (Class c, ORB tcORB) { //debug.log ("getPrimitiveTypeCodeForClass"); if (c == Integer.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_long); } else if (c == Byte.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_octet); } else if (c == Long.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_longlong); } else if (c == Float.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_float); } else if (c == Double.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_double); } else if (c == Short.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_short); } else if (c == Character.TYPE) { // For Merlin or later JDKs, or for foreign ORBs, // we correctly say that a Java char maps to a // CORBA wchar. For backwards compatibility // with our older ORBs, we say it maps to a // CORBA char. This is only used in RMI-IIOP // in our javax.rmi.CORBA.Util delegate's // writeAny method. In Java IDL, there's no way // to know the ORB version that the Any will be // sent out with -- it could be different than // the one used to create the Any -- so we use the // most recent version (see insert_Value). if (ORBVersionFactory.getFOREIGN().compareTo(tcORB.getORBVersion()) == 0 || ORBVersionFactory.getNEWER().compareTo(tcORB.getORBVersion()) <= 0) return tcORB.get_primitive_tc(TCKind.tk_wchar); else return tcORB.get_primitive_tc(TCKind.tk_char); } else if (c == Boolean.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_boolean); } else { // _REVISIT_ Not sure if this is right. return tcORB.get_primitive_tc (TCKind.tk_any); } }
Example 16
Source File: AnyImpl.java From hottub with GNU General Public License v2.0 | 4 votes |
/** * It looks like this was copied from io.ValueUtility at some * point. * * It's used by createTypeCodeForClass. The tcORB passed in * should have the desired ORB version, and is used to * create the type codes. */ private TypeCode getPrimitiveTypeCodeForClass (Class c, ORB tcORB) { //debug.log ("getPrimitiveTypeCodeForClass"); if (c == Integer.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_long); } else if (c == Byte.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_octet); } else if (c == Long.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_longlong); } else if (c == Float.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_float); } else if (c == Double.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_double); } else if (c == Short.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_short); } else if (c == Character.TYPE) { // For Merlin or later JDKs, or for foreign ORBs, // we correctly say that a Java char maps to a // CORBA wchar. For backwards compatibility // with our older ORBs, we say it maps to a // CORBA char. This is only used in RMI-IIOP // in our javax.rmi.CORBA.Util delegate's // writeAny method. In Java IDL, there's no way // to know the ORB version that the Any will be // sent out with -- it could be different than // the one used to create the Any -- so we use the // most recent version (see insert_Value). if (ORBVersionFactory.getFOREIGN().compareTo(tcORB.getORBVersion()) == 0 || ORBVersionFactory.getNEWER().compareTo(tcORB.getORBVersion()) <= 0) return tcORB.get_primitive_tc(TCKind.tk_wchar); else return tcORB.get_primitive_tc(TCKind.tk_char); } else if (c == Boolean.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_boolean); } else { // _REVISIT_ Not sure if this is right. return tcORB.get_primitive_tc (TCKind.tk_any); } }
Example 17
Source File: AnyImpl.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
/** * It looks like this was copied from io.ValueUtility at some * point. * * It's used by createTypeCodeForClass. The tcORB passed in * should have the desired ORB version, and is used to * create the type codes. */ private TypeCode getPrimitiveTypeCodeForClass (Class c, ORB tcORB) { //debug.log ("getPrimitiveTypeCodeForClass"); if (c == Integer.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_long); } else if (c == Byte.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_octet); } else if (c == Long.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_longlong); } else if (c == Float.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_float); } else if (c == Double.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_double); } else if (c == Short.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_short); } else if (c == Character.TYPE) { // For Merlin or later JDKs, or for foreign ORBs, // we correctly say that a Java char maps to a // CORBA wchar. For backwards compatibility // with our older ORBs, we say it maps to a // CORBA char. This is only used in RMI-IIOP // in our javax.rmi.CORBA.Util delegate's // writeAny method. In Java IDL, there's no way // to know the ORB version that the Any will be // sent out with -- it could be different than // the one used to create the Any -- so we use the // most recent version (see insert_Value). if (ORBVersionFactory.getFOREIGN().compareTo(tcORB.getORBVersion()) == 0 || ORBVersionFactory.getNEWER().compareTo(tcORB.getORBVersion()) <= 0) return tcORB.get_primitive_tc(TCKind.tk_wchar); else return tcORB.get_primitive_tc(TCKind.tk_char); } else if (c == Boolean.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_boolean); } else { // _REVISIT_ Not sure if this is right. return tcORB.get_primitive_tc (TCKind.tk_any); } }
Example 18
Source File: AnyImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
/** * It looks like this was copied from io.ValueUtility at some * point. * * It's used by createTypeCodeForClass. The tcORB passed in * should have the desired ORB version, and is used to * create the type codes. */ private TypeCode getPrimitiveTypeCodeForClass (Class c, ORB tcORB) { //debug.log ("getPrimitiveTypeCodeForClass"); if (c == Integer.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_long); } else if (c == Byte.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_octet); } else if (c == Long.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_longlong); } else if (c == Float.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_float); } else if (c == Double.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_double); } else if (c == Short.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_short); } else if (c == Character.TYPE) { // For Merlin or later JDKs, or for foreign ORBs, // we correctly say that a Java char maps to a // CORBA wchar. For backwards compatibility // with our older ORBs, we say it maps to a // CORBA char. This is only used in RMI-IIOP // in our javax.rmi.CORBA.Util delegate's // writeAny method. In Java IDL, there's no way // to know the ORB version that the Any will be // sent out with -- it could be different than // the one used to create the Any -- so we use the // most recent version (see insert_Value). if (ORBVersionFactory.getFOREIGN().compareTo(tcORB.getORBVersion()) == 0 || ORBVersionFactory.getNEWER().compareTo(tcORB.getORBVersion()) <= 0) return tcORB.get_primitive_tc(TCKind.tk_wchar); else return tcORB.get_primitive_tc(TCKind.tk_char); } else if (c == Boolean.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_boolean); } else { // _REVISIT_ Not sure if this is right. return tcORB.get_primitive_tc (TCKind.tk_any); } }
Example 19
Source File: AnyImpl.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
/** * It looks like this was copied from io.ValueUtility at some * point. * * It's used by createTypeCodeForClass. The tcORB passed in * should have the desired ORB version, and is used to * create the type codes. */ private TypeCode getPrimitiveTypeCodeForClass (Class c, ORB tcORB) { //debug.log ("getPrimitiveTypeCodeForClass"); if (c == Integer.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_long); } else if (c == Byte.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_octet); } else if (c == Long.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_longlong); } else if (c == Float.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_float); } else if (c == Double.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_double); } else if (c == Short.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_short); } else if (c == Character.TYPE) { // For Merlin or later JDKs, or for foreign ORBs, // we correctly say that a Java char maps to a // CORBA wchar. For backwards compatibility // with our older ORBs, we say it maps to a // CORBA char. This is only used in RMI-IIOP // in our javax.rmi.CORBA.Util delegate's // writeAny method. In Java IDL, there's no way // to know the ORB version that the Any will be // sent out with -- it could be different than // the one used to create the Any -- so we use the // most recent version (see insert_Value). if (ORBVersionFactory.getFOREIGN().compareTo(tcORB.getORBVersion()) == 0 || ORBVersionFactory.getNEWER().compareTo(tcORB.getORBVersion()) <= 0) return tcORB.get_primitive_tc(TCKind.tk_wchar); else return tcORB.get_primitive_tc(TCKind.tk_char); } else if (c == Boolean.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_boolean); } else { // _REVISIT_ Not sure if this is right. return tcORB.get_primitive_tc (TCKind.tk_any); } }
Example 20
Source File: AnyImpl.java From jdk1.8-source-analysis with Apache License 2.0 | 4 votes |
/** * It looks like this was copied from io.ValueUtility at some * point. * * It's used by createTypeCodeForClass. The tcORB passed in * should have the desired ORB version, and is used to * create the type codes. */ private TypeCode getPrimitiveTypeCodeForClass (Class c, ORB tcORB) { //debug.log ("getPrimitiveTypeCodeForClass"); if (c == Integer.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_long); } else if (c == Byte.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_octet); } else if (c == Long.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_longlong); } else if (c == Float.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_float); } else if (c == Double.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_double); } else if (c == Short.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_short); } else if (c == Character.TYPE) { // For Merlin or later JDKs, or for foreign ORBs, // we correctly say that a Java char maps to a // CORBA wchar. For backwards compatibility // with our older ORBs, we say it maps to a // CORBA char. This is only used in RMI-IIOP // in our javax.rmi.CORBA.Util delegate's // writeAny method. In Java IDL, there's no way // to know the ORB version that the Any will be // sent out with -- it could be different than // the one used to create the Any -- so we use the // most recent version (see insert_Value). if (ORBVersionFactory.getFOREIGN().compareTo(tcORB.getORBVersion()) == 0 || ORBVersionFactory.getNEWER().compareTo(tcORB.getORBVersion()) <= 0) return tcORB.get_primitive_tc(TCKind.tk_wchar); else return tcORB.get_primitive_tc(TCKind.tk_char); } else if (c == Boolean.TYPE) { return tcORB.get_primitive_tc (TCKind.tk_boolean); } else { // _REVISIT_ Not sure if this is right. return tcORB.get_primitive_tc (TCKind.tk_any); } }