public class IndexedJvmTypeAccess
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
IndexedJvmTypeAccess.ShadowedTypeException |
static class |
IndexedJvmTypeAccess.UnknownNestedTypeException
This exception is raised if a matching top level type was found in the index but there is no nested type
with the requested name.
|
Constructor and Description |
---|
IndexedJvmTypeAccess() |
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.emf.ecore.EObject |
findAccessibleType(java.lang.String fragment,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
java.util.Iterator<IEObjectDescription> fromIndex)
Returns the first type that was found in the index.
|
protected org.eclipse.emf.ecore.EObject |
getAccessibleType(IEObjectDescription description,
java.lang.String fragment,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Read and resolve the EObject from the given description and navigate to its children according
to the given fragment.
|
org.eclipse.emf.ecore.EObject |
getIndexedJvmType(QualifiedName qualifiedName,
java.lang.String fragment,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet) |
org.eclipse.emf.ecore.EObject |
getIndexedJvmType(QualifiedName qualifiedName,
java.lang.String fragment,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
boolean throwShadowedException) |
org.eclipse.emf.ecore.EObject |
getIndexedJvmType(org.eclipse.emf.common.util.URI javaObjectURI,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Locate and resolve a
JvmType in the context of the given resource set. |
org.eclipse.emf.ecore.EObject |
getIndexedJvmType(org.eclipse.emf.common.util.URI javaObjectURI,
org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
boolean throwShadowedException) |
boolean |
isIndexingPhase(org.eclipse.emf.common.notify.Notifier notifier) |
org.eclipse.emf.ecore.EObject |
resolveJavaArrayObject(JvmType rootType,
java.lang.String fragment) |
org.eclipse.emf.ecore.EObject |
resolveJavaObject(JvmType rootType,
java.lang.String fragment)
Locate a locale type with the given fragment.
|
public boolean isIndexingPhase(org.eclipse.emf.common.notify.Notifier notifier)
public org.eclipse.emf.ecore.EObject getIndexedJvmType(org.eclipse.emf.common.util.URI javaObjectURI, org.eclipse.emf.ecore.resource.ResourceSet resourceSet) throws IndexedJvmTypeAccess.UnknownNestedTypeException
JvmType
in the context of the given resource set. It'll try to
decode the qualified name from the URI and find an instance with that name in the index
. Short-circuits to a resource that is already available in the resource set.javaObjectURI
- the uri of the to-be-loaded instance. It is expected to be a Java-scheme URI. May not be
null
.resourceSet
- the context resource set. May not be null
.null
.IndexedJvmTypeAccess.UnknownNestedTypeException
public org.eclipse.emf.ecore.EObject getIndexedJvmType(org.eclipse.emf.common.util.URI javaObjectURI, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, boolean throwShadowedException) throws IndexedJvmTypeAccess.UnknownNestedTypeException
public org.eclipse.emf.ecore.EObject getIndexedJvmType(QualifiedName qualifiedName, java.lang.String fragment, org.eclipse.emf.ecore.resource.ResourceSet resourceSet) throws IndexedJvmTypeAccess.UnknownNestedTypeException
public org.eclipse.emf.ecore.EObject getIndexedJvmType(QualifiedName qualifiedName, java.lang.String fragment, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, boolean throwShadowedException) throws IndexedJvmTypeAccess.UnknownNestedTypeException
protected org.eclipse.emf.ecore.EObject findAccessibleType(java.lang.String fragment, org.eclipse.emf.ecore.resource.ResourceSet resourceSet, java.util.Iterator<IEObjectDescription> fromIndex) throws IndexedJvmTypeAccess.UnknownNestedTypeException
IndexedJvmTypeAccess.UnknownNestedTypeException
protected org.eclipse.emf.ecore.EObject getAccessibleType(IEObjectDescription description, java.lang.String fragment, org.eclipse.emf.ecore.resource.ResourceSet resourceSet) throws IndexedJvmTypeAccess.UnknownNestedTypeException
IndexedJvmTypeAccess.UnknownNestedTypeException
public org.eclipse.emf.ecore.EObject resolveJavaObject(JvmType rootType, java.lang.String fragment) throws IndexedJvmTypeAccess.UnknownNestedTypeException
public org.eclipse.emf.ecore.EObject resolveJavaArrayObject(JvmType rootType, java.lang.String fragment) throws IndexedJvmTypeAccess.UnknownNestedTypeException