Java Code Examples for org.omg.CORBA.ValueMember

The following are top voted examples for showing how to use org.omg.CORBA.ValueMember. These examples are extracted from open source projects. You can vote up the examples you like and your votes will be used in our system to generate more good examples.
Example 1
Project: OpenJSharp   File: IIOPInputStream.java   View source code 6 votes vote down vote up
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
Project: OpenJSharp   File: ObjectStreamClass.java   View source code 6 votes vote down vote up
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 3
Project: OpenJSharp   File: ValueUtility.java   View source code 6 votes vote down vote up
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 4
Project: openjdk-jdk10   File: IIOPInputStream.java   View source code 6 votes vote down vote up
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 5
Project: openjdk-jdk10   File: ObjectStreamClass.java   View source code 6 votes vote down vote up
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 6
Project: openjdk-jdk10   File: ValueUtility.java   View source code 6 votes vote down vote up
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 7
Project: openjdk9   File: IIOPInputStream.java   View source code 6 votes vote down vote up
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 8
Project: openjdk9   File: ObjectStreamClass.java   View source code 6 votes vote down vote up
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
Project: openjdk9   File: ValueUtility.java   View source code 6 votes vote down vote up
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 10
Project: lookaside_java-1.8.0-openjdk   File: IIOPInputStream.java   View source code 6 votes vote down vote up
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
Project: lookaside_java-1.8.0-openjdk   File: ObjectStreamClass.java   View source code 6 votes vote down vote up
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
Project: lookaside_java-1.8.0-openjdk   File: ValueUtility.java   View source code 6 votes vote down vote up
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
Project: jdk8u_corba   File: IIOPInputStream.java   View source code 6 votes vote down vote up
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 14
Project: jdk8u_corba   File: ObjectStreamClass.java   View source code 6 votes vote down vote up
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
Project: jdk8u_corba   File: ValueUtility.java   View source code 6 votes vote down vote up
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 16
Project: infobip-open-jdk-8   File: IIOPInputStream.java   View source code 6 votes vote down vote up
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 17
Project: infobip-open-jdk-8   File: ObjectStreamClass.java   View source code 6 votes vote down vote up
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 18
Project: infobip-open-jdk-8   File: ValueUtility.java   View source code 6 votes vote down vote up
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 19
Project: openjdk-source-code-learn   File: IIOPInputStream.java   View source code 6 votes vote down vote up
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
Project: openjdk-source-code-learn   File: ObjectStreamClass.java   View source code 6 votes vote down vote up
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 21
Project: openjdk-source-code-learn   File: ValueUtility.java   View source code 6 votes vote down vote up
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
Project: OLD-OpenJDK8   File: IIOPInputStream.java   View source code 6 votes vote down vote up
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 23
Project: OLD-OpenJDK8   File: ObjectStreamClass.java   View source code 6 votes vote down vote up
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 24
Project: OLD-OpenJDK8   File: ValueUtility.java   View source code 6 votes vote down vote up
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 25
Project: openjdk-orb   File: IIOPInputStream.java   View source code 6 votes vote down vote up
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 26
Project: openjdk-orb   File: ObjectStreamClass.java   View source code 6 votes vote down vote up
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 27
Project: openjdk-orb   File: ValueUtility.java   View source code 6 votes vote down vote up
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 28
Project: openjdk-icedtea7   File: IIOPInputStream.java   View source code 6 votes vote down vote up
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 29
Project: openjdk-icedtea7   File: ObjectStreamClass.java   View source code 6 votes vote down vote up
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 30
Project: openjdk-icedtea7   File: ValueUtility.java   View source code 6 votes vote down vote up
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 31
Project: TIDorbJ   File: ValueTypeCode.java   View source code 6 votes vote down vote up
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();
    }
}
 
Example 32
Project: OpenJSharp   File: TypeCodeImpl.java   View source code 5 votes vote down vote up
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
}
 
Example 33
Project: OpenJSharp   File: ObjectStreamClass_1_3_1.java   View source code 5 votes vote down vote up
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 34
Project: OpenJSharp   File: ORBImpl.java   View source code 5 votes vote down vote up
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 35
Project: OpenJSharp   File: ORBSingleton.java   View source code 5 votes vote down vote up
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);
}
 
Example 36
Project: openjdk-jdk10   File: TypeCodeImpl.java   View source code 5 votes vote down vote up
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
}
 
Example 37
Project: openjdk-jdk10   File: ObjectStreamClass_1_3_1.java   View source code 5 votes vote down vote up
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 38
Project: openjdk-jdk10   File: ORBImpl.java   View source code 5 votes vote down vote up
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 39
Project: openjdk-jdk10   File: ORBSingleton.java   View source code 5 votes vote down vote up
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);
}
 
Example 40
Project: openjdk9   File: TypeCodeImpl.java   View source code 5 votes vote down vote up
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
}