01: /*
02: * MethodInvoker3.java --
03: *
04: * tcljava/tests/signature/MethodInvoker3.java
05: *
06: * Copyright (c) 1998 by Moses DeJong
07: *
08: * See the file "license.terms" for information on usage and redistribution
09: * of this file, and for a DISCLAIMER OF ALL WARRANTIES.
10: *
11: * RCS: @(#) $Id: MethodInvoker3.java,v 1.1 1999/05/10 04:09:09 dejong Exp $
12: *
13: */
14:
15: package tests.signature;
16:
17: import java.util.*;
18:
19: public class MethodInvoker3 {
20:
21: //instance methods
22:
23: public String call(Hashtable h) {
24: return "Hashtable";
25: }
26:
27: public String call(Vector v) {
28: return "Vector";
29: }
30:
31: public String call(Hashtable2 h) {
32: return "Hashtable2";
33: }
34:
35: public String call(Vector2 v) {
36: return "Vector2";
37: }
38:
39: public String call(Vector v, Hashtable h) {
40: return "Vector+Hashtable";
41: }
42:
43: public String call(Vector v, Vector v2) {
44: return "Vector+Vector";
45: }
46:
47: public static class Hashtable2 extends Hashtable {
48: }
49:
50: public static class Hashtable3 extends Hashtable2 {
51: }
52:
53: public static class Vector2 extends Vector {
54: }
55:
56: public static Hashtable getHashtable() {
57: return new Hashtable();
58: }
59:
60: public static Hashtable2 getHashtable2() {
61: return new Hashtable2();
62: }
63:
64: public static Hashtable3 getHashtable3() {
65: return new Hashtable3();
66: }
67:
68: public static Vector getVector() {
69: return new Vector();
70: }
71:
72: public static Vector2 getVector2() {
73: return new Vector2();
74: }
75:
76: //test methods
77:
78: private void private_method() {
79: }
80:
81: protected void protected_method() {
82: }
83:
84: void package_method() {
85: }
86:
87: public void public_method() {
88: }
89:
90: public static void static_method() {
91: }
92:
93: private void test_method() {
94: }
95:
96: public void test_method(int i) {
97: }
98:
99: }
|