Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 326896 - [ast] Make Visitor extensible
Summary: [ast] Make Visitor extensible
Status: CLOSED FIXED
Alias: None
Product: OCL
Classification: Modeling
Component: Core (show other bugs)
Version: 3.0.0   Edit
Hardware: PC Windows Vista
: P3 normal (vote)
Target Milestone: M7   Edit
Assignee: OCL Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-04 04:31 EDT by Ed Willink CLA
Modified: 2013-05-20 11:37 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ed Willink CLA 2010-10-04 04:31:58 EDT
Visitor currently has a built-in set of per-type dispatches, which cannot be extended.

a) provide a default dispatch e.g. for OclAny that can be overridden by extension functionality.

b) provide an EcoreSwitch-based dispatch in the Visitor for service of this default.
Comment 1 Ed Willink CLA 2012-04-30 15:51:36 EDT
The visitors have been adjusted allowing QVTc and QVTr to extend.

The main adjustment justs supports direct inheritance rather than delegation; much simpler. For the rare case of a multiply inheriting language, a delegation can be performed by the multiply inheriting language.
Comment 2 Ed Willink CLA 2013-05-20 11:37:03 EDT
CLOSED after a year in the RESOLVED state.