Interface IExternalMetaTypesProviderService
-
- All Known Implementing Classes:
ExternalMetaTypesProviderService
public interface IExternalMetaTypesProviderService
Special service for accumulate of all external metaType
s getting from implementations ofIExternalMetaTypesProvider
. This class also provided special methods for creating index elements by accumulating contents.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Collection<Type>
getExternalTypes(org.eclipse.emf.ecore.resource.Resource context)
Gets all external meta types from registeredIExternalMetaTypesProvider
s, which will be available only in Built-In Module language.Collection<org.eclipse.xtext.resource.IEObjectDescription>
getExternalTypesDescription(org.eclipse.emf.ecore.resource.Resource context)
Gets index elements by result fromgetExternalTypes(Resource)
boolean
isExternalTypesAvailable()
Checks that there is registeredIExternalMetaTypesProvider
-
-
-
Method Detail
-
getExternalTypes
Collection<Type> getExternalTypes(org.eclipse.emf.ecore.resource.Resource context)
Gets all external meta types from registeredIExternalMetaTypesProvider
s, which will be available only in Built-In Module language. Meta type - is additional information about real V8 RuntimeTypeItem
, this information can only be used in documentation comment in Built-In Module language. Meta type provides information about methods and properties of real real V8 RuntimeTypeItem
. This information will be used only in design time for content-assist, validation in Built-in language editor. Each returningType
can have reference to usual types (not external types). No matter that returning type has or not containingResource
. Important:
- This method in large configuration will be called very often.
- Names (Russian and English) of the object should be unique.
- Parameters:
context
- special contextResource
for getting actualVersion
(seeIRuntimeVersionSupport.getRuntimeVersion(Resource)
), and resolving usual types (seeEcoreUtil.resolve(org.eclipse.emf.ecore.EObject, Resource)
), cannot benull
- Returns:
- all external types from registered
IExternalMetaTypesProvider
, which will be available only in Built-In Module language, nevernull
-
getExternalTypesDescription
Collection<org.eclipse.xtext.resource.IEObjectDescription> getExternalTypesDescription(org.eclipse.emf.ecore.resource.Resource context)
Gets index elements by result fromgetExternalTypes(Resource)
- Parameters:
context
- special context object for callgetExternalTypes(Resource)
, cannot benull
- Returns:
- index elements by result from
getExternalTypes(Resource)
, nevernull
-
isExternalTypesAvailable
boolean isExternalTypesAvailable()
Checks that there is registeredIExternalMetaTypesProvider
- Returns:
true
if registeredIExternalMetaTypesProvider
was found,false
otherwise
-
-