org.apache.commons.jocl
クラス ConstructorUtil
java.lang.Object
org.apache.commons.jocl.ConstructorUtil
- public class ConstructorUtil
- extends Object
Constructor に関連する雑多なユーティリティ機能です。
Miscellaneous {@link Constructor} related utility functions.
- バージョン:
- $Id: ConstructorUtil.java,v 1.1.1.1 2004/02/13 10:02:02 hioki Exp $
- 作成者:
- Rodney Waldhoff
- 翻訳者:
- 日置 聡
- 翻訳状況:
- 初稿(校正者募集中)
- 翻訳更新日:
- 2003/08/31
| クラス java.lang.Object から継承したメソッド |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ConstructorUtil
public ConstructorUtil()
getConstructor
public static Constructor getConstructor(Class type,
Class[] argTypes)
- このメソッドに渡された引数から
Constructor を返し、該当する
Constructor が見つからない場合には null を返します。
Returns a {@link Constructor} for the given method signature, or null
if no such Constructor can be found.
- パラメータ:
type - 返される Constructor を生成する対象となる(nullでない) Object の型
the (non-null) type of {@link Object} the returned {@link Constructor} should create
argTypes - Constructor のパラメータを示す(nullでない)型の配列
a non-null array of types describing the parameters to the {@link Constructor}.
- 戻り値:
- 引数に該当する
Constructor 、該当する Constructor が見つからない場合には null
a {@link Constructor} for the given method signature, or null
if no such Constructor can be found.
- 関連項目:
invokeConstructor(java.lang.Class, java.lang.Class[], java.lang.Object[])
invokeConstructor
public static Object invokeConstructor(Class type,
Class[] argTypes,
Object[] argValues)
throws InstantiationException,
IllegalAccessException,
InvocationTargetException
Constructor を使用して指定された 型 の新たなインスタンスを
渡された引数の型と値で生成します。
Creates a new instance of the specified type
using a {@link Constructor} described by the given parameter types
and values.
- パラメータ:
type - 生成する Object の型
the type of {@link Object} to be created
argTypes - Constructor の引数を定義する(nullでない) Object の型
a non-null array of types describing the parameters to the {@link Constructor}.
argValues - Constructor の引数の値を示す(nullでない)配列
a non-null array containing the values of the parameters to the {@link Constructor}.
- 戻り値:
Constructor と渡された引数の型と値を使用して生成された指定された 型 の新たなインスタンス
a new instance of the specified type
using a {@link Constructor} described by the given parameter types
and values.
- 例外:
InstantiationException
IllegalAccessException
InvocationTargetException
このドキュメントは、Ja-Jakartaにより訳されました。 コメントがある場合は report@jajakarta.orgまでお願いします。
Translated into Japanese by jajakarta.org. The original page is here.
Copyright (c) 2002-2003 - Apache Software Foundation