クラス
java.beans.IntrospectionExceptionの使用
-
java.beansでのIntrospectionExceptionの使用
修飾子と型メソッド説明static BeanInfo
Introspector.getBeanInfo
(Class<?> beanClass) Java Beanのイントロスペクションを行い、すべてのプロパティ、公開メソッド、イベントについて学習します。static BeanInfo
Introspector.getBeanInfo
(Class<?> beanClass, int flags) いくつかの制御フラグに従って、Java Beanのイントロスペクションを行い、すべてのプロパティ、公開されたメソッド、イベントについて学習します。static BeanInfo
Introspector.getBeanInfo
(Class<?> beanClass, Class<?> stopClass) Java Beanのイントロスペクションを行い、指定された「停止」ポイントに達するまで、プロパティ、公開されたメソッドを調べます。static BeanInfo
Introspector.getBeanInfo
(Class<?> beanClass, Class<?> stopClass, int flags) いくつかの制御flags
に従って、Java Beanのイントロスペクションを行い、指定されたstopClass
ポイントに達するまで、そのすべてのプロパティ、公開されたメソッド、イベントについて学習します。void
IndexedPropertyDescriptor.setIndexedReadMethod
(Method readMethod) インデックス付きプロパティ値の読込みに使用するメソッドを設定します。void
IndexedPropertyDescriptor.setIndexedWriteMethod
(Method writeMethod) インデックス付きプロパティ値の書込みに使用するメソッドを設定します。void
PropertyDescriptor.setReadMethod
(Method readMethod) プロパティ値の読込みに使用するメソッドを設定します。void
PropertyDescriptor.setWriteMethod
(Method writeMethod) プロパティ値の書込みに使用するメソッドを設定します。修飾子コンストラクタ説明EventSetDescriptor
(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String listenerMethodName) EventSetDescriptor
(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName) EventSetDescriptor
(Class<?> sourceClass, String eventSetName, Class<?> listenerType, String[] listenerMethodNames, String addListenerMethodName, String removeListenerMethodName, String getListenerMethodName) このコンストラクタは、文字列名を使って、ゼロからEventSetDescriptorを作成します。EventSetDescriptor
(String eventSetName, Class<?> listenerType, MethodDescriptor[] listenerMethodDescriptors, Method addListenerMethod, Method removeListenerMethod) EventSetDescriptor
(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod) EventSetDescriptor
(String eventSetName, Class<?> listenerType, Method[] listenerMethods, Method addListenerMethod, Method removeListenerMethod, Method getListenerMethod) このコンストラクタは、java.lang.reflect.Methodオブジェクトとjava.lang.Classオブジェクトを使って、ゼロからEventSetDescriptorを作成します。IndexedPropertyDescriptor
(String propertyName, Class<?> beanClass) このコンストラクタは、インデックス付きのアクセスと配列アクセスのどちらでも、アクセス用メソッドgetFooおよびsetFooを使って、標準Java規約に準拠したプロパティのIndexedPropertyDescriptorを構築します。IndexedPropertyDescriptor
(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName, String indexedReadMethodName, String indexedWriteMethodName) このコンストラクタは、単純なプロパティ名と、プロパティの読み込みおよび書込み用のメソッド名(インデックス付きメソッドと非インデックス付きメソッドの両方)を引数に取ります。IndexedPropertyDescriptor
(String propertyName, Method readMethod, Method writeMethod, Method indexedReadMethod, Method indexedWriteMethod) このコンストラクタは、単純なプロパティ名と、プロパティの読み込みおよび書込み用のMethodオブジェクトを引数に取ります。PropertyDescriptor
(String propertyName, Class<?> beanClass) アクセス用メソッドgetFooおよびsetFooを使って、標準のJava規約に準拠しているプロパティのPropertyDescriptorを構築します。PropertyDescriptor
(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName) このコンストラクタは、単純なプロパティ名と、プロパティの読み込みおよび書込み用のメソッド名を引数に取ります。PropertyDescriptor
(String propertyName, Method readMethod, Method writeMethod) このコンストラクタは、単純なプロパティ名と、プロパティの読み込みおよび書込み用のMethodオブジェクトを引数に取ります。