|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectjavax.lang.Variant
l3cover.adl.Value
ADL computational values
入れ子クラスの概要 |
クラス javax.lang.Variant から継承した入れ子クラス |
Variant.InvalidTypeException |
クラス javax.lang.PartialOrder から継承した入れ子クラス |
PartialOrder.IncomparableException |
フィールドの概要 | |
static Value |
JUNK
Singleton instance of meaningless value |
static int |
TYPE_INT
Tag for integer values |
static int |
TYPE_JUNK
Tag for meaningless values |
protected static int |
TYPE_MAXVALUE
Max value of the tags |
static int |
TYPE_POINTER
Tag for pointer values |
コンストラクタの概要 | |
protected |
Value(int type)
Delegating constructor. |
メソッドの概要 | |
boolean |
comparable(java.lang.Object o)
Returns whether this object and the specified object are comparable or not. |
int |
compareTo(java.lang.Object o)
Compares two objects. |
Int |
getIntValue()
Obtain the integer value represented by this object. |
Pointer |
getPointerValue()
Obtain the pointer value represented by this object. |
static Value |
Int(Int intValue)
Constructs a Value object representing an integer value. |
static Value |
Junk()
Constructs a Value object representing a meaningless value. |
static Value |
Pointer(Pointer pointerValue)
Constructs a Value object representing a pointer value. |
java.lang.String |
toString()
Returns the string representation of this object. |
protected java.lang.String |
toStringInternal()
Returns the string representation of this object. |
クラス javax.lang.Variant から継承したメソッド |
assertType, getType, unsupportedException, unsupportedException |
クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
public static final int TYPE_JUNK
public static final int TYPE_INT
public static final int TYPE_POINTER
protected static final int TYPE_MAXVALUE
public static final Value JUNK
コンストラクタの詳細 |
protected Value(int type)
type
- type of the valueメソッドの詳細 |
public static Value Junk()
Value
object representing a meaningless value.
public static Value Int(Int intValue)
Value
object representing an integer value.
intValue
-
public static Value Pointer(Pointer pointerValue)
Value
object representing a pointer value.
pointerValue
- pointer value
public Int getIntValue()
InvalidTypeException
- when type != TYPE_INT
public Pointer getPointerValue()
InvalidTypeException
- when type != TYPE_POINTER
public boolean comparable(java.lang.Object o)
PartialOrder
の記述: a.comparable(a)
for any instance a
.a.comparable(b) == b.comparable(a)
for any two objects a
and b
.a.comparable(b)
and b.comparable(c)
hold, then a.comparable(c)
.
PartialOrder
内の comparable
o
- Target object
true
if this
and that
are comparable. false
otherwise.public int compareTo(java.lang.Object o) throws PartialOrder.IncomparableException
PartialOrder
の記述: comparable
returns true
.
Otherwise IncomparableException
is thrown.java.lang.Comparable
interface.
PartialOrder
内の compareTo
o
- Target object
PartialOrder.IncomparableException
- when this
and that
are not comparable.PartialOrder.comparable(Object)
,
Comparable
protected java.lang.String toStringInternal()
public java.lang.String toString()
Variant
内の toString
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |