@NonNullByDefault public class NullConstructorLinkingCandidate extends AbstractNullLinkingCandidate implements IConstructorLinkingCandidate
featureOrConstructorCall
Constructor and Description |
---|
NullConstructorLinkingCandidate(XConstructorCall constructorCall,
AbstractTypeComputationState state) |
Modifier and Type | Method and Description |
---|---|
void |
applyToComputationState()
Apply this candidate to the current computation state model.
|
JvmConstructor |
getConstructor() |
XConstructorCall |
getConstructorCall() |
ILinkingCandidate |
getPreferredCandidate(ILinkingCandidate other)
Produces the best candidate for the current two candidates.
|
applyToModel, getExpression, getFeature, getTypeArguments, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getTypeArguments
applyToModel, getExpression, getFeature, validate
public NullConstructorLinkingCandidate(XConstructorCall constructorCall, AbstractTypeComputationState state)
public ILinkingCandidate getPreferredCandidate(ILinkingCandidate other)
ILinkingCandidate
this
and other
) are ambiguous
so no prefered candidate can be chosen. In that case, a new linking candidate
may be produced that carries this information and will use that on ILinkingCandidate.applyToComputationState()
,
ILinkingCandidate.applyToModel()
, and ILinkingCandidate.validate(IAcceptor)
.getPreferredCandidate
in interface ILinkingCandidate
public XConstructorCall getConstructorCall()
getConstructorCall
in interface IConstructorLinkingCandidate
public JvmConstructor getConstructor()
getConstructor
in interface IConstructorLinkingCandidate
public void applyToComputationState()
ILinkingCandidate
applyToComputationState
in interface ILinkingCandidate