Class ResolvedImplicitReceiver
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractImplicitFeature
-
- org.eclipse.xtext.xbase.typesystem.internal.ImplicitReceiver
-
- org.eclipse.xtext.xbase.typesystem.internal.ResolvedImplicitReceiver
-
- All Implemented Interfaces:
IApplicableCandidate
,IFeatureLinkingCandidate
,ILinkingCandidate
public class ResolvedImplicitReceiver extends ImplicitReceiver
-
-
Constructor Summary
Constructors Constructor Description ResolvedImplicitReceiver(XAbstractFeatureCall featureCall, XAbstractFeatureCall implicitReceiver, ExpressionTypeComputationState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
applyToComputationState()
Apply this candidate to the current computation state model.void
applyToModel(IResolvedTypes resolvedTypes)
Injects the resolved feature into the model with the same semantics as the implicitresolve
of EMF.-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.ImplicitReceiver
validate
-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractImplicitFeature
getExpression, getFeature, getFeatureCall, getOwner, getPreferredCandidate, getState, getTypeArguments, isExtension, isStatic, isTypeLiteral
-
-
-
-
Constructor Detail
-
ResolvedImplicitReceiver
public ResolvedImplicitReceiver(XAbstractFeatureCall featureCall, XAbstractFeatureCall implicitReceiver, ExpressionTypeComputationState state)
-
-
Method Detail
-
applyToComputationState
public void applyToComputationState()
Description copied from interface:ILinkingCandidate
Apply this candidate to the current computation state model. This propagates the type information about arguments and child expressions to the currently active resolution state.- Specified by:
applyToComputationState
in interfaceILinkingCandidate
- Overrides:
applyToComputationState
in classImplicitReceiver
-
applyToModel
public void applyToModel(IResolvedTypes resolvedTypes)
Description copied from interface:ILinkingCandidate
Injects the resolved feature into the model with the same semantics as the implicitresolve
of EMF. This implies that the linked feature call may still point to a proxy afterwards.- Specified by:
applyToModel
in interfaceIApplicableCandidate
- Specified by:
applyToModel
in interfaceILinkingCandidate
- Overrides:
applyToModel
in classImplicitReceiver
-
-