org.omg.CORBA.ValueMember Java Examples
The following examples show how to use
org.omg.CORBA.ValueMember.
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: IIOPInputStream.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
private void skipCustomUsingFVD(ValueMember[] fields, com.sun.org.omg.SendingContext.CodeBase sender) throws InvalidClassException, StreamCorruptedException, ClassNotFoundException, IOException { readFormatVersion(); boolean calledDefaultWriteObject = readBoolean(); if (calledDefaultWriteObject) throwAwayData(fields, sender); if (getStreamFormatVersion() == 2) { ((ValueInputStream)getOrbStream()).start_value(); ((ValueInputStream)getOrbStream()).end_value(); } }
Example #2
Source File: ValueUtility.java From JDKSourceCode1.8 with MIT License | 6 votes |
public static String getSignature(ValueMember member) throws ClassNotFoundException { // REVISIT. Can the type be something that is // non-primitive yet not a value_box, value, or objref? // If so, should use ObjectStreamClass or throw // exception. if (member.type.kind().value() == TCKind._tk_value_box || member.type.kind().value() == TCKind._tk_value || member.type.kind().value() == TCKind._tk_objref) { Class c = RepositoryId.cache.getId(member.id).getClassFromType(); return ObjectStreamClass.getSignature(c); } else { return primitiveConstants[member.type.kind().value()]; } }
Example #3
Source File: IIOPInputStream.java From JDKSourceCode1.8 with MIT License | 6 votes |
private void skipCustomUsingFVD(ValueMember[] fields, com.sun.org.omg.SendingContext.CodeBase sender) throws InvalidClassException, StreamCorruptedException, ClassNotFoundException, IOException { readFormatVersion(); boolean calledDefaultWriteObject = readBoolean(); if (calledDefaultWriteObject) throwAwayData(fields, sender); if (getStreamFormatVersion() == 2) { ((ValueInputStream)getOrbStream()).start_value(); ((ValueInputStream)getOrbStream()).end_value(); } }
Example #4
Source File: ValueUtility.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public static String getSignature(ValueMember member) throws ClassNotFoundException { // REVISIT. Can the type be something that is // non-primitive yet not a value_box, value, or objref? // If so, should use ObjectStreamClass or throw // exception. if (member.type.kind().value() == TCKind._tk_value_box || member.type.kind().value() == TCKind._tk_value || member.type.kind().value() == TCKind._tk_objref) { Class c = RepositoryId.cache.getId(member.id).getClassFromType(); return ObjectStreamClass.getSignature(c); } else { return primitiveConstants[member.type.kind().value()]; } }
Example #5
Source File: ValueUtility.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public static String getSignature(ValueMember member) throws ClassNotFoundException { // REVISIT. Can the type be something that is // non-primitive yet not a value_box, value, or objref? // If so, should use ObjectStreamClass or throw // exception. if (member.type.kind().value() == TCKind._tk_value_box || member.type.kind().value() == TCKind._tk_value || member.type.kind().value() == TCKind._tk_objref) { Class c = RepositoryId.cache.getId(member.id).getClassFromType(); return ObjectStreamClass.getSignature(c); } else { return primitiveConstants[member.type.kind().value()]; } }
Example #6
Source File: ObjectStreamClass.java From JDKSourceCode1.8 with MIT License | 6 votes |
public boolean hasField(ValueMember field) { try { for (int i = 0; i < fields.length; i++) { if (fields[i].getName().equals(field.name)) { if (fields[i].getSignature().equals( ValueUtility.getSignature(field))) return true; } } } catch (Exception exc) { // Ignore this; all we want to do is return false // Note that ValueUtility.getSignature can throw checked exceptions. } return false; }
Example #7
Source File: ValueUtility.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
public static String getSignature(ValueMember member) throws ClassNotFoundException { // REVISIT. Can the type be something that is // non-primitive yet not a value_box, value, or objref? // If so, should use ObjectStreamClass or throw // exception. if (member.type.kind().value() == TCKind._tk_value_box || member.type.kind().value() == TCKind._tk_value || member.type.kind().value() == TCKind._tk_objref) { Class c = RepositoryId.cache.getId(member.id).getClassFromType(); return ObjectStreamClass.getSignature(c); } else { return primitiveConstants[member.type.kind().value()]; } }
Example #8
Source File: ObjectStreamClass.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
public boolean hasField(ValueMember field) { try { for (int i = 0; i < fields.length; i++) { if (fields[i].getName().equals(field.name)) { if (fields[i].getSignature().equals( ValueUtility.getSignature(field))) return true; } } } catch (Exception exc) { // Ignore this; all we want to do is return false // Note that ValueUtility.getSignature can throw checked exceptions. } return false; }
Example #9
Source File: IIOPInputStream.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
private void skipCustomUsingFVD(ValueMember[] fields, com.sun.org.omg.SendingContext.CodeBase sender) throws InvalidClassException, StreamCorruptedException, ClassNotFoundException, IOException { readFormatVersion(); boolean calledDefaultWriteObject = readBoolean(); if (calledDefaultWriteObject) throwAwayData(fields, sender); if (getStreamFormatVersion() == 2) { ((ValueInputStream)getOrbStream()).start_value(); ((ValueInputStream)getOrbStream()).end_value(); } }
Example #10
Source File: IIOPInputStream.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
private void skipCustomUsingFVD(ValueMember[] fields, com.sun.org.omg.SendingContext.CodeBase sender) throws InvalidClassException, StreamCorruptedException, ClassNotFoundException, IOException { readFormatVersion(); boolean calledDefaultWriteObject = readBoolean(); if (calledDefaultWriteObject) throwAwayData(fields, sender); if (getStreamFormatVersion() == 2) { ((ValueInputStream)getOrbStream()).start_value(); ((ValueInputStream)getOrbStream()).end_value(); } }
Example #11
Source File: ObjectStreamClass.java From hottub with GNU General Public License v2.0 | 6 votes |
public boolean hasField(ValueMember field) { try { for (int i = 0; i < fields.length; i++) { if (fields[i].getName().equals(field.name)) { if (fields[i].getSignature().equals( ValueUtility.getSignature(field))) return true; } } } catch (Exception exc) { // Ignore this; all we want to do is return false // Note that ValueUtility.getSignature can throw checked exceptions. } return false; }
Example #12
Source File: ValueUtility.java From hottub with GNU General Public License v2.0 | 6 votes |
public static String getSignature(ValueMember member) throws ClassNotFoundException { // REVISIT. Can the type be something that is // non-primitive yet not a value_box, value, or objref? // If so, should use ObjectStreamClass or throw // exception. if (member.type.kind().value() == TCKind._tk_value_box || member.type.kind().value() == TCKind._tk_value || member.type.kind().value() == TCKind._tk_objref) { Class c = RepositoryId.cache.getId(member.id).getClassFromType(); return ObjectStreamClass.getSignature(c); } else { return primitiveConstants[member.type.kind().value()]; } }
Example #13
Source File: ObjectStreamClass.java From jdk1.8-source-analysis with Apache License 2.0 | 6 votes |
public boolean hasField(ValueMember field) { try { for (int i = 0; i < fields.length; i++) { if (fields[i].getName().equals(field.name)) { if (fields[i].getSignature().equals( ValueUtility.getSignature(field))) return true; } } } catch (Exception exc) { // Ignore this; all we want to do is return false // Note that ValueUtility.getSignature can throw checked exceptions. } return false; }
Example #14
Source File: ObjectStreamClass.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public boolean hasField(ValueMember field) { try { for (int i = 0; i < fields.length; i++) { if (fields[i].getName().equals(field.name)) { if (fields[i].getSignature().equals( ValueUtility.getSignature(field))) return true; } } } catch (Exception exc) { // Ignore this; all we want to do is return false // Note that ValueUtility.getSignature can throw checked exceptions. } return false; }
Example #15
Source File: IIOPInputStream.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
private void skipCustomUsingFVD(ValueMember[] fields, com.sun.org.omg.SendingContext.CodeBase sender) throws InvalidClassException, StreamCorruptedException, ClassNotFoundException, IOException { readFormatVersion(); boolean calledDefaultWriteObject = readBoolean(); if (calledDefaultWriteObject) throwAwayData(fields, sender); if (getStreamFormatVersion() == 2) { ((ValueInputStream)getOrbStream()).start_value(); ((ValueInputStream)getOrbStream()).end_value(); } }
Example #16
Source File: ObjectStreamClass.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public boolean hasField(ValueMember field) { try { for (int i = 0; i < fields.length; i++) { if (fields[i].getName().equals(field.name)) { if (fields[i].getSignature().equals( ValueUtility.getSignature(field))) return true; } } } catch (Exception exc) { // Ignore this; all we want to do is return false // Note that ValueUtility.getSignature can throw checked exceptions. } return false; }
Example #17
Source File: ValueUtility.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public static String getSignature(ValueMember member) throws ClassNotFoundException { // REVISIT. Can the type be something that is // non-primitive yet not a value_box, value, or objref? // If so, should use ObjectStreamClass or throw // exception. if (member.type.kind().value() == TCKind._tk_value_box || member.type.kind().value() == TCKind._tk_value || member.type.kind().value() == TCKind._tk_objref) { Class c = RepositoryId.cache.getId(member.id).getClassFromType(); return ObjectStreamClass.getSignature(c); } else { return primitiveConstants[member.type.kind().value()]; } }
Example #18
Source File: ObjectStreamClass.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public boolean hasField(ValueMember field) { try { for (int i = 0; i < fields.length; i++) { if (fields[i].getName().equals(field.name)) { if (fields[i].getSignature().equals( ValueUtility.getSignature(field))) return true; } } } catch (Exception exc) { // Ignore this; all we want to do is return false // Note that ValueUtility.getSignature can throw checked exceptions. } return false; }
Example #19
Source File: IIOPInputStream.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
private void skipCustomUsingFVD(ValueMember[] fields, com.sun.org.omg.SendingContext.CodeBase sender) throws InvalidClassException, StreamCorruptedException, ClassNotFoundException, IOException { readFormatVersion(); boolean calledDefaultWriteObject = readBoolean(); if (calledDefaultWriteObject) throwAwayData(fields, sender); if (getStreamFormatVersion() == 2) { ((ValueInputStream)getOrbStream()).start_value(); ((ValueInputStream)getOrbStream()).end_value(); } }
Example #20
Source File: ValueUtility.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public static String getSignature(ValueMember member) throws ClassNotFoundException { // REVISIT. Can the type be something that is // non-primitive yet not a value_box, value, or objref? // If so, should use ObjectStreamClass or throw // exception. if (member.type.kind().value() == TCKind._tk_value_box || member.type.kind().value() == TCKind._tk_value || member.type.kind().value() == TCKind._tk_objref) { Class c = RepositoryId.cache.getId(member.id).getClassFromType(); return ObjectStreamClass.getSignature(c); } else { return primitiveConstants[member.type.kind().value()]; } }
Example #21
Source File: ValueUtility.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public static String getSignature(ValueMember member) throws ClassNotFoundException { // REVISIT. Can the type be something that is // non-primitive yet not a value_box, value, or objref? // If so, should use ObjectStreamClass or throw // exception. if (member.type.kind().value() == TCKind._tk_value_box || member.type.kind().value() == TCKind._tk_value || member.type.kind().value() == TCKind._tk_objref) { Class c = RepositoryId.cache.getId(member.id).getClassFromType(); return ObjectStreamClass.getSignature(c); } else { return primitiveConstants[member.type.kind().value()]; } }
Example #22
Source File: ObjectStreamClass.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public boolean hasField(ValueMember field) { try { for (int i = 0; i < fields.length; i++) { if (fields[i].getName().equals(field.name)) { if (fields[i].getSignature().equals( ValueUtility.getSignature(field))) return true; } } } catch (Exception exc) { // Ignore this; all we want to do is return false // Note that ValueUtility.getSignature can throw checked exceptions. } return false; }
Example #23
Source File: ValueUtility.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public static String getSignature(ValueMember member) throws ClassNotFoundException { // REVISIT. Can the type be something that is // non-primitive yet not a value_box, value, or objref? // If so, should use ObjectStreamClass or throw // exception. if (member.type.kind().value() == TCKind._tk_value_box || member.type.kind().value() == TCKind._tk_value || member.type.kind().value() == TCKind._tk_objref) { Class c = RepositoryId.cache.getId(member.id).getClassFromType(); return ObjectStreamClass.getSignature(c); } else { return primitiveConstants[member.type.kind().value()]; } }
Example #24
Source File: IIOPInputStream.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
private void skipCustomUsingFVD(ValueMember[] fields, com.sun.org.omg.SendingContext.CodeBase sender) throws InvalidClassException, StreamCorruptedException, ClassNotFoundException, IOException { readFormatVersion(); boolean calledDefaultWriteObject = readBoolean(); if (calledDefaultWriteObject) throwAwayData(fields, sender); if (getStreamFormatVersion() == 2) { ((ValueInputStream)getOrbStream()).start_value(); ((ValueInputStream)getOrbStream()).end_value(); } }
Example #25
Source File: ValueUtility.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public static String getSignature(ValueMember member) throws ClassNotFoundException { // REVISIT. Can the type be something that is // non-primitive yet not a value_box, value, or objref? // If so, should use ObjectStreamClass or throw // exception. if (member.type.kind().value() == TCKind._tk_value_box || member.type.kind().value() == TCKind._tk_value || member.type.kind().value() == TCKind._tk_objref) { Class c = RepositoryId.cache.getId(member.id).getClassFromType(); return ObjectStreamClass.getSignature(c); } else { return primitiveConstants[member.type.kind().value()]; } }
Example #26
Source File: IIOPInputStream.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
private void skipCustomUsingFVD(ValueMember[] fields, com.sun.org.omg.SendingContext.CodeBase sender) throws InvalidClassException, StreamCorruptedException, ClassNotFoundException, IOException { readFormatVersion(); boolean calledDefaultWriteObject = readBoolean(); if (calledDefaultWriteObject) throwAwayData(fields, sender); if (getStreamFormatVersion() == 2) { ((ValueInputStream)getOrbStream()).start_value(); ((ValueInputStream)getOrbStream()).end_value(); } }
Example #27
Source File: ObjectStreamClass_1_3_1.java From jdk1.8-source-analysis with Apache License 2.0 | 5 votes |
public boolean hasField(ValueMember field){ for (int i = 0; i < fields.length; i++){ try{ if (fields[i].getName().equals(field.name)) { if (fields[i].getSignature().equals(ValueUtility.getSignature(field))) return true; } } catch(Throwable t){} } return false; }
Example #28
Source File: ORBImpl.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public synchronized org.omg.CORBA.TypeCode create_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members) { checkShutdownState(); return new TypeCodeImpl(this, TCKind._tk_value, id, name, type_modifier, concrete_base, members); }
Example #29
Source File: ORBImpl.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
public synchronized org.omg.CORBA.TypeCode create_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members) { checkShutdownState(); return new TypeCodeImpl(this, TCKind._tk_value, id, name, type_modifier, concrete_base, members); }
Example #30
Source File: ORBSingleton.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
public org.omg.CORBA.TypeCode create_value_tc(String id, String name, short type_modifier, TypeCode concrete_base, ValueMember[] members) { return new TypeCodeImpl(this, TCKind._tk_value, id, name, type_modifier, concrete_base, members); }