Class ConstructorFeatureScopeSession
- java.lang.Object
-
- org.eclipse.xtext.xbase.scoping.batch.AbstractFeatureScopeSession
-
- org.eclipse.xtext.xbase.scoping.batch.AbstractNestedFeatureScopeSession
-
- org.eclipse.xtext.xbase.scoping.batch.ConstructorFeatureScopeSession
-
- All Implemented Interfaces:
IFeatureScopeSession,IVisibilityHelper
public class ConstructorFeatureScopeSession extends AbstractNestedFeatureScopeSession
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.xbase.typesystem.util.IVisibilityHelper
ALL
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedConstructorFeatureScopeSession(AbstractFeatureScopeSession parent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanisConstructorContext()Returnstrueif the current expression is used in a constructor body.IFeatureScopeSessiontoConstructorContext()Forks this session with a constructor context.-
Methods inherited from class org.eclipse.xtext.xbase.scoping.batch.AbstractNestedFeatureScopeSession
addExtensionProviders, addLocalElements, getConstructorScopes, getDefaultScopeProvider, getEnclosingTypes, getExtensionProviders, getFeatureScopes, getId, getLocalElement, getNestedTypeDeclarators, getNextCaptureLayer, getParent, getResolvedFeaturesProvider, getStaticallyImportedExtensionTypes, getStaticallyImportedTypes, getTypeScopes, isInstanceContext, isVisible, isVisible
-
Methods inherited from class org.eclipse.xtext.xbase.scoping.batch.AbstractFeatureScopeSession
addImports, addLocalElement, addLocalElements, addNestedTypesToScope, addToExtensionScope, addTypesToStaticScope, captureLocalElements, createConstructorScope, createFeatureCallScope, createTypeScope, dropLocalElements, getLocalElements, getScope, toInstanceContext, tryCreateNestedSessionWithVisibilityContext
-
-
-
-
Constructor Detail
-
ConstructorFeatureScopeSession
protected ConstructorFeatureScopeSession(AbstractFeatureScopeSession parent)
-
-
Method Detail
-
toConstructorContext
public IFeatureScopeSession toConstructorContext()
Description copied from interface:IFeatureScopeSessionForks this session with a constructor context. References to delegation constructors are only valid within this context.- Specified by:
toConstructorContextin interfaceIFeatureScopeSession- Overrides:
toConstructorContextin classAbstractFeatureScopeSession- See Also:
IFeatureScopeSession.isInstanceContext()
-
isConstructorContext
public boolean isConstructorContext()
Description copied from interface:IFeatureScopeSessionReturnstrueif the current expression is used in a constructor body.- Specified by:
isConstructorContextin interfaceIFeatureScopeSession- Overrides:
isConstructorContextin classAbstractNestedFeatureScopeSession- See Also:
IFeatureScopeSession.toConstructorContext()
-
-