[jboss-jira] [JBoss JIRA] Updated: (JBRULES-315) Support to Expression and Nested Accessors
Edson Tirelli (JIRA)
jira-events at lists.jboss.org
Tue Jun 12 15:51:11 EDT 2007
[ http://jira.jboss.com/jira/browse/JBRULES-315?page=all ]
Edson Tirelli updated JBRULES-315:
----------------------------------
Summary: Support to Expression and Nested Accessors (was: map lookup access for fields)
Description:
Would be nice to have a feature like:
Map(this.foo == bar) as being accessed as: map.get("foo")
This can work as in the ClassFieldInspector it can tell that there is no "getFoo" method, but there is a get(xxx) method - hence it can pass in the key as the field name (as a string).
A limitation may be that we want to use a prev bound variable as a key, but I can't see how that will work short of adding new syntax (this currently stays within the current grammar which is good - and looking up fields via a String key is more then useful !).
was:
Would be nice to have a feature like:
Map(foo == bar) as being accessed as: map.get("foo")
This can work as in the ClassFieldInspector it can tell that there is no "getFoo" method, but there is a get(xxx) method - hence it can pass in the key as the field name (as a string).
A limitation may be that we want to use a prev bound variable as a key, but I can't see how that will work short of adding new syntax (this currently stays within the current grammar which is good - and looking up fields via a String key is more then useful !).
> Support to Expression and Nested Accessors
> ------------------------------------------
>
> Key: JBRULES-315
> URL: http://jira.jboss.com/jira/browse/JBRULES-315
> Project: JBoss Rules
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Reporter: Michael Neale
> Assigned To: Edson Tirelli
> Priority: Minor
> Fix For: 4.0.0.MR3
>
>
> Would be nice to have a feature like:
> Map(this.foo == bar) as being accessed as: map.get("foo")
> This can work as in the ClassFieldInspector it can tell that there is no "getFoo" method, but there is a get(xxx) method - hence it can pass in the key as the field name (as a string).
> A limitation may be that we want to use a prev bound variable as a key, but I can't see how that will work short of adding new syntax (this currently stays within the current grammar which is good - and looking up fields via a String key is more then useful !).
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list