Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 352027 - Missing and incorrect operators
Summary: Missing and incorrect operators
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: EDT (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P1 normal (vote)
Target Milestone: ---   Edit
Assignee: Paul Harmon CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-13 16:28 EDT by Matt Heitz CLA
Modified: 2017-02-23 14:14 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Heitz CLA 2011-07-13 16:28:16 EDT
Some operators from RBD are missing: substring and dynamic access.

New operators for EDT need to be added: <<, >>, >>>, ~, and the ternary if-then-else.  ~ is a unary operator.

Operation.NULL_CONCAT has the wrong value.  It's set to "?::".  Remove the second colon.
Comment 1 Matt Heitz CLA 2011-07-13 17:06:59 EDT
This one is really important, blocking some of my work defining the types.
Comment 2 Matt Heitz CLA 2011-07-14 07:53:35 EDT
Paul, I changed my mind about array access.  We should have an operator for it too.
Comment 3 Matt Heitz CLA 2011-07-27 16:10:33 EDT
I just fixed the value of Operation.NULL_CONCAT and added the following fields:
	String ARRAY_ACCESS = "[]";
	String SUBSTRING = "[:";
	String DYNAMIC_ACCESS = "['";

In org.eclipse.edt.mof.egl, ArrayAccess, DynamicAccess, and SubstringAccess now have a getOperation() method.  They each use a method called resolveOperation(), to be implemented by Paul.

I also added an operation field to those three types in Expressions.egl .
Comment 4 Matt Heitz CLA 2011-07-27 16:11:25 EDT
The new operators <<, >>, >>>, ~, and the ternary if-then-else will not be included in 0.7 so they won't be implemented under this bug.  We'll open a new bug for them when the time comes.
Comment 5 Matt Heitz CLA 2011-09-15 14:00:59 EDT
This is done.