From 29bbd8a2cd4deb9038f01c16d54ffa937917cfaa Mon Sep 17 00:00:00 2001 From: Eduardo Julian Date: Wed, 29 Jun 2022 00:34:27 -0400 Subject: Better syntax for getting/setting fields when defining JVM classes. --- stdlib/source/test/lux/ffi.jvm.lux | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) (limited to 'stdlib/source/test') diff --git a/stdlib/source/test/lux/ffi.jvm.lux b/stdlib/source/test/lux/ffi.jvm.lux index f22bb70c1..6edf7e3ac 100644 --- a/stdlib/source/test/lux/ffi.jvm.lux +++ b/stdlib/source/test/lux/ffi.jvm.lux @@ -381,11 +381,11 @@ ("private" value java/lang/Long) ... Constructors ("public" [] (new self [value java/lang/Long]) [] - (:= ::value value)) + (/.set value value)) ... Methods (test/TestInterface0 [] (actual0 self []) java/lang/Long - ::value)) + (/.get value))) (/.import test/TestClass0 "[1]::[0]" @@ -396,13 +396,13 @@ ("private" value java/lang/Long) ... Constructors ("public" [] (new self [value java/lang/Long]) [] - (:= ::value value)) + (/.set value value)) ... Methods (test/TestInterface1 [] (actual1 self [throw? java/lang/Boolean]) java/lang/Long "throws" [java/lang/Throwable] (if (not (/.of_boolean throw?)) - ::value + (/.get value) (panic! "YOLO")))) (/.import test/TestClass1 @@ -428,12 +428,12 @@ ("private" value a) ... Constructors ("public" [] (new self [value a]) [] - (:= ::value value)) + (/.set value value)) ... Methods ((test/TestInterface3 a) [] (actual3 self []) a - ::value)) + (/.get value))) (/.import (test/TestClass3 a) "[1]::[0]" @@ -513,12 +513,12 @@ ("private" value9 a) ... Constructors ("public" [] (new self [value a]) [] - (:= ::value9 value)) + (/.set value9 value)) ... Methods ("public" (set_actual9 self [value a]) void - (:= ::value9 value)) + (/.set value9 value)) ("public" (get_actual9 self []) a - ::value9)) + (/.get value9))) (/.import (test/TestClass9 a) "[1]::[0]" @@ -531,7 +531,7 @@ ("public" value10 a) ... Constructors ("public" [] (new self [init a]) [] - (:= ::value10 init))) + (/.set value10 init))) (/.import (test/TestClass10 a) "[1]::[0]" @@ -543,7 +543,7 @@ ("public" value11 a) ... Constructors ("public" [] (new self [init a]) [] - (:= ::value11 init))) + (/.set value11 init))) (/.import (test/TestClass11 a) "[1]::[0]" -- cgit v1.2.3