Andy Clement
fd8220dea0
changed to [] from {} for projection and selection (including first and last selection). addresses the problem of clashes with template prefix/suffix
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1007 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-15 23:54:52 +00:00
Andy Clement
3e60a76e6b
SPR-5673: more intelligence in TemplateAwareExpressionParser. Supports prefix/suffix escaping and nesting of prefixes/suffixes
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@1000 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-14 21:26:56 +00:00
Andy Clement
dce025e40f
more tests - about 82% coverage now. focused on testing reflection helper since it is rather complex. some asserts also added.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@989 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-13 20:51:52 +00:00
Andy Clement
8a980b8364
More tests. First pass on messages review.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@979 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-12 16:45:00 +00:00
Keith Donald
64de1981a3
made conversion service pluggable
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@975 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-10 20:52:16 +00:00
Keith Donald
8df73198f6
activated DefaultConversionService in EL, linking convert and EL
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@974 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-10 20:47:04 +00:00
Andy Clement
073b1556ce
Fixed StandardTypeLocator to only know about java.lang.* out of the box. Doc fixes related to that.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@967 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-10 03:20:09 +00:00
Andy Clement
b46afe7e39
finally some comparator logic that makes sense :)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@966 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-10 02:21:25 +00:00
Andy Clement
75d26cdb9d
More tests, corrections in standard comparator, more helper methods in StandardEvaluationContext.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@965 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-10 00:03:53 +00:00
Andy Clement
9f5676a4b1
more tests, minor fixes. some findbugs issues addressed.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@963 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-09 22:03:38 +00:00
Andy Clement
f899a72e1c
Changed signature of convertValue() to keep the Sun compiler happy
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@960 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-09 16:00:53 +00:00
Andy Clement
cfa9cdf035
More tests and some fixes. Also created tests based on the documentation examples.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@952 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-09 01:43:07 +00:00
Andy Clement
29d27f3687
Removed unnecessary code. Increased test coverage from 70>75% - still some way to go
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@946 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-08 04:50:43 +00:00
Andy Clement
a6fa167d5e
Corrected exception message inserts
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@945 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-08 04:49:47 +00:00
Andy Clement
0374aacec1
Improving test coverage, more language consistency
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@931 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-06 19:04:04 +00:00
Andy Clement
7cc791ae9e
More test coverage for the expression AST
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@927 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-04 01:04:31 +00:00
Andy Clement
5eb884a7db
objects flowing around in expression evaluation are now TypedValue's - these carry generics info, used for conversions.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@925 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-03 23:39:14 +00:00
Andy Clement
2fb46e48c0
design change - no longer surfacing typeDescriptor through property accessor. conversion done internally in property write() code
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@914 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-01 23:27:49 +00:00
Andy Clement
c289840f9a
initial typeDescriptor awareness in the EL. some basic testing of using GenericConversionService
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@911 50f2f4bb-b051-0410-bef5-90022cba6387
2009-04-01 21:38:51 +00:00
Andy Clement
78c1d085d5
Indexed objects (arrays/maps/lists) now settable
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@879 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-30 19:40:20 +00:00
Andy Clement
ec411f271b
Indexed objects (arrays/maps/lists) now settable
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@878 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-30 19:40:09 +00:00
Mark Pollack
6ac7a300c8
Fix SPEL tests when using maven. With the maven test runner expression.spel.SetValueTests is run before expression.spel.EvaluationTests. The order is reversed in eclipse/spring-build. Static variables are modifed in SetValueTests that cause EvaluationTests to fail if it is run first. Make a simple fix so SetValueTests uses a local evaluation context variable instead of a static variable.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@848 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-27 16:05:38 +00:00
Keith Donald
0a06a95d68
set value tests
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@813 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-24 19:55:39 +00:00
Keith Donald
199f6943d1
pruned bean references support as it was not used
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@809 50f2f4bb-b051-0410-bef5-90022cba6387
2009-03-23 21:33:15 +00:00
Juergen Hoeller
b9f25bc30b
polishing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@643 50f2f4bb-b051-0410-bef5-90022cba6387
2009-02-16 01:43:49 +00:00
Juergen Hoeller
905c8fe509
polishing
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@625 50f2f4bb-b051-0410-bef5-90022cba6387
2009-02-13 09:11:03 +00:00
Juergen Hoeller
793bf07941
revised expression parser API design
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@619 50f2f4bb-b051-0410-bef5-90022cba6387
2009-02-12 23:03:58 +00:00
Andy Clement
559d321b50
remove files
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@396 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-13 01:38:21 +00:00
Andy Clement
4236dc7743
new files
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@395 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-13 01:36:48 +00:00
Andy Clement
a0a95ca5b7
Refactored package structure and made some getValue() methods generic
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@390 50f2f4bb-b051-0410-bef5-90022cba6387
2008-12-12 23:07:08 +00:00
Juergen Hoeller
e016a80f63
fixed javadoc errors
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@347 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-28 13:56:30 +00:00
Juergen Hoeller
a0dfb69aaa
Java 5 code style
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@341 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-27 00:27:52 +00:00
Juergen Hoeller
0b0163e026
Java 5 code style
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@331 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-25 01:29:54 +00:00
Juergen Hoeller
a5253bec7f
EL container integration; support for contextual objects; removal of deprecated Spring 2.0 functionality; Java 5 code style
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@305 50f2f4bb-b051-0410-bef5-90022cba6387
2008-11-20 02:10:53 +00:00
Andy Clement
5519df3491
map access tests added
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@105 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-17 16:20:40 +00:00
Andy Clement
6fa37bf29b
removing: initializers/processors/in operator
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@104 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-17 15:23:15 +00:00
Andy Clement
f497d6af62
renamed operator IS to INSTANCEOF, may yet delete..
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@103 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-16 17:20:03 +00:00
Andy Clement
0000c6f260
bean references removed, no more @(context:beanname)
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@102 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-16 17:13:31 +00:00
Andy Clement
3f1ba9d2a5
removed lambda functions, local function and local variable references
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@101 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-16 17:00:16 +00:00
Andy Clement
44927db29a
date literal removed
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@100 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-16 16:50:00 +00:00
Andy Clement
51f2b59ea4
Changed so that existing getters/setters are used before direct field access is attempted
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@99 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-16 00:00:06 +00:00
Andy Clement
39c262e5a0
Removing functionality. Removed expression list support, cannot say (foo();bar()) any more
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@98 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-15 21:55:11 +00:00
Andy Clement
3f75a45b23
Removing functionality. Removed soundslike/distanceto/like operators
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@97 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-15 21:43:38 +00:00
Andy Clement
10d45b2001
Final commit before the great 'stripdown'. Used clover to determine coverage and added tests as necessary.
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@96 50f2f4bb-b051-0410-bef5-90022cba6387
2008-09-15 20:14:36 +00:00
Andy Clement
5cdeaa9644
added test and behaviour for calling a java method with incorrect number of arguments
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@95 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 22:43:17 +00:00
Andy Clement
2d4e2685e9
fixed up FunctionReference a bit - so it can call varargs methods
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@94 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 22:36:25 +00:00
Andy Clement
7694700a33
new function invocation tests for normal and error behaviour
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@93 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 22:36:00 +00:00
Andy Clement
c034d6b840
changed vis of arg conversion code so function calls can use it
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@92 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 22:35:21 +00:00
Andy Clement
5550af651c
fixed damage caused by code formatter
...
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@91 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 22:34:33 +00:00
Andy Clement
9295e94878
added support for Integer > Float conversion.
...
Moved some tests from EvaluationTests into OperatorTests.
Fleshed out OperatorTests to verify type promotions for mixed type operands.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@90 50f2f4bb-b051-0410-bef5-90022cba6387
2008-08-18 17:54:01 +00:00