public class CachingBatchTypeResolver extends java.lang.Object implements IBatchTypeResolver
Modifier and Type | Class and Description |
---|---|
protected static class |
CachingBatchTypeResolver.LazyResolvedTypes |
Constructor and Description |
---|
CachingBatchTypeResolver() |
Modifier and Type | Method and Description |
---|---|
IScope |
getFeatureScope(XAbstractFeatureCall featureCall)
Returns the currently visible features in the given context.
|
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.
|
IResolvedTypes |
resolveTypes(org.eclipse.emf.ecore.EObject object)
Return a handle to resolved types of expressions that are related
to the given
object . |
@NonNull 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.@NonNull public IScope getFeatureScope(@Nullable XAbstractFeatureCall featureCall)
IBatchTypeResolver
getFeatureScope
in interface IBatchTypeResolver
@NonNull 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.