クラス
java.lang.reflect.Constructorの使用
-
Constructorを使用しているパッケージ パッケージ 説明 java.lang Javaプログラミング言語の設計にあたり基本的なクラスを提供します。java.lang.invoke java.lang.invoke
パッケージには、Javaコア・クラス・ライブラリおよび仮想マシンによって直接提供される動的言語サポートが含まれています。java.lang.reflect クラスとオブジェクトに関するリフレクト情報を取得するための、クラスとインタフェースを提供します。javax.management Java Management Extensionsのコア・クラスを提供します。javax.management.modelmbean ModelMBeanクラスの定義を提供します。jdk.dynalink.linker.support 言語ランタイムが、言語固有のオブジェクト・モデルを実装し、いくつかのクラスの基本的な実装とさまざまなユーティリティを提供することによってコンバージョンをより便利にするクラスが含まれています。 -
-
java.langでのConstructorの使用
Constructorを返すjava.langのメソッド 修飾子と型 メソッド 説明 Constructor<T>
Class. getConstructor(Class<?>... parameterTypes)
このClass
オブジェクトが表すクラスの指定されたpublicコンストラクタをリフレクトするConstructor
オブジェクトを返します。Constructor<?>[]
Class. getConstructors()
このClass
オブジェクトが表すクラスのすべてのpublicコンストラクタをリフレクトするConstructor
オブジェクトを格納している配列を返します。Constructor<T>
Class. getDeclaredConstructor(Class<?>... parameterTypes)
このClass
オブジェクトが表すクラスまたはインタフェースの指定されたコンストラクタをリフレクトするConstructor
オブジェクトを返します。Constructor<?>[]
Class. getDeclaredConstructors()
このClass
オブジェクトが表すクラスによって宣言されたすべてのコンストラクタをリフレクトするConstructor
オブジェクトの配列を返します。Constructor<?>
Class. getEnclosingConstructor()
このClass
オブジェクトが、コンストラクタ内のローカル・クラスまたは匿名クラスを表す場合は、基本となるクラスを直接囲むコンストラクタを表すConstructor
オブジェクトを返します。 -
java.lang.invokeでのConstructorの使用
Constructor型のパラメータを持つjava.lang.invokeのメソッド 修飾子と型 メソッド 説明 MethodHandle
MethodHandles.Lookup. unreflectConstructor(Constructor<?> c)
リフレクトされたコンストラクタのメソッド・ハンドルを生成します。 -
java.lang.reflectでの「コンストラクタ」の使用
型Constructorの引数を持つ型を返すjava.lang.reflectのメソッド 修飾子と型 メソッド 説明 TypeVariable<Constructor<T>>[]
Constructor. getTypeParameters()
GenericDeclaration
オブジェクトによって表されるジェネリック宣言で宣言された型変数を表すTypeVariable
オブジェクトの配列を宣言順に返します。 -
javax.managementでのConstructorの使用
Constructor型のパラメータを持つjavax.managementのコンストラクタ コンストラクタ 説明 MBeanConstructorInfo(String description, Constructor<?> constructor)
MBeanConstructorInfo
オブジェクトを構築します。 -
javax.management.modelmbeanでのConstructorの使用
Constructor型のパラメータを持つjavax.management.modelmbeanのコンストラクタ コンストラクタ 説明 ModelMBeanConstructorInfo(String description, Constructor<?> constructorMethod)
デフォルトの記述子でModelMBeanConstructorInfoオブジェクトを構築します。ModelMBeanConstructorInfo(String description, Constructor<?> constructorMethod, Descriptor descriptor)
ModelMBeanConstructorInfoオブジェクトを構築します。 -
jdk.dynalink.linker.supportでの「コンストラクタ」の使用
型Constructorのパラメータを持つjdk.dynalink.linker.supportのメソッド 修飾子と型 メソッド 説明 static MethodHandle
Lookup. unreflectConstructor(MethodHandles.Lookup lookup, Constructor<?> c)
MethodHandle
Lookup. unreflectConstructor(Constructor<?> c)
-