130 Commits

Author SHA1 Message Date
Robert Muir
231268c89d remove outdated TODO 2016-06-06 21:04:59 -04:00
Jack Conradson
6dace47c1f Reverted S-node design change. 2016-06-06 17:59:39 -07:00
Robert Muir
8db9a971e5 enable test 2016-06-06 20:30:42 -04:00
Robert Muir
2852e82ab9 add def iteration over arrays 2016-06-06 20:07:32 -04:00
Robert Muir
d331f8768e implement dynamic case for iterables 2016-06-06 19:41:37 -04:00
Jack Conradson
aeaf39f36d Added a for each stub node for a target type of def. 2016-06-06 16:07:12 -07:00
Jack Conradson
a088d367f7 More comments. 2016-06-06 15:58:56 -07:00
Jack Conradson
f897342296 Updated package info documentation. 2016-06-06 15:34:51 -07:00
Jack Conradson
9a78f6955b Added foreach for array types. 2016-06-06 15:25:09 -07:00
Jack Conradson
a4ffaa6e7a Working iterable foreach with tests. 2016-06-06 13:53:31 -07:00
Jack Conradson
b2e648dfde Implementation of iterable. 2016-06-06 12:33:25 -07:00
Jack Conradson
260b0fd40f Stubbed foreach node. 2016-06-06 10:49:40 -07:00
Jack Conradson
0c9174decc Merge branch 'master' into each 2016-06-06 09:23:01 -07:00
Uwe Schindler
c0a3a20071 painless: Add support for the new Java 9 MethodHandles#arrayLength() factory (see https://bugs.openjdk.java.net/browse/JDK-8156915) 2016-06-03 23:35:11 +02:00
Jack Conradson
9a0d0d7cff Fixed a grammar mistake in a comment. 2016-06-02 15:30:11 -07:00
Robert Muir
b5393ce55e Improve painless compile-time exceptions 2016-06-02 18:23:47 -04:00
Jack Conradson
b6e1429760 Merge branch 'master' into each 2016-05-31 09:36:04 -07:00
Robert Muir
2d1eb89aef improve date api for expressions/painless fields 2016-05-31 09:32:33 -04:00
Jack Conradson
d1f4e2ef04 Merge branch 'master' into each 2016-05-30 16:22:14 -07:00
Jack Conradson
f5be0982d9 Added initial infrastructure to allow for each to be made. 2016-05-27 17:41:31 -07:00
Jack Conradson
2d8030f09f Added foreach in grammar. 2016-05-27 13:50:38 -07:00
Robert Muir
aa53285448 add java.time packages to painless whitelist 2016-05-27 15:07:27 -04:00
Robert Muir
3f06d9f3b8 Merge pull request #18600 from rmuir/new_script_exception
replace ScriptException with a better one
2016-05-26 17:51:34 -04:00
Jack Conradson
cde83e363a Add an update script equivalent test. 2016-05-26 13:16:22 -07:00
Robert Muir
f037807117 replace ScriptException with a better one 2016-05-26 11:43:29 -04:00
Jack Conradson
eefcafd831 Add method reference stub to Painless. 2016-05-25 10:34:21 -07:00
Ryan Ernst
82ae65bbb5 Tests: Make score tests unit tests
This change simply removes the need for single node tests from score
tests.
2016-05-24 19:53:50 -07:00
Robert Muir
a5d0ccf50b painless: add trap tests 2016-05-23 23:36:40 -04:00
Robert Muir
0a9c036c3e Merge branch 'master' into painless_more_whitelisting 2016-05-23 20:35:44 -04:00
Jack Conradson
1424f09c02 Remove Painless grammar ambiguities.
Closes #18531
2016-05-23 16:39:52 -07:00
Robert Muir
a56a9cb818 improve painless whitelist coverage of java api 2016-05-23 19:35:28 -04:00
Lee Hinman
fdfd2a2f18 Remove ScriptMode class in favor of boolean true/false
This removes the ScriptMode class entirely, which was an enum with two
options (ON and OFF) which essentially boiled down to true and false.
Now the boolean values are used instead.
2016-05-20 15:01:30 -06:00
Jack Conradson
b156438957 Proxy box method to use valueOf. 2016-05-20 11:22:18 -07:00
Jack Conradson
0e24ed49e6 Use the build-in valueOf method instead of the custom one. 2016-05-20 11:13:43 -07:00
Jack Conradson
d836194095 Fixed tests and added a comment to the box method. 2016-05-20 11:04:09 -07:00
Jack Conradson
2b793c1e06 Fix boxing. 2016-05-20 10:38:06 -07:00
Robert Muir
c0eb813e10 Merge branch 'clean' into whitelist_cleanup 2016-05-20 10:59:13 -04:00
Robert Muir
ce9b36590a simplify tree node use of compiler settings 2016-05-20 09:36:09 -04:00
Robert Muir
b3c71c1e3a improve style for these constants 2016-05-20 08:42:29 -04:00
Uwe Schindler
7bc91c00d9 More elegant way to force class initialization 2016-05-20 14:12:15 +02:00
Uwe Schindler
6205f79554 Remove Definitions's copy-ctor; fix RuntimeClass to be unmodifiable
Please note: The maps inside the pirvate singleton instance of Defininition are no longer unmodifiable, but nothing from the outside can modify it! All private :-)
2016-05-20 14:03:46 +02:00
Uwe Schindler
4ffa92c7c1 Remove the Definition instance passed around everywhere 2016-05-20 12:35:08 +02:00
Uwe Schindler
91f4bba042 Make Definition's public API completely static.
TODO: Remove Definition arguments everywhere and hide INSTANCE field!
2016-05-20 11:22:03 +02:00
Uwe Schindler
f5fc60ac67 Add utility type constant 2016-05-20 11:05:40 +02:00
Jack Conradson
4e454439bb Fixed bugs in comparison with Def. Fixed may tests.n 2016-05-20 02:04:38 -07:00
Uwe Schindler
87ab39613d more constants 2016-05-20 10:56:50 +02:00
Uwe Schindler
82aed08301 Restore constants as static final (first step) 2016-05-20 10:48:41 +02:00
Jack Conradson
64e2ef5807 Removed transforms. No user-facing boxing. 2016-05-19 23:38:14 -07:00
Jack Conradson
3962553551 Removed user-facing boxing. 2016-05-19 18:51:55 -07:00
Uwe Schindler
cfe555d216 move unused @SuppressWarnings one level up 2016-05-20 00:46:05 +02:00