blob: 3d11f75f6613c9c092cfdd7d0e57c5b77b07b665 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
|
import java.applet.Applet;
import java.util.Arrays;
import netscape.javascript.JSObject;
public class JSToJFuncParam extends Applet {
public void init() {
String initStr = "JSToJFuncParam applet initialized.";
System.out.println(initStr);
}
public void intParam(int i) {
System.out.println("intParam "+i);
}
public void doubleParam(double d) {
System.out.println("doubleParam "+d);
}
public void floatParam(float f) {
System.out.println("floatParam "+f);
}
public void longParam(long l) {
System.out.println("longParam "+l);
}
public void booleanParam(boolean b) {
System.out.println("booleanParam "+b);
}
public void charParam(char c) {
System.out.println("charParam "+c);
}
public void byteParam(byte b) {
System.out.println("byteParam "+b);
}
public void charArrayParam(char[] ca) {
System.out.println("charArrayParam "+Arrays.toString(ca));
}
public void StringParam(String s) {
System.out.println("StringParam "+s);
}
public void IntegerParam(Integer p) {
System.out.println("IntegerParam "+p);
}
public void DoubleParam(Double p) {
System.out.println("DoubleParam "+p);
}
public void FloatParam(Float p) {
System.out.println("FloatParam "+p);
}
public void LongParam(Long p) {
System.out.println("LongParam "+p);
}
public void BooleanParam(Boolean p) {
System.out.println("BooleanParam "+p);
}
public void CharacterParam(Character p) {
System.out.println("CharacterParam "+p);
}
public void ByteParam(Byte p) {
System.out.println("ByteParam "+p);
}
public void StringIntMixedParam(String[] s) {
System.out.println("StringIntMixedParam "+Arrays.toString(s));
}
public void DummyObjectArrayParam(DummyObject[] ca) {
System.out.println("DummyObjectArrayParam "+Arrays.toString(ca));
}
public void JSObjectParam(JSObject car){
Integer mph = (Integer)car.getMember("mph");
String color = (String)car.getMember("color");
System.out.println("JSObjectParam "+mph+", "+color);
}
public void writeAfterTest(){
System.out.println("afterTests");
}
public class DummyObject {
private String str;
public DummyObject(String s) {
this.str = s;
}
public void setStr(String s) {
this.str = s;
}
public String toString() {
return str;
}
}
public DummyObject getNewDummyObject(String str){
return new DummyObject(str);
}
}
|