@NonNullByDefault public class ImplicitReceiver extends AbstractImplicitFeature
Constructor and Description |
---|
ImplicitReceiver(XAbstractFeatureCall featureCall,
XAbstractFeatureCall implicit,
ExpressionTypeComputationState state) |
Modifier and Type | Method and Description |
---|---|
void |
applyToComputationState()
Apply this candidate to the current computation state model.
|
void |
applyToModel()
Injects the resolved feature into the model with the same semantics as the implicit
resolve
of EMF. |
protected java.lang.String |
getFeatureTypeName(JvmIdentifiableElement feature) |
boolean |
validate(IAcceptor<? super AbstractDiagnostic> result)
Produce diagnostics for this condidate.
|
getExpression, getFeature, getFeatureCall, getOwner, getPreferredCandidate, getState, getTypeArguments, isExtension, isStatic, isTypeLiteral
public ImplicitReceiver(XAbstractFeatureCall featureCall, XAbstractFeatureCall implicit, ExpressionTypeComputationState state)
public void applyToComputationState()
ILinkingCandidate
applyToComputationState
in interface ILinkingCandidate
applyToComputationState
in class AbstractImplicitFeature
public void applyToModel()
ILinkingCandidate
resolve
of EMF. This implies that the linked feature call may still point to a proxy afterwards.public boolean validate(IAcceptor<? super AbstractDiagnostic> result)
ILinkingCandidate
validate
in interface ILinkingCandidate
validate
in class AbstractImplicitFeature
true
if further validation should be performed.protected java.lang.String getFeatureTypeName(JvmIdentifiableElement feature)