@NonNullByDefault public class DefaultBatchTypeResolver extends java.lang.Object implements IBatchTypeResolver
Constructor and Description |
---|
DefaultBatchTypeResolver() |
Modifier and Type | Method and Description |
---|---|
protected AbstractRootedReentrantTypeResolver |
createResolver() |
protected java.util.List<org.eclipse.emf.ecore.EObject> |
getEntryPoints(org.eclipse.emf.ecore.EObject object) |
IScope |
getFeatureScope(XAbstractFeatureCall featureCall)
Returns the currently visible features in the given context.
|
protected AbstractRootedReentrantTypeResolver |
getOrCreateResolver(org.eclipse.emf.ecore.EObject root) |
IResolvedTypes |
getResolvedTypesInContextOf(org.eclipse.emf.ecore.EObject context)
Returns an intermitted instance of resolved types that carries the
potentially specialized type information in the context of the given
instance.
|
protected IReentrantTypeResolver |
getTypeResolver(org.eclipse.emf.ecore.EObject object) |
IResolvedTypes |
resolveTypes(org.eclipse.emf.ecore.EObject object)
Return a handle to resolved types of expressions that are related
to the given
object . |
public IResolvedTypes resolveTypes(@Nullable org.eclipse.emf.ecore.EObject object)
IBatchTypeResolver
object
.resolveTypes
in interface IBatchTypeResolver
object
- the context that describes the expressions that will be used
to query the resolved types.public IScope getFeatureScope(@Nullable XAbstractFeatureCall featureCall)
IBatchTypeResolver
getFeatureScope
in interface IBatchTypeResolver
public IResolvedTypes getResolvedTypesInContextOf(@Nullable org.eclipse.emf.ecore.EObject context)
IBatchTypeResolver
CharSequence
for the identifiable
o
at the cursor position |
when queried with the XCasePart
:
switch o: getObject() { CharSequence: | }
getResolvedTypesInContextOf
in interface IBatchTypeResolver
context
- the expression or case part
that specified the current context.protected IReentrantTypeResolver getTypeResolver(org.eclipse.emf.ecore.EObject object)
protected java.util.List<org.eclipse.emf.ecore.EObject> getEntryPoints(org.eclipse.emf.ecore.EObject object)
protected AbstractRootedReentrantTypeResolver getOrCreateResolver(org.eclipse.emf.ecore.EObject root)
protected AbstractRootedReentrantTypeResolver createResolver()