|
Java Debug Interface | ||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
public interface Type
ターゲット VM 内に存在する特定の型のミラーです。このインタフェースは、プリミティブ型と参照型の両方を含んむ型階層のルートです。
Type オブジェクトは、次のような実行時の型を表現する場合に使用できます。
Value
.type()
また、次のようなコンパイル時の型を表現する場合にも使用できます。Field.type()
Method.returnType()
Method.argumentTypes()
LocalVariable.type()
ArrayType.componentType()
以下の表は、ターゲット VM 内の各型をミラーする際に使用される Type のサブインタフェースを示したものです。
PrimitiveType のサブインタフェース | ||
---|---|---|
ターゲット内で宣言される型 | 以下のインタフェースとしてミラー化される | |
boolean | BooleanType | |
byte | ByteType | |
char | CharType | |
double | DoubleType | |
float | FloatType | |
int | IntegerType | |
long | LongType | |
short | ShortType | |
void | VoidType | |
ReferenceType のサブインタフェース | ||
ターゲット内で宣言される型 | コード例 | 以下のインスタンスとしてミラー化される |
クラス | Date | ClassType |
インタフェース | Runnable | InterfaceType |
配列 | ArrayType | |
配列 | int[] | componentType() が IntegerType である ArrayType |
配列 | Date[] | componentType() が ClassType である ArrayType |
配列 | Runnable[] | componentType() が InterfaceType である ArrayType |
Subinterface PrimitiveType
,
Subinterface ReferenceType
,
Value - for relationship between Type and Value
,
Field.type() - for usage examples
メソッドの概要 | |
---|---|
String |
name()
|
String |
signature()
この型の JNI 形式のシグニチャーを返します。 |
インタフェース com.sun.jdi.Mirror から継承されたメソッド |
---|
toString, virtualMachine |
メソッドの詳細 |
---|
String signature()
プリミティブクラスの場合、返されるシグニチャーは対応するプリミティブ型のシグニチャーです。たとえば、「I」は、Integer.TYPE
により表されるクラスのシグニチャーとして返されます。
String name()
|
Java Debug Interface | ||||||||
前のクラス 次のクラス | フレームあり フレームなし | ||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |