Java Debug Interface

com.sun.jdi
インタフェース Type

すべてのスーパーインタフェース:
Mirror
既知のサブインタフェースの一覧:
ArrayType, BooleanType, ByteType, CharType, ClassType, DoubleType, FloatType, IntegerType, InterfaceType, LongType, PrimitiveType, ReferenceType, ShortType, VoidType

public interface Type
extends Mirror

ターゲット 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

導入されたバージョン:
1.3
関連項目:
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
 

メソッドの詳細

signature

String signature()
この型の JNI 形式のシグニチャーを返します。

プリミティブクラスの場合、返されるシグニチャーは対応するプリミティブ型のシグニチャーです。たとえば、「I」は、Integer.TYPE により表されるクラスのシグニチャーとして返されます。

戻り値:
型のシグニチャーを含む文字列
関連項目:
Type Signatures

name

String name()
戻り値:
この型のテキスト表現

Java Debug Interface