Package org.eclipse.xtext.resource.impl
Interface IsAffectedExtension
-
- All Known Subinterfaces:
INamesAreUniqueValidationHelper.ContextProvider
- All Known Implementing Classes:
DefaultUniqueNameContext.BaseContextProvider
,DefaultUniqueNameContext.BaseGlobalContextProvider
,DefaultUniqueNameContext.Container
,DefaultUniqueNameContext.ExportedFromResource
,DefaultUniqueNameContext.Global
,DefaultUniqueNameContext.VisibleContainers
@Beta public interface IsAffectedExtension
An extension that can be bound to mark resources as affected by a change. For example, if a validation depends on resources that are not directly linked but which need to be considered when they have been changed. Multiple such extensions can be bound by means of unique Guice binding annotations.- Since:
- 2.22
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
IsAffectedExtension.AllIsAffectedExtensions
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isAffected(java.util.Collection<IResourceDescription.Delta> deltas, IResourceDescription candidate, IResourceDescriptions context)
Answers true if the given candidate is impacted by the given delta beyond the default linking semantics.
-
-
-
Method Detail
-
isAffected
boolean isAffected(java.util.Collection<IResourceDescription.Delta> deltas, IResourceDescription candidate, IResourceDescriptions context)
Answers true if the given candidate is impacted by the given delta beyond the default linking semantics. If the default answered true, an extension is never asked, e.g. it cannot contradict the default implementation or other extensions by turning their yes into a no.
-
-