Package org.eclipse.xtext.build
Class IncrementalBuilder.InternalStatefulIncrementalBuilder
- java.lang.Object
-
- org.eclipse.xtext.build.IncrementalBuilder.InternalStatefulIncrementalBuilder
-
- Enclosing class:
- IncrementalBuilder
public static class IncrementalBuilder.InternalStatefulIncrementalBuilder extends java.lang.ObjectBuilder instance that is bound to a single running build.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classIncrementalBuilder.InternalStatefulIncrementalBuilder.URIBasedFileSystemAccessFactoryCreates anfile system accessthat is backed by aURIConverter.
-
Constructor Summary
Constructors Constructor Description InternalStatefulIncrementalBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected URIBasedFileSystemAccesscreateFileSystemAccess(IResourceServiceProvider serviceProvider, org.eclipse.emf.ecore.resource.Resource resource)protected voidgenerate(org.eclipse.emf.ecore.resource.Resource resource, BuildRequest request, Source2GeneratedMapping newMappings)Generate code for the given resourceprotected BuildContextgetContext()protected IndexergetIndexer()protected OperationCanceledManagergetOperationCanceledManager()protected BuildRequestgetRequest()protected IResourceServiceProvidergetResourceServiceProvider(org.eclipse.emf.ecore.resource.Resource resource)protected IResourceDescriptiongetSerializableResourceDescription(IResourceDescription description)Return a new Serializable resource description from aIResourceDescription.protected voidinstallSourceLevelURIs(java.util.List<org.eclipse.emf.common.util.URI> uris)protected booleanisLoadedFromStorage(org.eclipse.emf.ecore.resource.Resource resource)protected booleanisSource(org.eclipse.emf.common.util.URI uri)Return true if the given uri must be loaded from source.IncrementalBuilder.Resultlaunch()protected voidsetContext(BuildContext context)protected voidsetRequest(BuildRequest request)protected voidstoreBinaryResource(org.eclipse.emf.ecore.resource.Resource resource, IFileSystemAccessExtension3 fileSystemAccess)Stores resource as a binary.protected voidunloadResource(org.eclipse.emf.common.util.URI uri)protected voidunloadResource(org.eclipse.emf.common.util.URI uri, java.util.function.Predicate<org.eclipse.emf.ecore.resource.Resource> condition)Unload the resource with the given uri if it satisfies the given condition.protected booleanvalidate(org.eclipse.emf.ecore.resource.Resource resource)Validate the resource and return true, if the build should proceed for the current state.
-
-
-
Method Detail
-
unloadResource
protected void unloadResource(org.eclipse.emf.common.util.URI uri)
-
unloadResource
protected void unloadResource(org.eclipse.emf.common.util.URI uri, java.util.function.Predicate<org.eclipse.emf.ecore.resource.Resource> condition)Unload the resource with the given uri if it satisfies the given condition.- Parameters:
uri- the URI, must not benullcondition- the condition, must not benull- Since:
- 2.28
-
launch
public IncrementalBuilder.Result launch()
-
getSerializableResourceDescription
protected IResourceDescription getSerializableResourceDescription(IResourceDescription description)
Return a new Serializable resource description from aIResourceDescription.- Parameters:
description- the serializable description, must not benull- Returns:
- the new serializable resource description, never
null - Since:
- 2.26
-
getOperationCanceledManager
protected OperationCanceledManager getOperationCanceledManager()
- Since:
- 2.28
-
getIndexer
protected Indexer getIndexer()
- Since:
- 2.28
-
getResourceServiceProvider
protected IResourceServiceProvider getResourceServiceProvider(org.eclipse.emf.ecore.resource.Resource resource)
- Since:
- 2.28
-
validate
protected boolean validate(org.eclipse.emf.ecore.resource.Resource resource)
Validate the resource and return true, if the build should proceed for the current state.
-
generate
protected void generate(org.eclipse.emf.ecore.resource.Resource resource, BuildRequest request, Source2GeneratedMapping newMappings)Generate code for the given resource
-
isLoadedFromStorage
protected boolean isLoadedFromStorage(org.eclipse.emf.ecore.resource.Resource resource)
- Since:
- 2.28
-
installSourceLevelURIs
protected void installSourceLevelURIs(java.util.List<org.eclipse.emf.common.util.URI> uris)
- Since:
- 2.28
-
isSource
protected boolean isSource(org.eclipse.emf.common.util.URI uri)
Return true if the given uri must be loaded from source.- Since:
- 2.28
-
storeBinaryResource
protected void storeBinaryResource(org.eclipse.emf.ecore.resource.Resource resource, IFileSystemAccessExtension3 fileSystemAccess)Stores resource as a binary.- Parameters:
resource- resource to store, must not benullfileSystemAccess- the file system access, must not benull- Since:
- 2.28
-
createFileSystemAccess
protected URIBasedFileSystemAccess createFileSystemAccess(IResourceServiceProvider serviceProvider, org.eclipse.emf.ecore.resource.Resource resource)
-
getContext
protected BuildContext getContext()
-
setContext
protected void setContext(BuildContext context)
-
getRequest
protected BuildRequest getRequest()
-
setRequest
protected void setRequest(BuildRequest request)
-
-