-
- すべてのスーパー・インタフェース:
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[]
ArrayType
(componentType()
がIntegerType
)配列 Date[]
ArrayType
(componentType()
がClassType
)配列 Runnable[]
ArrayType
(componentType()
がInterfaceType
)- 導入されたバージョン:
- 1.3
- 関連項目:
サブインタフェースPrimitiveType
,サブインタフェースReferenceType
,Value - TypeとValue間の関係
,Field.type() - 使用例
-
-
メソッドのサマリー
すべてのメソッド インスタンス・メソッド 抽象メソッド 修飾子と型 メソッド 説明 String
name()
String
signature()
この型のJNI形式のシグニチャを返します。-
インタフェース com.sun.jdi.Mirrorから継承されたメソッド
toString, virtualMachine
-
-
-
-
メソッドの詳細
-
signature
String signature()
この型のJNI形式のシグニチャを返します。プリミティブ・クラスの場合、返されるシグニチャは対応するプリミティブ型のシグニチャです。たとえば、Iは、
Integer.TYPE
により表されるクラスのシグニチャとして返されます。- 戻り値:
- 型のシグニチャを含む文字列。
- 関連項目:
- 型のシグニチャ
-
name
String name()
- 戻り値:
- この型のテキスト表現。
-
-