public class JavaResource extends org.eclipse.emf.ecore.resource.impl.ResourceImpl implements IJavaSchemeUriResolver, ISynchronizable<JavaResource>
Modifier and Type | Class and Description |
---|---|
static class |
JavaResource.Factory |
org.eclipse.emf.ecore.resource.impl.ResourceImpl.ContentsEList<E extends java.lang.Object & org.eclipse.emf.ecore.EObject>, org.eclipse.emf.ecore.resource.impl.ResourceImpl.ModificationTrackingAdapter
org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EAdapterList<E extends java.lang.Object & org.eclipse.emf.common.notify.Adapter>, org.eclipse.emf.common.notify.impl.BasicNotifierImpl.EObservableAdapterList
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
OPTION_ENCODING |
contents, defaultDeleteOptions, defaultLoadOptions, defaultSaveOptions, errors, intrinsicIDToEObjectMap, isLoaded, isLoading, isModified, modificationTrackingAdapter, resourceSet, timeStamp, unloadingContents, uri, warnings
eAdapters, EDELIVER, eFlags, ELAST_NOTIFIER_FLAG
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 and Description |
---|
JavaResource() |
Modifier and Type | Method and Description |
---|---|
void |
discardDerivedState() |
protected void |
doLoad(java.io.InputStream inputStream,
java.util.Map<?,?> options) |
<Result> Result |
execute(IUnitOfWork<Result,? super JavaResource> unit)
Execute the unit of work in a context that allows for modification.
|
protected org.eclipse.jdt.internal.compiler.batch.CompilationUnit |
getCompilationUnit() |
org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> |
getContents() |
protected java.lang.String |
getEncoding(org.eclipse.emf.common.util.URI uri,
java.util.Map<?,?> options) |
IndexedJvmTypeAccess |
getIndexJvmTypeAccess() |
java.lang.Object |
getLock()
Returns the lock of the owning
ResourceSet , if it exposes such a lock. |
void |
installFull() |
void |
installStubs() |
boolean |
isInitialized() |
boolean |
isInitializing() |
org.eclipse.emf.ecore.EObject |
resolveJavaObjectURIProxy(org.eclipse.emf.ecore.InternalEObject proxy,
JvmTypeReference sender) |
addModificationTrackingAdapters, attached, attachedHelper, basicSetResourceSet, createModificationTrackingAdapter, delete, detached, detachedHelper, doSave, doUnload, getAllContents, getAllProperContents, getAllProperContents, getDefaultURIConverter, getEObject, getEObject, getEObjectByID, getEObjectForURIFragmentRootSegment, getErrors, getIntrinsicIDToEObjectMap, getResourceSet, getTimeStamp, getUnloadingContents, getURI, getURIConverter, getURIFragment, getURIFragmentRootSegment, getWarnings, handleLoadResponse, handleSaveResponse, isAttachedDetachedHelperRequired, isContentZipEntry, isLoaded, isLoading, isModified, isTrackingModification, load, load, mergeMaps, newContentZipEntry, removeModificationTrackingAdapters, save, save, saveOnlyIfChangedWithFileBuffer, saveOnlyIfChangedWithMemoryBuffer, setIntrinsicIDToEObjectMap, setLoaded, setModified, setTimeStamp, setTrackingModification, setURI, toKeyString, toString, unload, unloaded, useZip
eAdapters, eBasicAdapters, eDeliver, eSetDeliver
eBasicAdapterArray, eBasicHasAdapters, eNotificationRequired, eNotify
protected void doLoad(java.io.InputStream inputStream, java.util.Map<?,?> options) throws java.io.IOException
doLoad
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
java.io.IOException
protected java.lang.String getEncoding(org.eclipse.emf.common.util.URI uri, java.util.Map<?,?> options)
protected org.eclipse.jdt.internal.compiler.batch.CompilationUnit getCompilationUnit()
public org.eclipse.emf.common.util.EList<org.eclipse.emf.ecore.EObject> getContents()
getContents
in interface org.eclipse.emf.ecore.resource.Resource
getContents
in class org.eclipse.emf.ecore.resource.impl.ResourceImpl
public void installStubs()
public void installFull()
public void discardDerivedState()
public org.eclipse.emf.ecore.EObject resolveJavaObjectURIProxy(org.eclipse.emf.ecore.InternalEObject proxy, JvmTypeReference sender)
resolveJavaObjectURIProxy
in interface IJavaSchemeUriResolver
public IndexedJvmTypeAccess getIndexJvmTypeAccess()
public java.lang.Object getLock()
ResourceSet
, if it exposes such a lock.
Otherwise this resource itself is used as the lock context.getLock
in interface ISynchronizable<JavaResource>
public <Result> Result execute(IUnitOfWork<Result,? super JavaResource> unit) throws java.lang.Exception
ISynchronizable
execute
in interface ISynchronizable<JavaResource>
unit
- the action to perform. May not be null
java.lang.Exception
- the exception that was thrown by the unit.@Pure public boolean isInitialized()
@Pure public boolean isInitializing()