01: /*
02: * Tester1Listener.java --
03: *
04: * This is an event listener interface that test various capability
05: * of the AdaptorGen class.
06: *
07: * Copyright (c) 1997 Sun Microsystems, Inc.
08: *
09: * See the file "license.terms" for information on usage and
10: * redistribution of this file, and for a DISCLAIMER OF ALL
11: * WARRANTIES.
12: *
13: * RCS: @(#) $Id: Tester1Listener.java,v 1.1 1999/05/10 04:09:00 dejong Exp $
14: */
15:
16: package tcl.lang;
17:
18: import java.util.*;
19:
20: /*
21: * This is an event listener interface that test various capability of
22: * the AdaptorGen class. AdaptorGen should be able to handle an
23: * interface whose methods may take any arguments, return any type of
24: * value and throw arbitrary exceptions.
25: */
26:
27: public interface Tester1Listener extends EventListener {
28:
29: /*
30: * A very conventional event method.
31: */
32:
33: public void method0(Tester1Event eventObj);
34:
35: /*
36: * A method with a non-conventional parameter.
37: */
38:
39: public void method1(boolean p0);
40:
41: /*
42: * A method with many non-conventional parameters.
43: */
44:
45: public void method2(boolean p0, byte p1, char p2, double p3,
46: float p4, int p5, long p6, short p7, String p8);
47:
48: /*
49: * A method with a checked exception.
50: */
51:
52: public void method3(Tester1Event eventObj) throws SecurityException;
53:
54: /*
55: * A more complex method with checked exceptions.
56: */
57:
58: public Vector method4(Tester1Event eventObj, boolean b, int i,
59: Object o) throws SecurityException, NullPointerException,
60: NumberFormatException, IllegalAccessError;
61:
62: /*
63: * Methods that return values.
64: */
65:
66: public boolean method_boolean(Tester1Event eventObj);
67:
68: public byte method_byte(Tester1Event eventObj);
69:
70: public char method_char(Tester1Event eventObj);
71:
72: public double method_double(Tester1Event eventObj);
73:
74: public float method_float(Tester1Event eventObj);
75:
76: public int method_int(Tester1Event eventObj);
77:
78: public long method_long(Tester1Event eventObj);
79:
80: public short method_short(Tester1Event eventObj);
81:
82: public Object method_Object(Tester1Event eventObj);
83:
84: public String method_String(Tester1Event eventObj);
85:
86: public Vector method_Vector(Tester1Event eventObj);
87:
88: } // end Tester1Listener
|