org.apache.commons.jocl
クラス ConstructorUtil
java.lang.Object
org.apache.commons.jocl.ConstructorUtil
- public class ConstructorUtil
- extends Object
Constructor に関連する雑多なユーティリティ機能です。
- バージョン:
- $Id: ConstructorUtil.java,v 1.1.1.1 2004/02/13 10:02:02 hioki Exp $
- 作成者:
- Rodney Waldhoff
- 翻訳者:
- 日置 聡
| クラス 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 を返します。
- パラメータ:
type - 返される Constructor を生成する対象となる(nullでない) Object の型
argTypes - Constructor のパラメータを示す(nullでない)型の配列
- 戻り値:
- 引数に該当する
Constructor 、該当する Constructor が見つからない場合には null
- 関連項目:
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 を使用して指定された 型 の新たなインスタンスを
渡された引数の型と値で生成します。
- パラメータ:
type - 生成する Object の型
argTypes - Constructor の引数を定義する(nullでない) Object の型
argValues - Constructor の引数の値を示す(nullでない)配列
- 戻り値:
Constructor と渡された引数の型と値を使用して生成された指定された 型 の新たなインスタンス
- 例外:
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