Is it possible to specify a required type (e.g. interface) for a JvmTypeReference in an Xtext grammar?
Example
Instantiation:
('new' type=JvmTypeReference (params=Params)?)
;
Where type=JvmTypeReference
must be an instanceof
some specified class.
You could implement a reference to a JvmConstructor!
You should use an XimportSection in your grammar then you can write a scope provider where you can scope directly to any constructor.