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.Object
Builder instance that is bound to a single running build.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IncrementalBuilder.InternalStatefulIncrementalBuilder.URIBasedFileSystemAccessFactory
Creates anfile system access
that is backed by aURIConverter
.
-
Constructor Summary
Constructors Constructor Description InternalStatefulIncrementalBuilder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected URIBasedFileSystemAccess
createFileSystemAccess(IResourceServiceProvider serviceProvider, org.eclipse.emf.ecore.resource.Resource resource)
protected void
generate(org.eclipse.emf.ecore.resource.Resource resource, BuildRequest request, Source2GeneratedMapping newMappings)
Generate code for the given resourceprotected BuildContext
getContext()
protected Indexer
getIndexer()
protected OperationCanceledManager
getOperationCanceledManager()
protected BuildRequest
getRequest()
protected IResourceServiceProvider
getResourceServiceProvider(org.eclipse.emf.ecore.resource.Resource resource)
protected IResourceDescription
getSerializableResourceDescription(IResourceDescription description)
Return a new Serializable resource description from aIResourceDescription
.protected void
installSourceLevelURIs(java.util.List<org.eclipse.emf.common.util.URI> uris)
protected boolean
isLoadedFromStorage(org.eclipse.emf.ecore.resource.Resource resource)
protected boolean
isSource(org.eclipse.emf.common.util.URI uri)
Return true if the given uri must be loaded from source.IncrementalBuilder.Result
launch()
protected void
setContext(BuildContext context)
protected void
setRequest(BuildRequest request)
protected void
storeBinaryResource(org.eclipse.emf.ecore.resource.Resource resource, IFileSystemAccessExtension3 fileSystemAccess)
Stores resource as a binary.protected void
unloadResource(org.eclipse.emf.common.util.URI uri)
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.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.
-
-
-
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 benull
condition
- 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 benull
fileSystemAccess
- 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)
-
-