|
Java Debug Interface | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||
ターゲット 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 |
| メソッドの詳細 |
public String signature()
プリミティブクラスの場合、対応するプリミティブ型のシグニチャーを返します。たとえば、Integer.TYPE によって表されるクラスのシグニチャーとして、「I」を返します。
public String name()
|
Java Debug Interface | |||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||||