01: package tests.signature;
02:
03: import tcl.lang.TclObject;
04: import tcl.lang.Interp;
05:
06: public class PassTclObject {
07:
08: // Get the string value for a TclObject, used to test
09: // passing of a TclObject to a Java method.
10:
11: public static String getTclObjectString(TclObject to) {
12: return to.toString();
13: }
14:
15: // These next two methods also test passing of a TclObject
16: // but with a signature that is ambiguous.
17:
18: public static String getTclObjectString2(TclObject to) {
19: return to.toString();
20: }
21:
22: public static String getTclObjectString2(Integer i) {
23: return "Integer";
24: }
25:
26: }
|