[jboss-jira] [JBoss JIRA] Closed: (JBRULES-556) Support additional predicate syntaxes
Edson Tirelli (JIRA)
jira-events at jboss.com
Wed Jan 24 17:14:08 EST 2007
[ http://jira.jboss.com/jira/browse/JBRULES-556?page=all ]
Edson Tirelli closed JBRULES-556.
---------------------------------
Fix Version/s: 3.1-m1
(was: 3.1-m2)
Resolution: Done
I changed predicate working throughout the whole compiler and core of the engine.
Now, predicates don't have an attached variable binding anymore (it means I REMOVED some attributes from the predicate classes). It means the following is now valid:
Cheese( $type : type, ( <predicate code> ) )
The old syntax is supported for backward compatibility, but it is just syntax sugar at the parser level:
Cheese( $type: type -> ( <predicate code> ) )
The above will generate the exactly same descriptors as the previous example, i.e., a field binding descriptor + a predicate descriptor.
Just to make the difference clear, in 3.0, the above syntax would generate only a predicate descriptor with an attached declaration, but would NOT generate the field binding descriptor.
As a consequence, we now can do:
MyClass( $a : a, $b : b, ( $a.myMethod( $b ) ) )
> Support additional predicate syntaxes
> -------------------------------------
>
> Key: JBRULES-556
> URL: http://jira.jboss.com/jira/browse/JBRULES-556
> Project: JBoss Rules
> Issue Type: Feature Request
> Security Level: Public(Everyone can see)
> Components: Reteoo, Manual, Drl Parser/Builder
> Affects Versions: 3.1-m1
> Reporter: Edson Tirelli
> Assigned To: Edson Tirelli
> Fix For: 3.1-m1
>
>
> Implement support to additional predicate syntax, making "->" not mandatory anymore.
> Pattern( $var1 : attr1, $var2 : attr2, ( $var1.blabla() != $var2.xyz() ) )
--
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