Java 类org.omg.CORBA.ValueMember 实例源码

项目:OpenJSharp    文件:IIOPInputStream.java   
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();
    }
}
项目:OpenJSharp    文件:ObjectStreamClass.java   
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;
}
项目:OpenJSharp    文件:ValueUtility.java   
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()];
    }

}
项目:openjdk-jdk10    文件:IIOPInputStream.java   
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();
    }
}
项目:openjdk-jdk10    文件:ObjectStreamClass.java   
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;
}
项目:openjdk-jdk10    文件:ValueUtility.java   
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()];
    }

}
项目:openjdk9    文件:IIOPInputStream.java   
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();
    }
}
项目:openjdk9    文件:ObjectStreamClass.java   
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;
}
项目:openjdk9    文件:ValueUtility.java   
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()];
    }

}
项目:lookaside_java-1.8.0-openjdk    文件:IIOPInputStream.java   
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();
    }
}
项目:lookaside_java-1.8.0-openjdk    文件:ObjectStreamClass.java   
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;
}
项目:lookaside_java-1.8.0-openjdk    文件:ValueUtility.java   
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()];
    }

}
项目:jdk8u_corba    文件:IIOPInputStream.java   
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();
    }
}
项目:jdk8u_corba    文件:ObjectStreamClass.java   
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;
}
项目:jdk8u_corba    文件:ValueUtility.java   
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()];
    }

}
项目:infobip-open-jdk-8    文件:IIOPInputStream.java   
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();
    }
}
项目:infobip-open-jdk-8    文件:ObjectStreamClass.java   
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;
}
项目:infobip-open-jdk-8    文件:ValueUtility.java   
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()];
    }

}
项目:openjdk-source-code-learn    文件:IIOPInputStream.java   
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();
    }
}
项目:openjdk-source-code-learn    文件:ObjectStreamClass.java   
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;
}
项目:openjdk-source-code-learn    文件:ValueUtility.java   
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()];
    }

}
项目:OLD-OpenJDK8    文件:IIOPInputStream.java   
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();
    }
}
项目:OLD-OpenJDK8    文件:ObjectStreamClass.java   
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;
}
项目:OLD-OpenJDK8    文件:ValueUtility.java   
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()];
    }

}
项目:openjdk-orb    文件:IIOPInputStream.java   
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();
    }
}
项目:openjdk-orb    文件:ObjectStreamClass.java   
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;
}
项目:openjdk-orb    文件:ValueUtility.java   
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()];
    }

}
项目:openjdk-icedtea7    文件:IIOPInputStream.java   
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();
    }
}
项目:openjdk-icedtea7    文件:ObjectStreamClass.java   
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;
}
项目:openjdk-icedtea7    文件:ValueUtility.java   
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()];
    }

}
项目:TIDorbJ    文件:ValueTypeCode.java   
public void readParams(es.tid.TIDorbj.core.cdr.CDRInputStream input)
{
    super.readParams(input);
    m_value_modifier = input.read_short();
    m_concrete_base = input.read_TypeCode();

    int length = input.read_ulong();

    m_members = new ValueMember[length];

    for (int i = 0; i < length; i++) {
        m_members[i].name = input.read_string();
        m_members[i].type = input.read_TypeCode();
        m_members[i].access = input.read_short();
    }
}
项目:OpenJSharp    文件:TypeCodeImpl.java   
public TypeCodeImpl(ORB orb,
                    int creationKind,
                    String id,
                    String name,
                    short type_modifier,
                    TypeCode concrete_base,
                    ValueMember[] members)
                    // for value types
{
    this(orb) ;

    if (creationKind == TCKind._tk_value) {
        _kind               = creationKind;
        setId(id);
        _name               = name;
        _type_modifier      = type_modifier;
        if (concrete_base != null) {
            _concrete_base = convertToNative(_orb, concrete_base);
        }
        _memberCount        = members.length;

        _memberNames = new String[_memberCount];
        _memberTypes = new TypeCodeImpl[_memberCount];
        _memberAccess = new short[_memberCount];

        for (int i = 0 ; i < _memberCount ; i++) {
            _memberNames[i] = members[i].name;
            _memberTypes[i] = convertToNative(_orb, members[i].type);
            _memberTypes[i].setParent(this);
            _memberAccess[i] = members[i].access;
        }
    } // else initializes to null
}
项目:OpenJSharp    文件:ObjectStreamClass_1_3_1.java   
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;
    }
项目:OpenJSharp    文件:ORBImpl.java   
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);
}
项目:OpenJSharp    文件:ORBSingleton.java   
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);
}
项目:openjdk-jdk10    文件:TypeCodeImpl.java   
public TypeCodeImpl(ORB orb,
                    int creationKind,
                    String id,
                    String name,
                    short type_modifier,
                    TypeCode concrete_base,
                    ValueMember[] members)
                    // for value types
{
    this(orb) ;

    if (creationKind == TCKind._tk_value) {
        _kind               = creationKind;
        setId(id);
        _name               = name;
        _type_modifier      = type_modifier;
        if (concrete_base != null) {
            _concrete_base = convertToNative(_orb, concrete_base);
        }
        _memberCount        = members.length;

        _memberNames = new String[_memberCount];
        _memberTypes = new TypeCodeImpl[_memberCount];
        _memberAccess = new short[_memberCount];

        for (int i = 0 ; i < _memberCount ; i++) {
            _memberNames[i] = members[i].name;
            _memberTypes[i] = convertToNative(_orb, members[i].type);
            _memberTypes[i].setParent(this);
            _memberAccess[i] = members[i].access;
        }
    } // else initializes to null
}
项目:openjdk-jdk10    文件:ObjectStreamClass_1_3_1.java   
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;
    }
项目:openjdk-jdk10    文件:ORBImpl.java   
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);
}
项目:openjdk-jdk10    文件:ORBSingleton.java   
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);
}
项目:openjdk9    文件:TypeCodeImpl.java   
public TypeCodeImpl(ORB orb,
                    int creationKind,
                    String id,
                    String name,
                    short type_modifier,
                    TypeCode concrete_base,
                    ValueMember[] members)
                    // for value types
{
    this(orb) ;

    if (creationKind == TCKind._tk_value) {
        _kind               = creationKind;
        setId(id);
        _name               = name;
        _type_modifier      = type_modifier;
        if (concrete_base != null) {
            _concrete_base = convertToNative(_orb, concrete_base);
        }
        _memberCount        = members.length;

        _memberNames = new String[_memberCount];
        _memberTypes = new TypeCodeImpl[_memberCount];
        _memberAccess = new short[_memberCount];

        for (int i = 0 ; i < _memberCount ; i++) {
            _memberNames[i] = members[i].name;
            _memberTypes[i] = convertToNative(_orb, members[i].type);
            _memberTypes[i].setParent(this);
            _memberAccess[i] = members[i].access;
        }
    } // else initializes to null
}