Package org.eclipse.xtext.build
Class BuildContext
- java.lang.Object
-
- org.eclipse.xtext.build.BuildContext
-
public class BuildContext extends java.lang.Object- Since:
- 2.9
-
-
Constructor Summary
Constructors Constructor Description BuildContext(org.eclipse.xtext.xbase.lib.Functions.Function1<? super org.eclipse.emf.common.util.URI,? extends IResourceServiceProvider> resourceServiceProviderProvider, XtextResourceSet resourceSet, IndexState oldState, IResourceClusteringPolicy clusteringPolicy, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleancanHandle(org.eclipse.emf.common.util.URI uri)Return true, if the given URI can be handled by an available language.<T> java.lang.Iterable<T>executeClustered(java.lang.Iterable<org.eclipse.emf.common.util.URI> uris, org.eclipse.xtext.xbase.lib.Functions.Function1<? super org.eclipse.emf.ecore.resource.Resource,? extends T> operation)Run the given logic on all uris with clustering enabled.org.eclipse.xtext.util.CancelIndicatorgetCancelIndicator()IResourceClusteringPolicygetClusteringPolicy()IndexStategetOldState()IResourceServiceProvidergetResourceServiceProvider(org.eclipse.emf.common.util.URI uri)Get the resource service provider for this URI.XtextResourceSetgetResourceSet()
-
-
-
Constructor Detail
-
BuildContext
public BuildContext(org.eclipse.xtext.xbase.lib.Functions.Function1<? super org.eclipse.emf.common.util.URI,? extends IResourceServiceProvider> resourceServiceProviderProvider, XtextResourceSet resourceSet, IndexState oldState, IResourceClusteringPolicy clusteringPolicy, org.eclipse.xtext.util.CancelIndicator cancelIndicator)
-
-
Method Detail
-
executeClustered
public <T> java.lang.Iterable<T> executeClustered(java.lang.Iterable<org.eclipse.emf.common.util.URI> uris, org.eclipse.xtext.xbase.lib.Functions.Function1<? super org.eclipse.emf.ecore.resource.Resource,? extends T> operation)Run the given logic on all uris with clustering enabled.
-
canHandle
protected boolean canHandle(org.eclipse.emf.common.util.URI uri)
Return true, if the given URI can be handled by an available language.
-
getResourceServiceProvider
public IResourceServiceProvider getResourceServiceProvider(org.eclipse.emf.common.util.URI uri)
Get the resource service provider for this URI.
-
getResourceSet
public XtextResourceSet getResourceSet()
-
getOldState
public IndexState getOldState()
-
getClusteringPolicy
public IResourceClusteringPolicy getClusteringPolicy()
-
getCancelIndicator
public org.eclipse.xtext.util.CancelIndicator getCancelIndicator()
-
-