77 Commits

Author SHA1 Message Date
Renaud Pawlak
4ae7651595 various fixes for J4TS 2017-04-25 12:41:24 +02:00
Renaud Pawlak
a7c2d902bb fixed #261 2017-04-21 20:41:19 +02:00
Renaud Pawlak
e81d9c972d fixed #260 2017-04-21 18:46:03 +02:00
Renaud Pawlak
e453178ab2 fixed #251 2017-04-21 11:19:21 +02:00
Renaud Pawlak
8e46b70beb fixed #253 2017-04-21 10:53:46 +02:00
Renaud Pawlak
39305dff87 fixed #254 2017-04-21 10:39:46 +02:00
Renaud Pawlak
746ed2a6c3 support for basic reflection without J4TS
- Class.forName()
- Class.newInstance(...)
2017-04-21 10:25:59 +02:00
Renaud Pawlak
f04583b7cb moved jsweet.util.Globals to jsweet.util.Lang
- keep but deprecate old API
- code cleaning/formatting
- test for #245
2017-04-20 14:49:52 +02:00
Renaud Pawlak
c8db41fb3f fixed #249
- added runtime check to use functions and object indifferently
- better support to assigned expressions
2017-04-20 09:03:56 +02:00
Renaud Pawlak
143fd3f185 fix #243, fix #247, fix #248 (+ tests) 2017-04-19 15:41:55 +02:00
Renaud Pawlak
04b3c5782f fix #246 (+test) 2017-04-19 12:19:14 +02:00
Renaud Pawlak
3ceb41c140 add a test to ensure fix #243 (was ok in master) 2017-04-19 11:03:06 +02:00
Renaud Pawlak
c043089142 fixed support for debug mode 2017-04-19 10:52:18 +02:00
Louis Grignon
059b7c0cb5 added tests for instanceOf on interfaces 2017-04-13 08:19:46 +02:00
Renaud Pawlak
46e5dcf9cb fix #240 + update tests 2017-04-11 07:40:33 +02:00
Renaud Pawlak
821ad80c26 fix #132
- fix "newClass" issue
- use class simple name when possible
- add a test
2017-04-11 06:47:13 +02:00
Renaud Pawlak
71b8e898d1 various small extension-related enhancements + bug fix
- fix conditional and assignment bug
- adapter API cleaning
- allow the definition of type mapping that erase the type parameters
- basic native support for Java readers/inputstreams/locales (+test)
- fix overload issue with some native types
2017-04-10 11:09:38 +02:00
Renaud Pawlak
efd865787e support for maps with object keys 2017-04-05 16:18:00 +02:00
Renaud Pawlak
d5a59847dd apply substitution on field initialization 2017-04-05 11:51:36 +02:00
Renaud Pawlak
0c74dba470 add a test for the debug mode 2017-04-04 18:07:24 +02:00
Pap Lőrinc
c291ba12b6 Fixed parsing of empty S.*.println 2017-03-31 11:35:37 +03:00
Renaud Pawlak
52e3430675 better support for functional types 2017-03-30 15:51:13 +02:00
Renaud Pawlak
df50b2aec6 improved functional types support 2017-03-30 11:19:05 +02:00
Renaud Pawlak
9175b8a5a8 improved java model support + more native support 2017-03-24 10:50:13 +01:00
Renaud Pawlak
7a3505613b adapt test for @Replace (and test around replacement) 2017-03-18 07:52:01 +01:00
Renaud Pawlak
77d384751c support for @Replace (with markers) 2017-03-17 13:56:49 +01:00
Renaud Pawlak
2ebb0b2f35 better public API for adapters (and extended elements) 2017-03-15 09:15:54 +01:00
Renaud Pawlak
f6d236c7bc native support for Map.entrySet 2017-03-10 17:54:01 +01:00
Renaud Pawlak
66c9df1c4d more built-in support for Java APIs 2017-03-10 16:22:54 +01:00
Renaud Pawlak
1d6c6cc4a9 add native support for java.lang.Stack 2017-03-10 12:02:08 +01:00
Renaud Pawlak
071b35e390 adapt class/constructor comments to conform to JSDoc 2017-02-23 14:29:50 +01:00
Renaud Pawlak
e991a3fe97 add an option to set a header file 2017-02-23 11:32:45 +01:00
Renaud Pawlak
41a5a8f033 do not delegate jsdoc adaptation 2017-02-22 11:53:36 +01:00
Renaud Pawlak
f560af79d8 added includes/excludes filters for command-line launcher + test 2017-02-21 11:30:46 +01:00
Renaud Pawlak
6238b6f97a revert over-engineered/typed API + test + change adapter life cycle 2017-02-21 09:25:45 +01:00
Renaud Pawlak
3294131670 fix issue #220 (+test) 2017-02-20 13:48:14 +01:00
Renaud Pawlak
b6588b37e7 fix #221 2017-02-20 13:12:40 +01:00
Renaud Pawlak
f51bd15cae Add support for annotation adapters
- annotation adapters can be used to change the way the Java AST is
annotated in a chainable and composable way
- add a simple extension using annotations (issue #219)
- add a test
2017-02-20 12:32:06 +01:00
Louis Grignon
283fc93d26 add #222 test 2017-02-12 15:22:40 +01:00
Renaud Pawlak
4ceffd4172 fix regression + test for $super 2017-02-09 09:49:12 +01:00
lgrignon
5e0c9aa680 method with special characters 2017-02-09 08:27:38 +01:00
lgrignon
fc85e93a88 method names with invalid chars 2017-02-08 19:23:53 +01:00
Renaud Pawlak
b0f2a047a4 fixed special characters in field names 2017-02-07 13:53:19 +01:00
Renaud Pawlak
e2eff87bac better support for cloning and field initialization
- clone behaves much like Java clone
- fields are initialized with Java-like default values (null, 0) instead
of undefined
2017-02-07 12:11:34 +01:00
Renaud Pawlak
8feea10338 add an instanceof test for superclasses 2017-02-07 09:06:58 +01:00
lgrignon
cbc5fe7339 fixed forbidden chars in @Name 2017-02-05 15:30:25 +01:00
lgrignon
8041fba8b2 integrated PR https://github.com/cincheo/jsweet/pull/217 fixing https://github.com/cincheo/jsweet/issues/216 2017-02-04 17:36:45 +01:00
Renaud Pawlak
ec44c6e9a1 small adjustments 2017-02-03 18:25:03 +01:00
Renaud Pawlak
028bc72312 MAJOR: fixed various complex issues with overloading and Java APIs
- more extensive support of overloading (including distinction when
possible between types that were not distinguishable so far -- for
instance double, float, and int, or String and char)
- better support of Java APIs (arrays, collections)
2017-02-02 18:57:10 +01:00
Renaud Pawlak
9d34ac3962 support for toArray(targetArray) 2017-02-01 17:34:01 +01:00