Class ExternalMetaTypesProviderService
- java.lang.Object
-
- com._1c.g5.v8.dt.bsl.types.extension.ExternalMetaTypesProviderService
-
- All Implemented Interfaces:
IExternalMetaTypesProviderService
public class ExternalMetaTypesProviderService extends Object implements IExternalMetaTypesProviderService
Default implementation ofIExternalMetaTypesProviderService
-
-
Constructor Summary
Constructors Constructor Description ExternalMetaTypesProviderService()
-
Method Summary
All Methods Instance Methods Concrete 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 fromIExternalMetaTypesProviderService.getExternalTypes(Resource)
boolean
isExternalTypesAvailable()
Checks that there is registeredIExternalMetaTypesProvider
-
-
-
Method Detail
-
getExternalTypes
public Collection<Type> getExternalTypes(org.eclipse.emf.ecore.resource.Resource context)
Description copied from interface:IExternalMetaTypesProviderService
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.
- Specified by:
getExternalTypes
in interfaceIExternalMetaTypesProviderService
- 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
public Collection<org.eclipse.xtext.resource.IEObjectDescription> getExternalTypesDescription(org.eclipse.emf.ecore.resource.Resource context)
Description copied from interface:IExternalMetaTypesProviderService
Gets index elements by result fromIExternalMetaTypesProviderService.getExternalTypes(Resource)
- Specified by:
getExternalTypesDescription
in interfaceIExternalMetaTypesProviderService
- Parameters:
context
- special context object for callIExternalMetaTypesProviderService.getExternalTypes(Resource)
, cannot benull
- Returns:
- index elements by result from
IExternalMetaTypesProviderService.getExternalTypes(Resource)
, nevernull
-
isExternalTypesAvailable
public boolean isExternalTypesAvailable()
Description copied from interface:IExternalMetaTypesProviderService
Checks that there is registeredIExternalMetaTypesProvider
- Specified by:
isExternalTypesAvailable
in interfaceIExternalMetaTypesProviderService
- Returns:
true
if registeredIExternalMetaTypesProvider
was found,false
otherwise
-
-