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, isVisibleaddImports, addLocalElement, addLocalElements, addNestedTypesToScope, addToExtensionScope, addTypesToStaticScope, captureLocalElements, createConstructorScope, createFeatureCallScope, createTypeScope, dropLocalElements, getLocalElements, getScope, toInstanceContext, tryCreateNestedSessionWithVisibilityContextprotected ConstructorFeatureScopeSession(AbstractFeatureScopeSession parent)
public IFeatureScopeSession toConstructorContext()
IFeatureScopeSessiontoConstructorContext in interface IFeatureScopeSessiontoConstructorContext in class AbstractFeatureScopeSessionIFeatureScopeSession.isInstanceContext()public boolean isConstructorContext()
IFeatureScopeSessiontrue if the current expression is used in a constructor body.isConstructorContext in interface IFeatureScopeSessionisConstructorContext in class AbstractNestedFeatureScopeSessionIFeatureScopeSession.toConstructorContext()