Eclipse Xtext - Extending

From DefaultRuntimeModule

EValidator.Registry.INSTANCE

EPackage.Registry.INSTANCE

IResourceServiceProvider.Registry.INSTANCE

 

Use User Class Extends: Function to Return Default Class Default Class Type
  Diagnostician bindDiagnostician() Cancelable
Diagnostician
  IFragmentProviderbindIFragmentProvider()DefaultFragment
Provider
  ITransientValueService bindITransientValueService()DefaultTransient
ValueService
  ILocationInFileProviderbindILocationInFileProvider()DefaultLocationIn
FileProvider
  IFormatterbindIFormatter()OneWhitespace
Formatter
  INodeModelFormatterbindINodeModelFormatter()DefaultNode
ModelFormatter
  ISerializerbindISerializer()Serializer
  ISemanticSequencerbindISemanticSequencer()Backtracking
SemanticSequencer
  IConcreteSyntaxValidatorbindConcreteSyntaxValidator() ConcreteSyntax
Validator
  IResourceFactorybindIResourceFactory()XtextResourceFactory
  ILinkingServicebindILinkingService()DefaultLinking
Service

provides:

IScope getScope(EObject context, EReference reference)

which gets a scope for a given node and reference.

IScopeProviderbindIScopeProvider()SimpleLocal
ScopeProvider

provides:

IScope getScope(Resource context, EReference reference, Predicate<IEObjectDescription> filter);

Similar to IScopeProvider above but adds filter

IGlobalScopeProvider bindIGlobalScopeProvider() ImportUriGlobal
ScopeProvider
  IQualifiedNameProviderbindIQualifiedNameProvider() SimpleNameProvider
  org.eclipse.xtext.linking.ILinkerbindILinker() LazyLinker
 

org.eclipse.xtext.conversion.
IValueConverterService

bindIValueConverterService() DefaultTerminal
Converters
  org.eclipse.xtext.parser.
ITokenToStringConverter
bindITokenToStringConverter() AntlrTokenToString
Converter
  org.eclipse.xtext.parser.
antlr.IPartialParsingHelper
bindIPartialParserHelper() PartialParsingHelper
  ITokenDefProvider bindITokenDefProvider() NullTokenDefProvider
  org.eclipse.xtext.parser.
IAstFactory
bindIAstFactory() org.eclipse.xtext.parser.
DefaultEcore
ElementFactory
  XtextResource bindXtextResource() LazyLinkingResource
  ResourceSet bindResourceSet() XtextResourceSet
  XtextResourceSet bindXtextResourceSet() SynchronizedXtext
ResourceSet
  IContainer.Manager bindIContainer$Manager() SimpleResource
Descriptions
BasedContainerManager
  Provider provideIEncodingProvider() IEncodingProvider
Dispatcher
  IEncodingProviderDispatcherDispatchingProvider x
  configureIResource
DescriptionsLiveScope
x x

Bindings

configure function class annotated with bound to
configureLinking
IScopeProvider
IScopeProvider LinkingScope
ProviderBinding
IScopeProvider
configureIResource
Descriptions
IResourceDescriptions x ResourceSet
BasedResource
Descriptions
configureRuntime
EncodingProvider
IEncodingProvider DispatchingProvider.
Runtime
IEncoding
Provider.Runtime
x IResourceDescriptionsNames.named
(ResourceDescriptions
Provider.
LIVE_SCOPE)
ResourceSet
BasedResource
Descriptions
configureGeneric
SemanticSequencer
ISemanticSequencer GenericSequencerBacktracking
SemanticSequencer
configureIResource
DescriptionsBuilderScope
IResourceDescriptions Names.named
(Resource
DescriptionsProvider.
NAMED_BUILDER_SCOPE)
ResourceSet
BasedResource
Descriptions

metadata block
see also: itemis blog
Correspondence about this page

This site may have errors. Don't use for critical systems.

Copyright (c) 1998-2023 Martin John Baker - All rights reserved - privacy policy.