org.omg.CORBA.Any.extract_any()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.8k)|赞(0)|评价(0)|浏览(108)

本文整理了Java中org.omg.CORBA.Any.extract_any()方法的一些代码示例,展示了Any.extract_any()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Any.extract_any()方法的具体详情如下:
包路径:org.omg.CORBA.Any
类名称:Any
方法名:extract_any

Any.extract_any介绍

暂无

代码示例

代码示例来源:origin: org.jacorb/jacorb

public org.omg.CORBA.Any get_any() throws TypeMismatch
{
 checkDestroyed ();
 org.omg.CORBA.Any any = getRepresentation();
 try
 {
   return any.extract_any();
 }
 catch( org.omg.CORBA.BAD_OPERATION b )
 {
   throw new TypeMismatch();
 }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public org.omg.CORBA.Any get_any()
  throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
      org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
  if (status == STATUS_DESTROYED) {
    throw wrapper.dynAnyDestroyed() ;
  }
  if (any.type().kind().value() != TCKind._tk_any)
    throw new TypeMismatch();
  return any.extract_any();
}

代码示例来源:origin: org.jacorb/jacorb

return new Byte(any.extract_octet());
case TCKind._tk_any:
return any.extract_any();
case TCKind._tk_TypeCode:
return any.extract_TypeCode();

代码示例来源:origin: org.jacorb/jacorb-services

public static EvaluationResult fromAny(Any any)
{
  if (any == null)
  {
    return null;
  }
  final EvaluationResult result;
  switch (any.type().kind().value()) {
  case TCKind._tk_any:
    result = fromAny(any.extract_any());
    break;
  default:
    result = new EvaluationResult();
    extractIntoEvaluationResult(result, any);
  }
  return result;
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public org.omg.DynamicAny.DynAny get_dyn_any()
    throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
        org.omg.DynamicAny.DynAnyPackage.InvalidValue
  {
    if (status == STATUS_DESTROYED) {
      throw wrapper.dynAnyDestroyed() ;
    }
    if (any.type().kind().value() != TCKind._tk_any)
      throw new TypeMismatch();
    // _REVISIT_ Copy value here?
    try {
      return DynAnyUtil.createMostDerivedDynAny(any.extract_any(), orb, true);
    } catch (InconsistentTypeCode ictc) {
      // The spec doesn't allow us to throw back this exception
      // incase the anys any if of type Principal, native or abstract interface.
      return null;
    }
  }
}

代码示例来源:origin: org.apache.yoko/yoko-rmi-impl

return any.extract_any();

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

return (extract_octet() == otherAny.extract_octet());
case TCKind._tk_any:
  return extract_any().equal(otherAny.extract_any());
case TCKind._tk_TypeCode:
  return extract_TypeCode().equal(otherAny.extract_TypeCode());

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

return (extract_octet() == otherAny.extract_octet());
case TCKind._tk_any :
  return extract_any().equal(otherAny.extract_any());
case TCKind._tk_TypeCode :
  return extract_TypeCode().equal(otherAny.extract_TypeCode());

代码示例来源:origin: jboss/jboss-javaee-specs

return (extract_octet() == otherAny.extract_octet());
case TCKind._tk_any :
  return extract_any().equal(otherAny.extract_any());
case TCKind._tk_TypeCode :
  return extract_TypeCode().equal(otherAny.extract_TypeCode());

代码示例来源:origin: org.jacorb/jacorb

return extract_any().equal( other.extract_any() );

相关文章