io.sarl.lang.typesystem.cast
Class CastScopeSession
All Superinterfaces:
org.eclipse.xtext.xbase.scoping.batch.IFeatureScopeSession, org.eclipse.xtext.xbase.typesystem.util.IVisibilityHelper
class CastScopeSession
extends java.lang.Object
Scope session dedicated to the cast operator.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.9
Constructor Summary
Constructor and description
new(AbstractFeatureScopeSession)
Constructor.
Action Summary
Modifier and type Action and description
protected org.eclipse.xtext.scoping.IScope createCastOperatorScope(EObject,EReference,IResolvedTypes)
create a scope for cast operator.
org.eclipse.xtext.scoping.IScope getScope(EObject,EReference,IResolvedTypes)
boolean isCastOperatorScope(EReference)
Replies if the given reference is related to the cast operator scope.
Constructor Details
new(AbstractFeatureScopeSession)
new(AbstractFeatureScopeSession)
Constructor.
Parameters:
parent - the parent session.
Action Details
createCastOperatorScope(EObject,EReference,IResolvedTypes)
protected def createCastOperatorScope(EObject,EReference,IResolvedTypes) : org.eclipse.xtext.scoping.IScope
create a scope for cast operator.
Parameters:
context - the context.
reference - the reference to the internal feature.
resolvedTypes - the resolved types.
Returns:
the scope.
getScope(EObject,EReference,IResolvedTypes)
def getScope(EObject,EReference,IResolvedTypes) : org.eclipse.xtext.scoping.IScope
isCastOperatorScope(EReference)
def isCastOperatorScope(EReference) : boolean
Replies if the given reference is related to the cast operator scope.
Parameters:
reference - the reference to test.
Returns:
true if the reference is for a cast operator.