01: package jaxx.introspection;
02:
03: import jaxx.reflect.*;
04:
05: /** Mirrors the class <code>java.beans.EventSetDescriptor</code>. JAXX uses its own introspector rather than the built-in
06: * <code>java.beans.Introspector</code> so that it can introspect {@link jaxx.reflect.ClassDescriptor},
07: * not just <code>java.lang.Class</code>.
08: */
09: public class JAXXEventSetDescriptor extends JAXXFeatureDescriptor {
10: private MethodDescriptor addListenerMethod;
11: private MethodDescriptor removeListenerMethod;
12: private MethodDescriptor[] listenerMethods;
13:
14: public JAXXEventSetDescriptor(ClassDescriptor classDescriptor,
15: String name, MethodDescriptor addListenerMethod,
16: MethodDescriptor removeListenerMethod,
17: MethodDescriptor[] listenerMethods) {
18: super (classDescriptor, name);
19: this .addListenerMethod = addListenerMethod;
20: this .removeListenerMethod = removeListenerMethod;
21: this .listenerMethods = listenerMethods;
22: }
23:
24: public MethodDescriptor getAddListenerMethod() {
25: return addListenerMethod;
26: }
27:
28: public MethodDescriptor getRemoveListenerMethod() {
29: return removeListenerMethod;
30: }
31:
32: public MethodDescriptor[] getListenerMethods() {
33: return listenerMethods;
34: }
35: }
|