|
@@ -2187,21 +2187,12 @@ let generate con =
|
|
|
|
|
|
let basic = con.basic in
|
|
let basic = con.basic in
|
|
(* make the basic functions in java *)
|
|
(* make the basic functions in java *)
|
|
- let wait = mk_class_field "wait" (TFun([], basic.tvoid)) true Ast.null_pos (Method MethNormal) [] in
|
|
|
|
- wait.cf_meta <- (Meta.Overload,[],wait.cf_pos) :: wait.cf_meta;
|
|
|
|
- (try
|
|
|
|
- let i64 = mt_to_t_dyn (get_type gen (["haxe"],"Int64")) in
|
|
|
|
- wait.cf_overloads <- [
|
|
|
|
- mk_class_field "wait" (TFun(["timeout",false,i64], basic.tvoid)) true Ast.null_pos (Method MethNormal) [];
|
|
|
|
- mk_class_field "wait" (TFun(["timeout",false,i64; "nanos",false,basic.tint], basic.tvoid)) true Ast.null_pos (Method MethNormal) [];
|
|
|
|
- ]
|
|
|
|
- with | TypeNotFound _ -> ());
|
|
|
|
let basic_fns =
|
|
let basic_fns =
|
|
[
|
|
[
|
|
mk_class_field "equals" (TFun(["obj",false,t_dynamic], basic.tbool)) true Ast.null_pos (Method MethNormal) [];
|
|
mk_class_field "equals" (TFun(["obj",false,t_dynamic], basic.tbool)) true Ast.null_pos (Method MethNormal) [];
|
|
mk_class_field "toString" (TFun([], basic.tstring)) true Ast.null_pos (Method MethNormal) [];
|
|
mk_class_field "toString" (TFun([], basic.tstring)) true Ast.null_pos (Method MethNormal) [];
|
|
mk_class_field "hashCode" (TFun([], basic.tint)) true Ast.null_pos (Method MethNormal) [];
|
|
mk_class_field "hashCode" (TFun([], basic.tint)) true Ast.null_pos (Method MethNormal) [];
|
|
- wait;
|
|
|
|
|
|
+ mk_class_field "wait" (TFun([], basic.tvoid)) true Ast.null_pos (Method MethNormal) [];
|
|
mk_class_field "notify" (TFun([], basic.tvoid)) true Ast.null_pos (Method MethNormal) [];
|
|
mk_class_field "notify" (TFun([], basic.tvoid)) true Ast.null_pos (Method MethNormal) [];
|
|
mk_class_field "notifyAll" (TFun([], basic.tvoid)) true Ast.null_pos (Method MethNormal) [];
|
|
mk_class_field "notifyAll" (TFun([], basic.tvoid)) true Ast.null_pos (Method MethNormal) [];
|
|
] in
|
|
] in
|