java.lang.Objectorg.omg.CORBA.CompletionStatus
指示某一方法抛出 SystemException
时是否已结束运行的对象。
CompletionStatus
类包含三个 CompletionStatus
实例,它们是表示每种可能完成状态的常量:COMPLETED_MAYBE
、COMPLETED_NO
和 COMPLETED_YES
。该类还包含三个 int
成员,每个成员都是对应于一个 CompletionStatus
实例的常量。这些 int
成员使该类可以使用 switch
语句。
该类还包含两个方法:
public int
value
()
:该方法访问 CompletionStatus
对象的 value
字段 public static CompletionStatus
from_int
(int i)
:该方法用于根据 int
成员之一创建实例
SystemException
字段摘要 | |
---|---|
static int |
_COMPLETED_MAYBE 指示某一方法在抛出 SystemException 之前已结束运行的常量。 |
static int |
_COMPLETED_NO 指示某一方法在抛出 SystemException 之前已结束运行的常量。 |
static int |
_COMPLETED_YES 指示某一方法在抛出 SystemException 之前已结束运行的常量。 |
static CompletionStatus |
COMPLETED_MAYBE 使用常量 _COMPLETED_MAYBE 初始化的 CompletionStatus 实例。 |
static CompletionStatus |
COMPLETED_NO 使用常量 _COMPLETED_NO 初始化的 CompletionStatus 实例。 |
static CompletionStatus |
COMPLETED_YES 使用常量 _COMPLETED_YES 初始化的 CompletionStatus 实例。 |
方法摘要 | |
---|---|
static CompletionStatus |
from_int(int i) 根据给定的 int 创建一个 CompletionStatus 对象。 |
int |
value() 检索此 CompletionStatus 对象的值。 |
从类 java.lang.Object 继承的方法 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
字段详细信息 |
---|
public static final int _COMPLETED_YES
SystemException
之前已结束运行的常量。
public static final int _COMPLETED_NO
SystemException
之前已结束运行的常量。
public static final int _COMPLETED_MAYBE
SystemException
之前已结束运行的常量。
public static final CompletionStatus COMPLETED_YES
_COMPLETED_YES
初始化的
CompletionStatus
实例。
public static final CompletionStatus COMPLETED_NO
_COMPLETED_NO
初始化的
CompletionStatus
实例。
public static final CompletionStatus COMPLETED_MAYBE
_COMPLETED_MAYBE
初始化的
CompletionStatus
实例。
方法详细信息 |
---|
public int value()
CompletionStatus
对象的值。
CompletionStatus
值之一:
_COMPLETED_YES
、
_COMPLETED_NO
或
_COMPLETED_MAYBE
public static CompletionStatus from_int(int i)
int
创建一个
CompletionStatus
对象。
i
-
_COMPLETED_YES
、
_COMPLETED_NO
或
_COMPLETED_MAYBE
之一
CompletionStatus
对象之一:
_COMPLETED_YES
、
_COMPLETED_NO
或
_COMPLETED_MAYBE
BAD_PARAM
- 如果提供的参数不是
CompletionStatus
中定义的
int
常量之一