Package com._1c.g5.v8.dt.bsl.resource
Class BslResource
- java.lang.Object
-
- org.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
- org.eclipse.emf.common.notify.impl.NotifierImpl
-
- org.eclipse.emf.ecore.resource.impl.ResourceImpl
-
- org.eclipse.xtext.resource.XtextResource
-
- org.eclipse.xtext.linking.lazy.LazyLinkingResource
-
- org.eclipse.xtext.resource.persistence.StorageAwareResource
-
- org.eclipse.xtext.resource.DerivedStateAwareResource
-
- com._1c.g5.v8.dt.bsl.resource.BslResource
-
- All Implemented Interfaces:
org.eclipse.emf.common.notify.Notifier
,org.eclipse.emf.ecore.resource.Resource
,org.eclipse.emf.ecore.resource.Resource.Internal
,org.eclipse.xtext.resource.IBatchLinkableResource
,org.eclipse.xtext.resource.ISynchronizable<BslResource>
public class BslResource extends org.eclipse.xtext.resource.DerivedStateAwareResource implements org.eclipse.xtext.resource.IBatchLinkableResource, org.eclipse.xtext.resource.ISynchronizable<BslResource>
SpecialDerivedStateAwareResource
for Bsl language
More light creating/deleting diagnostic error message
Special processing error for "semicolon"
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
BslResource.CustomEAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>
-
Nested classes/interfaces inherited from class org.eclipse.xtext.linking.lazy.LazyLinkingResource
org.eclipse.xtext.linking.lazy.LazyLinkingResource.CyclicLinkingException, org.eclipse.xtext.linking.lazy.LazyLinkingResource.DiagnosticMessageContext
-
Nested classes/interfaces inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl
org.eclipse.emf.ecore.resource.impl.ResourceImpl.ContentsEList<E extends Object & org.eclipse.emf.ecore.EObject>, org.eclipse.emf.ecore.resource.impl.ResourceImpl.ModificationTrackingAdapter
-
Nested classes/interfaces inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EScannableAdapterList
-
Nested classes/interfaces inherited from interface org.eclipse.emf.ecore.resource.Resource
org.eclipse.emf.ecore.resource.Resource.Diagnostic, org.eclipse.emf.ecore.resource.Resource.Factory, org.eclipse.emf.ecore.resource.Resource.Internal, org.eclipse.emf.ecore.resource.Resource.IOWrappedException
-
-
Field Summary
Fields Modifier and Type Field Description protected Set<org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode>>
resolving
protected Set<String>
unresolving
-
Fields inherited from class org.eclipse.xtext.resource.DerivedStateAwareResource
fullyInitialized, isInitializing
-
Fields inherited from class org.eclipse.xtext.resource.persistence.StorageAwareResource
UNRESOLVABLE_FRAGMENT
-
Fields inherited from class org.eclipse.xtext.linking.lazy.LazyLinkingResource
CYCLIC_LINKING_DECTECTION_COUNTER_LIMIT, cyclicLinkingDectectionCounterLimit, UNRESOLVEABLE_PROXIES_KEY
-
Fields inherited from class org.eclipse.xtext.resource.XtextResource
isUpdating, operationCanceledManager, OPTION_ENCODING, OPTION_FORMAT, OPTION_RESOLVE_ALL, OPTION_SERIALIZATION_OPTIONS
-
Fields inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl
contents, defaultDeleteOptions, defaultLoadOptions, defaultSaveOptions, intrinsicIDToEObjectMap, isLoaded, isLoading, isModified, modificationTrackingAdapter, resourceSet, timeStamp, unloadingContents, uri
-
Fields inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
-
Fields inherited from interface org.eclipse.emf.ecore.resource.Resource
OPTION_CIPHER, OPTION_LINE_DELIMITER, OPTION_LINE_DELIMITER_UNSPECIFIED, OPTION_SAVE_ONLY_IF_CHANGED, OPTION_SAVE_ONLY_IF_CHANGED_FILE_BUFFER, OPTION_SAVE_ONLY_IF_CHANGED_MEMORY_BUFFER, OPTION_ZIP, RESOURCE__CONTENTS, RESOURCE__ERRORS, RESOURCE__IS_LOADED, RESOURCE__IS_MODIFIED, RESOURCE__IS_TRACKING_MODIFICATION, RESOURCE__RESOURCE_SET, RESOURCE__TIME_STAMP, RESOURCE__URI, RESOURCE__WARNINGS
-
-
Constructor Summary
Constructors Constructor Description BslResource()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
acquireLocalResolveCrossReferencLock()
Acquire read lock for local resolve cross reference.void
acquireUpdateLock()
Acquire read lock for update operation of resource.protected void
addSyntaxErrors()
protected void
clearErrorsAndWarnings()
protected org.eclipse.emf.ecore.resource.Resource.Diagnostic
createDiagnostic(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode> triple, org.eclipse.xtext.diagnostics.DiagnosticMessage message)
protected void
doLinking()
protected void
doLoad(InputStream inputStream, Map<?,?> options)
protected void
doUnload()
org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter>
eAdapters()
protected org.eclipse.emf.common.notify.Adapter[]
eBasicAdapterArray()
protected boolean
eBasicHasAdapters()
<Result> Result
execute(org.eclipse.xtext.util.concurrent.IUnitOfWork<Result,? super BslResource> unit)
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject>
getContents()
IBslValidationContributor.ContextHolderAdapter
getContextHolder()
Gets the validation context holder adapter if presentprotected List<org.eclipse.emf.ecore.resource.Resource.Diagnostic>
getDiagnosticList(org.eclipse.xtext.diagnostics.DiagnosticMessage message)
org.eclipse.emf.ecore.EObject
getEObject(String uriFragment)
protected org.eclipse.emf.ecore.EObject
getEObject(String uriFragment, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode> triple)
Source code gets fromLazyLinkingResource#getEObject(String uriFragment, Triple
for replace collectiontriple) resolving
to the thread safe variantprotected org.eclipse.emf.ecore.EObject
getEObject(List<String> uriFragmentPath)
Returns the object based on the fragment path as a list of Strings.protected org.eclipse.emf.ecore.EObject
getEObjectForURIFragmentRootSegment(String uriFragmentRootSegment)
org.eclipse.xtext.util.CancelIndicator
getGlobalResourceOperationCancelIndicator()
Gets the external cancel indicator for this resource.org.eclipse.emf.common.notify.Adapter
getLanguageSuppressionContext()
Gets the language validation suppression context adapterint
getLastUpdateContentShift()
Gets difference between new added text and replace text length in update operation for moduleint
getLastUpdatePosition()
Gets offset in the module for begin of last modificationObject
getLock()
List<Method>
getMethod(CaseInsensitiveString name)
Gets methods fromModule
by nameMethod
getReparseMethod()
Gets last reparsing method fromModule
org.eclipse.emf.ecore.EObject
getSourceEObject(String uriFragment)
GetsEObject
from resource byURI.fragment()
without installing lazy proxyURI
for the resource itemsprotected Set<String>
getUnresolvableURIFragments()
String
getURIFragmentByContainer(org.eclipse.emf.ecore.EObject eObject)
Gets fragment of the uri forEObject
without usingIFragmentProvider
protected org.eclipse.emf.ecore.EObject
handleCyclicResolution(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode> triple)
void
installDerivedState(boolean preIndexingPhase)
void
installProxiesForBlock(Block block)
protected void
installTypeState(Module module, org.eclipse.xtext.util.CancelIndicator monitor)
Install type system for BSL moduleboolean
isDeepAnalysing()
Checks that resource needs deep analyze processing.boolean
isLinkedBatch()
Checks that system of type, cross reference serializer and building types of contextDef was endedboolean
isLocalResolveCrossReference()
Checks that resolve cross reference forgetReparseMethod()
have been doneboolean
isMultiThreadProcessing()
Checks that resource processing in multi threadboolean
isOnlyMethodReparse()
boolean
isResolveCrossReference()
Checks that resolve cross reference for all resource have been donestatic boolean
isSingleThreadMode()
Checks if the single thread mode flag is enabledvoid
linkBatched(org.eclipse.xtext.util.CancelIndicator monitor)
void
localResolveCrossReference(org.eclipse.xtext.util.CancelIndicator cancelIndicator)
Resolve cross reference for onlygetReparseMethod()
void
releaseLocalResolveCrossReferenceLock()
Releases read lock for local resolve cross reference SeeacquireLocalResolveCrossReferencLock()
void
releaseUpdateLock()
Releases read lock forupdate operation of resource.protected void
removeDiagnostic(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode> triple)
void
reparse(String newContent)
void
resetGlobalResourceOperationCancelIndicator()
Removes current previously installed cancel indicatorstatic void
resetSingleThreadMode()
Cleans the single thread mode flag, if anyvoid
resolveImportedNames(org.eclipse.xtext.util.CancelIndicator monitor)
Resolves imported namesvoid
resolveLazyCrossReferences(org.eclipse.xtext.util.CancelIndicator mon)
void
setContextHolder(IBslValidationContributor.ContextHolderAdapter contextHolderAdapter)
Sets the validation context holder adaptervoid
setDeepAnalysis(boolean isDeepAnalysis)
Sets that resource needs deep analyze.void
setGlobalResourceOperationCancelIndicator(org.eclipse.xtext.util.CancelIndicator cancelIndicator)
Sets the external cancel indicator for this resource.void
setLanguageSuppressionContext(org.eclipse.emf.common.notify.Adapter languageSuppressionContext)
Sets the language validation suppression context adaptervoid
setMultiThreadProcessing(boolean multiThreadProcessing)
Sets that resource processing in multi threadstatic void
setSingleThreadMode()
Sets the single thread mode flagvoid
skipCachedMethods()
Skips all cachedMethod
s of resourcevoid
update(int offset, int replacedTextLength, String newText)
protected void
updateInternalState(org.eclipse.xtext.parser.IParseResult oldParseResult, org.eclipse.xtext.parser.IParseResult newParseResult)
-
Methods inherited from class org.eclipse.xtext.resource.DerivedStateAwareResource
clearInternalState, discardDerivedState, doDiscardDerivedState, doGetContents, getUnloadingContents, getURIFragmentRootSegment, isFullyInitialized, isInitializing, setDerivedStateComputer, setFullyInitialized, updateInternalState
-
Methods inherited from class org.eclipse.xtext.resource.persistence.StorageAwareResource
getPortableURIs, getResourceDescription, getResourceStorageFacade, isLoadedFromStorage, load, loadFromStorage, setIsLoadedFromStorage, setResourceDescription
-
Methods inherited from class org.eclipse.xtext.linking.lazy.LazyLinkingResource
addLazyProxyInformation, clearLazyProxyInformation, createAndAddDiagnostic, createAndAddDiagnostic, createDiagnosticMessage, createDiagnosticMessageContext, doResolveLazyCrossReference, getDiagnosticMessageProvider, getEncoder, getLazyProxyInformation, getLazyProxyInformation, getLinkingHelper, getLinkingService, getReferences, hasLazyProxyInformation, isEagerLinking, isPotentialLazyCrossReference, isUnresolveableProxyCacheable, markUnresolvable, removeLazyProxyInformation, resolveLazyCrossReference, setDiagnosticMessageProvider, setEagerLinking, setEncoder, setLinkingHelper, setLinkingService
-
Methods inherited from class org.eclipse.xtext.resource.XtextResource
addSyntaxDiagnostic, basicGetEObject, createReader, doSave, getCache, getConcreteSyntaxValidator, getEncoding, getEntryPoint, getFragmentProvider, getLanguageName, getLinker, getModificationStamp, getParser, getParseResult, getResourceServiceProvider, getSerializer, getUnloader, getURIFragment, isValidationDisabled, reattachModificationTracker, relink, setCache, setEncodingFromOptions, setEntryPoint, setFragmentProvider, setInjectedParser, setLanguageName, setLinker, setModificationStamp, setParser, setParseResult, setResourceServiceProvider, setSerializer, setUnloader, setValidationDisabled, unload, validateConcreteSyntax
-
Methods inherited from class org.eclipse.emf.ecore.resource.impl.ResourceImpl
addModificationTrackingAdapters, attached, attachedHelper, basicSetResourceSet, createModificationTrackingAdapter, delete, detached, detachedHelper, getAllContents, getAllProperContents, getAllProperContents, getDefaultURIConverter, getEObjectByID, getErrors, getIDForEObject, getIntrinsicIDToEObjectMap, getResourceSet, getTimeStamp, getURI, getURIConverter, getWarnings, handleLoadResponse, handleSaveResponse, isAttachedDetachedHelperRequired, isContentZipEntry, isLoaded, isLoading, isModified, isTrackingModification, load, mergeMaps, newContentZipEntry, removeModificationTrackingAdapters, save, save, saveOnlyIfChangedWithFileBuffer, saveOnlyIfChangedWithMemoryBuffer, setIntrinsicIDToEObjectMap, setLoaded, setModified, setTimeStamp, setTrackingModification, setURI, supportIDRelativeURIFragmentPaths, toKeyString, toString, unload, unloaded, useZip
-
Methods inherited from class org.eclipse.emf.common.notify.impl.NotifierImpl
eBasicAdapters, eDeliver, eSetDeliver
-
Methods inherited from class org.eclipse.emf.common.notify.impl.BasicNotifierImpl
eNotificationRequired, eNotify
-
-
-
-
Method Detail
-
resetSingleThreadMode
public static void resetSingleThreadMode()
Cleans the single thread mode flag, if any
-
setSingleThreadMode
public static void setSingleThreadMode()
Sets the single thread mode flag
-
isSingleThreadMode
public static boolean isSingleThreadMode()
Checks if the single thread mode flag is enabled
-
linkBatched
public void linkBatched(org.eclipse.xtext.util.CancelIndicator monitor)
- Specified by:
linkBatched
in interfaceorg.eclipse.xtext.resource.IBatchLinkableResource
-
resolveImportedNames
public void resolveImportedNames(org.eclipse.xtext.util.CancelIndicator monitor)
Resolves imported names- Parameters:
monitor
- currentCancelIndicator
, maybenull
-
getContents
public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getContents()
- Specified by:
getContents
in interfaceorg.eclipse.emf.ecore.resource.Resource
- Overrides:
getContents
in classorg.eclipse.xtext.resource.DerivedStateAwareResource
-
getLock
public Object getLock()
- Specified by:
getLock
in interfaceorg.eclipse.xtext.resource.ISynchronizable<BslResource>
-
execute
public <Result> Result execute(org.eclipse.xtext.util.concurrent.IUnitOfWork<Result,? super BslResource> unit) throws Exception
- Specified by:
execute
in interfaceorg.eclipse.xtext.resource.ISynchronizable<BslResource>
- Throws:
Exception
-
isMultiThreadProcessing
public boolean isMultiThreadProcessing()
Checks that resource processing in multi thread- Returns:
true
if resource processing in multi thread,false
otherwise
-
setMultiThreadProcessing
public void setMultiThreadProcessing(boolean multiThreadProcessing)
Sets that resource processing in multi thread- Parameters:
multiThreadProcessing
-true
if resource must be processed in multi thread
-
getEObject
public org.eclipse.emf.ecore.EObject getEObject(String uriFragment)
- Specified by:
getEObject
in interfaceorg.eclipse.emf.ecore.resource.Resource
- Overrides:
getEObject
in classorg.eclipse.xtext.resource.persistence.StorageAwareResource
-
getSourceEObject
public org.eclipse.emf.ecore.EObject getSourceEObject(String uriFragment)
GetsEObject
from resource byURI.fragment()
without installing lazy proxyURI
for the resource items- Parameters:
uriFragment
- uri fragmentURI.fragment()
for getting resourceEObject
, cannot benull
- Returns:
EObject
corresponding to theURI
fragment ornull
if object wasn't found
-
reparse
public void reparse(String newContent) throws IOException
- Overrides:
reparse
in classorg.eclipse.xtext.resource.XtextResource
- Throws:
IOException
-
update
public void update(int offset, int replacedTextLength, String newText)
- Overrides:
update
in classorg.eclipse.xtext.resource.XtextResource
-
getLastUpdatePosition
public int getLastUpdatePosition()
Gets offset in the module for begin of last modification- Returns:
- offset in the module for begin of last modification
-
getURIFragmentByContainer
public String getURIFragmentByContainer(org.eclipse.emf.ecore.EObject eObject)
Gets fragment of the uri forEObject
without usingIFragmentProvider
- Parameters:
eObject
-EObject
for gettingURI
fragment, cannot benull
- Returns:
- fragment of the uri for
EObject
, nevernull
-
getLastUpdateContentShift
public int getLastUpdateContentShift()
Gets difference between new added text and replace text length in update operation for module- Returns:
- difference between new added text and replace text length
-
acquireUpdateLock
public void acquireUpdateLock()
Acquire read lock for update operation of resource. Seeupdate(int, int, String)
which protected by write lock. Use this method for getting always actual state ofIParseResult
of the resource Client should callreleaseUpdateLock()
after processing actualIParseResult
will be end
-
releaseUpdateLock
public void releaseUpdateLock()
Releases read lock forupdate operation of resource. SeeacquireUpdateLock()
-
acquireLocalResolveCrossReferencLock
public void acquireLocalResolveCrossReferencLock()
Acquire read lock for local resolve cross reference. SeelocalResolveCrossReference(CancelIndicator)
which protected by write lock. Use this method for resolve cross reference in one reparce method, seegetReparseMethod()
Client should callreleaseLocalResolveCrossReferenceLock()
after processing reparce method will be end
-
releaseLocalResolveCrossReferenceLock
public void releaseLocalResolveCrossReferenceLock()
Releases read lock for local resolve cross reference SeeacquireLocalResolveCrossReferencLock()
-
resolveLazyCrossReferences
public void resolveLazyCrossReferences(org.eclipse.xtext.util.CancelIndicator mon)
- Overrides:
resolveLazyCrossReferences
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
-
installDerivedState
public void installDerivedState(boolean preIndexingPhase)
- Overrides:
installDerivedState
in classorg.eclipse.xtext.resource.DerivedStateAwareResource
-
installProxiesForBlock
public void installProxiesForBlock(Block block)
- Parameters:
block
-Block
for installing lazy proxies, cannot benull
-
getMethod
public List<Method> getMethod(CaseInsensitiveString name)
Gets methods fromModule
by name- Parameters:
name
- name of the method, can't benull
- Returns:
- list of the methods with name equals to
name
, can'benull
if there is no methods with the name
-
isOnlyMethodReparse
public boolean isOnlyMethodReparse()
-
getReparseMethod
public Method getReparseMethod()
Gets last reparsing method fromModule
- Returns:
- last reparsing method from
Module
, can benull
ifisOnlyMethodReparse()
returnfalse
-
isLinkedBatch
public boolean isLinkedBatch()
Checks that system of type, cross reference serializer and building types of contextDef was ended- Returns:
true
if system of type, cross reference serializer and building types of contextDef was ended,false
otherwise
-
skipCachedMethods
public void skipCachedMethods()
Skips all cachedMethod
s of resource
-
isDeepAnalysing
public boolean isDeepAnalysing()
Checks that resource needs deep analyze processing. Deep analyzing includes full processing in Type System, computing all references description, and full validation with all check modes- Returns:
true
if resource needs deep analyze processing,false
otherwise
-
setDeepAnalysis
public void setDeepAnalysis(boolean isDeepAnalysis)
Sets that resource needs deep analyze. Deep analyzing includes full processing in Type System, computing all references description, and full validation with all check modes- Parameters:
isDeepAnalysis
-true
if that resource needs deep analyze,false
otherwise
-
isLocalResolveCrossReference
public boolean isLocalResolveCrossReference()
Checks that resolve cross reference forgetReparseMethod()
have been done- Returns:
true
if resolve cross reference have been done forgetReparseMethod()
,false
otherwise
-
isResolveCrossReference
public boolean isResolveCrossReference()
Checks that resolve cross reference for all resource have been done- Returns:
true
if resolve cross reference have been done for all resource,false
otherwise
-
localResolveCrossReference
public void localResolveCrossReference(org.eclipse.xtext.util.CancelIndicator cancelIndicator)
Resolve cross reference for onlygetReparseMethod()
- Parameters:
cancelIndicator
-CancelIndicator
for cancel resolve cross reference, cannot benull
-
setGlobalResourceOperationCancelIndicator
public void setGlobalResourceOperationCancelIndicator(org.eclipse.xtext.util.CancelIndicator cancelIndicator)
Sets the external cancel indicator for this resource. This cancel indicator may be used to interrupt long operations gracefully- Parameters:
cancelIndicator
- The cancel indicator to set. May not benull
-
getGlobalResourceOperationCancelIndicator
public org.eclipse.xtext.util.CancelIndicator getGlobalResourceOperationCancelIndicator()
Gets the external cancel indicator for this resource. This cancel indicator may be used to interrupt long operations gracefully- Returns:
- cancelIndicator The cancel indicator. Never
null
, may returnCancelIndicator#NullImpl
-
resetGlobalResourceOperationCancelIndicator
public void resetGlobalResourceOperationCancelIndicator()
Removes current previously installed cancel indicator
-
getContextHolder
public IBslValidationContributor.ContextHolderAdapter getContextHolder()
Gets the validation context holder adapter if present- Returns:
- The context holder adapter. May be
null
-
setContextHolder
public void setContextHolder(IBslValidationContributor.ContextHolderAdapter contextHolderAdapter)
Sets the validation context holder adapter- Parameters:
contextHolderAdapter
- actual context holder adapter. May benull
-
getLanguageSuppressionContext
public org.eclipse.emf.common.notify.Adapter getLanguageSuppressionContext()
Gets the language validation suppression context adapter- Parameters:
The
- language validation suppression context adapter. May benull
-
setLanguageSuppressionContext
public void setLanguageSuppressionContext(org.eclipse.emf.common.notify.Adapter languageSuppressionContext)
Sets the language validation suppression context adapter- Parameters:
languageSuppressionContext
- actual language validation suppression context adapter. May benull
-
eAdapters
public org.eclipse.emf.common.util.EList<org.eclipse.emf.common.notify.Adapter> eAdapters()
- Specified by:
eAdapters
in interfaceorg.eclipse.emf.common.notify.Notifier
- Overrides:
eAdapters
in classorg.eclipse.emf.common.notify.impl.NotifierImpl
-
eBasicAdapterArray
protected org.eclipse.emf.common.notify.Adapter[] eBasicAdapterArray()
- Overrides:
eBasicAdapterArray
in classorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
eBasicHasAdapters
protected boolean eBasicHasAdapters()
- Overrides:
eBasicHasAdapters
in classorg.eclipse.emf.common.notify.impl.BasicNotifierImpl
-
getEObject
protected org.eclipse.emf.ecore.EObject getEObject(List<String> uriFragmentPath)
Returns the object based on the fragment path as a list of Strings.- Overrides:
getEObject
in classorg.eclipse.emf.ecore.resource.impl.ResourceImpl
-
getEObjectForURIFragmentRootSegment
protected org.eclipse.emf.ecore.EObject getEObjectForURIFragmentRootSegment(String uriFragmentRootSegment)
- Overrides:
getEObjectForURIFragmentRootSegment
in classorg.eclipse.xtext.resource.DerivedStateAwareResource
-
doLinking
protected void doLinking()
- Overrides:
doLinking
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
-
getUnresolvableURIFragments
protected Set<String> getUnresolvableURIFragments()
- Overrides:
getUnresolvableURIFragments
in classorg.eclipse.xtext.resource.persistence.StorageAwareResource
-
getEObject
protected org.eclipse.emf.ecore.EObject getEObject(String uriFragment, org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode> triple) throws AssertionError
Source code gets fromLazyLinkingResource#getEObject(String uriFragment, Triple
for replace collectiontriple) resolving
to the thread safe variant- Overrides:
getEObject
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
- Throws:
AssertionError
-
handleCyclicResolution
protected org.eclipse.emf.ecore.EObject handleCyclicResolution(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode> triple) throws AssertionError
- Overrides:
handleCyclicResolution
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
- Throws:
AssertionError
-
installTypeState
protected void installTypeState(Module module, org.eclipse.xtext.util.CancelIndicator monitor)
Install type system for BSL module- Parameters:
module
- BSL module
-
createDiagnostic
protected org.eclipse.emf.ecore.resource.Resource.Diagnostic createDiagnostic(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode> triple, org.eclipse.xtext.diagnostics.DiagnosticMessage message)
- Overrides:
createDiagnostic
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
-
removeDiagnostic
protected void removeDiagnostic(org.eclipse.xtext.util.Triple<org.eclipse.emf.ecore.EObject,org.eclipse.emf.ecore.EReference,org.eclipse.xtext.nodemodel.INode> triple)
- Overrides:
removeDiagnostic
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
-
addSyntaxErrors
protected void addSyntaxErrors()
- Overrides:
addSyntaxErrors
in classorg.eclipse.xtext.resource.XtextResource
-
getDiagnosticList
protected List<org.eclipse.emf.ecore.resource.Resource.Diagnostic> getDiagnosticList(org.eclipse.xtext.diagnostics.DiagnosticMessage message) throws AssertionError
- Overrides:
getDiagnosticList
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
- Throws:
AssertionError
-
updateInternalState
protected void updateInternalState(org.eclipse.xtext.parser.IParseResult oldParseResult, org.eclipse.xtext.parser.IParseResult newParseResult)
- Overrides:
updateInternalState
in classorg.eclipse.xtext.resource.DerivedStateAwareResource
-
clearErrorsAndWarnings
protected void clearErrorsAndWarnings()
- Overrides:
clearErrorsAndWarnings
in classorg.eclipse.xtext.resource.XtextResource
-
doUnload
protected void doUnload()
- Overrides:
doUnload
in classorg.eclipse.xtext.resource.DerivedStateAwareResource
-
doLoad
protected void doLoad(InputStream inputStream, Map<?,?> options) throws IOException
- Overrides:
doLoad
in classorg.eclipse.xtext.linking.lazy.LazyLinkingResource
- Throws:
IOException
-
-