当前位置: 首页>>代码示例>>Java>>正文


Java TCKind._tk_sequence方法代码示例

本文整理汇总了Java中org.omg.CORBA.TCKind._tk_sequence方法的典型用法代码示例。如果您正苦于以下问题:Java TCKind._tk_sequence方法的具体用法?Java TCKind._tk_sequence怎么用?Java TCKind._tk_sequence使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.omg.CORBA.TCKind的用法示例。


在下文中一共展示了TCKind._tk_sequence方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: lazy_content_type

import org.omg.CORBA.TCKind; //导入方法依赖的package包/类
private TypeCodeImpl lazy_content_type() {
    if (_contentType == null) {
        if (_kind == TCKind._tk_sequence && _parentOffset > 0 && _parent != null) {
            // This is an unresolved recursive sequence tc.
            // Try to resolve it now if the hierarchy is complete.
            TypeCodeImpl realParent = getParentAtLevel(_parentOffset);
            if (realParent != null && realParent._id != null) {
                // Create a recursive type code object as the content type.
                // This is when the recursive sequence typecode morphes
                // into a sequence typecode containing a recursive typecode.
                _contentType = new TypeCodeImpl((ORB)_orb, realParent._id);
            }
        }
    }
    return _contentType;
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:17,代码来源:TypeCodeImpl.java

示例2: content_type

import org.omg.CORBA.TCKind; //导入方法依赖的package包/类
public TypeCode content_type()
    throws BadKind
{
    switch (_kind) {
    case tk_indirect:
        return indirectType().content_type();
    case TCKind._tk_sequence:
        return lazy_content_type();
    case TCKind._tk_array:
    case TCKind._tk_alias:
    case TCKind._tk_value_box:
        return _contentType;
    default:
        throw new BadKind();
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:17,代码来源:TypeCodeImpl.java

示例3: TypeCodeImpl

import org.omg.CORBA.TCKind; //导入方法依赖的package包/类
public TypeCodeImpl(ORB orb,
                    int creationKind,
                    int bound,
                    TypeCode element_type)
                    // for sequences and arrays
{
    this(orb) ;

    if ( creationKind == TCKind._tk_sequence || creationKind == TCKind._tk_array ) {
        _kind               = creationKind;
        _length             = bound;
        _contentType        = convertToNative(_orb, element_type);
    } // else initializes to null
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:TypeCodeImpl.java

示例4: length

import org.omg.CORBA.TCKind; //导入方法依赖的package包/类
public int length()
    throws BadKind
{
    switch (_kind) {
    case tk_indirect:
        return indirectType().length();
    case TCKind._tk_string:
    case TCKind._tk_wstring:
    case TCKind._tk_sequence:
    case TCKind._tk_array:
        return _length;
    default:
        throw new BadKind();
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:16,代码来源:TypeCodeImpl.java

示例5: isConstructedDynAny

import org.omg.CORBA.TCKind; //导入方法依赖的package包/类
static boolean isConstructedDynAny(DynAny dynAny) {
    // DynFixed is constructed but not a subclass of DynAnyConstructedImpl
    //return (dynAny instanceof DynAnyConstructedImpl);
    int kind = dynAny.type().kind().value();
    return (kind == TCKind._tk_sequence ||
            kind == TCKind._tk_struct ||
            kind == TCKind._tk_array ||
            kind == TCKind._tk_union ||
            kind == TCKind._tk_enum ||
            kind == TCKind._tk_fixed ||
            kind == TCKind._tk_value ||
            kind == TCKind._tk_value_box);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:14,代码来源:DynAnyUtil.java

示例6: createMostDerivedDynAny

import org.omg.CORBA.TCKind; //导入方法依赖的package包/类
static DynAny createMostDerivedDynAny(Any any, ORB orb, boolean copyValue)
    throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode
{
    if (any == null || ! DynAnyUtil.isConsistentType(any.type()))
        throw new org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode();

    switch (any.type().kind().value()) {
        case TCKind._tk_sequence:
            return new DynSequenceImpl(orb, any, copyValue);
        case TCKind._tk_struct:
            return new DynStructImpl(orb, any, copyValue);
        case TCKind._tk_array:
            return new DynArrayImpl(orb, any, copyValue);
        case TCKind._tk_union:
            return new DynUnionImpl(orb, any, copyValue);
        case TCKind._tk_enum:
            return new DynEnumImpl(orb, any, copyValue);
        case TCKind._tk_fixed:
            return new DynFixedImpl(orb, any, copyValue);
        case TCKind._tk_value:
            return new DynValueImpl(orb, any, copyValue);
        case TCKind._tk_value_box:
            return new DynValueBoxImpl(orb, any, copyValue);
        default:
            return new DynAnyBasicImpl(orb, any, copyValue);
    }
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:28,代码来源:DynAnyUtil.java

示例7: createMostDerivedDynAny

import org.omg.CORBA.TCKind; //导入方法依赖的package包/类
static DynAny createMostDerivedDynAny(TypeCode typeCode, ORB orb)
    throws org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode
{
    if (typeCode == null || ! DynAnyUtil.isConsistentType(typeCode))
        throw new org.omg.DynamicAny.DynAnyFactoryPackage.InconsistentTypeCode();

    switch (typeCode.kind().value()) {
        case TCKind._tk_sequence:
            return new DynSequenceImpl(orb, typeCode);
        case TCKind._tk_struct:
            return new DynStructImpl(orb, typeCode);
        case TCKind._tk_array:
            return new DynArrayImpl(orb, typeCode);
        case TCKind._tk_union:
            return new DynUnionImpl(orb, typeCode);
        case TCKind._tk_enum:
            return new DynEnumImpl(orb, typeCode);
        case TCKind._tk_fixed:
            return new DynFixedImpl(orb, typeCode);
        case TCKind._tk_value:
            return new DynValueImpl(orb, typeCode);
        case TCKind._tk_value_box:
            return new DynValueBoxImpl(orb, typeCode);
        default:
            return new DynAnyBasicImpl(orb, typeCode);
    }
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:28,代码来源:DynAnyUtil.java

示例8: create_recursive_sequence_tc

import org.omg.CORBA.TCKind; //导入方法依赖的package包/类
public TypeCode create_recursive_sequence_tc(int bound,
                                             int offset)
{
    return new TypeCodeImpl(this, TCKind._tk_sequence, bound, offset);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:6,代码来源:ORBSingleton.java

示例9: create_sequence_tc

import org.omg.CORBA.TCKind; //导入方法依赖的package包/类
public TypeCode create_sequence_tc(int bound,
                                   TypeCode element_type)
{
    return new TypeCodeImpl(this, TCKind._tk_sequence, bound, element_type);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:6,代码来源:ORBSingleton.java

示例10: create_sequence_tc

import org.omg.CORBA.TCKind; //导入方法依赖的package包/类
/**
 * Create a TypeCode for a sequence.
 *
 * @param bound     the bound for the sequence.
 * @param element_type
 *                  the type of elements of the sequence.
 * @return          the requested TypeCode.
 */
public synchronized TypeCode create_sequence_tc(int bound,
                                   TypeCode element_type)
{
    checkShutdownState();
    return new TypeCodeImpl(this, TCKind._tk_sequence, bound, element_type);
}
 
开发者ID:SunburstApps,项目名称:OpenJSharp,代码行数:15,代码来源:ORBImpl.java

示例11: create_recursive_sequence_tc

import org.omg.CORBA.TCKind; //导入方法依赖的package包/类
/**
 * Create a recursive TypeCode in a sequence.
 *
 * @param bound     the bound for the sequence.
 * @param offset    the index to the enclosing TypeCode that is
 *                  being referenced.
 * @return          the requested TypeCode.
 */
public synchronized TypeCode create_recursive_sequence_tc(int bound,
                                             int offset)
{
    checkShutdownState();
    return new TypeCodeImpl(this, TCKind._tk_sequence, bound, offset);
}
 
开发者ID:AdoptOpenJDK,项目名称:openjdk-jdk10,代码行数:15,代码来源:ORBImpl.java


注:本文中的org.omg.CORBA.TCKind._tk_sequence方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。