-
Notifications
You must be signed in to change notification settings - Fork 11
/
OtherClass.hx
48 lines (25 loc) · 945 Bytes
/
OtherClass.hx
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
package test.script;
import test.native.NativeGroup;
class OtherClass {
public var name:String;
public var age:Int = -1;
public function new(name:String = 'Paul', ?age:Int) {
this.name = name;
if (age != null) this.age = age;
} //new
public function getDoubleName():String {
return name + ' $name';
} //getDoubleName
public static function nativeGroupClass1IsClass1() {
return new Class1().isClass1();
} //nativeGroupClass1IsClass1
public static function nativeGroupClass2IsClass1() {
return new Class2().isClass1();
} //nativeGroupClass2IsClass1
public static function nativeGroupClass1StaticMethod1() {
return Class1.staticMethod1();
} //nativeGroupClass1StaticMethod1
public static function nativeGroupClass2StaticMethod2() {
return Class2.staticMethod2();
} //nativeGroupClass1StaticMethod2
} //OtherClass