Class ConstructorScopes
- java.lang.Object
-
- org.eclipse.xtext.xbase.scoping.batch.ConstructorScopes
-
public class ConstructorScopes extends java.lang.ObjectEncapsulates the creation of constructor scopes.
-
-
Field Summary
Fields Modifier and Type Field Description static intCONSTRUCTOR_BUCKET
-
Constructor Summary
Constructors Constructor Description ConstructorScopes()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ConstructorDescriptioncreateAnonmousClassConstructorDescription(org.eclipse.xtext.naming.QualifiedName name, org.eclipse.xtext.common.types.JvmConstructor constructor, boolean visible)protected org.eclipse.xtext.scoping.IScopecreateAnonymousClassConstructorScope(org.eclipse.xtext.common.types.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.org.eclipse.xtext.scoping.IScopecreateConstructorScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, IFeatureScopeSession session, IResolvedTypes resolvedTypes)Creates the constructor scope forXConstructorCall.booleanisConstructorCallScope(org.eclipse.emf.ecore.EReference reference)
-
-
-
Field Detail
-
CONSTRUCTOR_BUCKET
public static final int CONSTRUCTOR_BUCKET
- See Also:
- Constant Field Values
-
-
Method Detail
-
createConstructorScope
public org.eclipse.xtext.scoping.IScope createConstructorScope(org.eclipse.emf.ecore.EObject context, org.eclipse.emf.ecore.EReference reference, IFeatureScopeSession session, IResolvedTypes resolvedTypes)Creates the constructor scope forXConstructorCall. The scope will likely contain descriptions forconstructors. If there is not constructor declared, it may containtypes.- Parameters:
session- the currently available visibilityHelper datareference- the reference that will hold the resolved constructorresolvedTypes- the currently known resolved types
-
createAnonymousClassConstructorScope
protected org.eclipse.xtext.scoping.IScope createAnonymousClassConstructorScope(org.eclipse.xtext.common.types.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.- Parameters:
session- subtypes may override and use the given session.
-
createAnonmousClassConstructorDescription
protected ConstructorDescription createAnonmousClassConstructorDescription(org.eclipse.xtext.naming.QualifiedName name, org.eclipse.xtext.common.types.JvmConstructor constructor, boolean visible)
-
isConstructorCallScope
public boolean isConstructorCallScope(org.eclipse.emf.ecore.EReference reference)
-
-