public class ConstructorScopes
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
CONSTRUCTOR_BUCKET |
| Constructor and Description |
|---|
ConstructorScopes() |
| Modifier and Type | Method and Description |
|---|---|
protected ConstructorDescription |
createAnonmousClassConstructorDescription(QualifiedName name,
JvmConstructor constructor,
boolean visible) |
protected IScope |
createAnonymousClassConstructorScope(JvmGenericType anonymousType,
org.eclipse.emf.ecore.EObject context,
IFeatureScopeSession session)
Custom languages that allow to infer anonymous classes may want to use this helper
to access the constructors of those classes.
|
IScope |
createConstructorScope(org.eclipse.emf.ecore.EObject context,
org.eclipse.emf.ecore.EReference reference,
IFeatureScopeSession session,
IResolvedTypes resolvedTypes)
Creates the constructor scope for
XConstructorCall. |
boolean |
isConstructorCallScope(org.eclipse.emf.ecore.EReference reference) |
public static final int CONSTRUCTOR_BUCKET
public IScope createConstructorScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, IFeatureScopeSession session, IResolvedTypes resolvedTypes)
XConstructorCall.
The scope will likely contain descriptions for constructors.
If there is not constructor declared, it may contain types.session - the currently available visibilityHelper datareference - the reference that will hold the resolved constructorresolvedTypes - the currently known resolved typesprotected IScope createAnonymousClassConstructorScope(JvmGenericType anonymousType, org.eclipse.emf.ecore.EObject context, IFeatureScopeSession session)
session - subtypes may override and use the given session.protected ConstructorDescription createAnonmousClassConstructorDescription(QualifiedName name, JvmConstructor constructor, boolean visible)
public boolean isConstructorCallScope(org.eclipse.emf.ecore.EReference reference)