public class ConstructorFeatureScopeSession extends AbstractNestedFeatureScopeSession
ALL
Modifier | Constructor and Description |
---|---|
protected |
ConstructorFeatureScopeSession(AbstractFeatureScopeSession parent) |
Modifier and Type | Method and Description |
---|---|
boolean |
isConstructorContext()
Returns
true if the current expression is used in a constructor body. |
IFeatureScopeSession |
toConstructorContext()
Forks this session with a constructor context.
|
addExtensionProviders, addLocalElements, getConstructorScopes, getDefaultScopeProvider, getEnclosingTypes, getExtensionProviders, getFeatureScopes, getId, getLocalElement, getNestedTypeDeclarators, getNextCaptureLayer, getParent, getResolvedFeaturesProvider, getStaticallyImportedExtensionTypes, getStaticallyImportedTypes, getTypeScopes, isInstanceContext, isVisible, isVisible
addImports, addLocalElement, addLocalElements, addNestedTypesToScope, addToExtensionScope, addTypesToStaticScope, captureLocalElements, createConstructorScope, createFeatureCallScope, createTypeScope, dropLocalElements, getLocalElements, getScope, toInstanceContext, tryCreateNestedSessionWithVisibilityContext
protected ConstructorFeatureScopeSession(AbstractFeatureScopeSession parent)
public IFeatureScopeSession toConstructorContext()
IFeatureScopeSession
toConstructorContext
in interface IFeatureScopeSession
toConstructorContext
in class AbstractFeatureScopeSession
IFeatureScopeSession.isInstanceContext()
public boolean isConstructorContext()
IFeatureScopeSession
true
if the current expression is used in a constructor body.isConstructorContext
in interface IFeatureScopeSession
isConstructorContext
in class AbstractNestedFeatureScopeSession
IFeatureScopeSession.toConstructorContext()