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.
|
org.eclipse.xtext.common.types.JvmConstructor |
getConstructor() |
XConstructorCall |
getConstructorCall() |
ILinkingCandidate |
getPreferredCandidate(ILinkingCandidate other)
Produces the best candidate for the current two candidates.
|
boolean |
isAnonymousClassConstructorCall() |
applyToModel, getExpression, getFeature, getTypeArguments, validateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTypeArgumentsapplyToModel, getExpression, getFeaturevalidatepublic NullConstructorLinkingCandidate(XConstructorCall constructorCall, AbstractTypeComputationState state)
public ILinkingCandidate getPreferredCandidate(ILinkingCandidate other)
ILinkingCandidatethis 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(IResolvedTypes), and IApplicableCandidate.validate(IAcceptor).getPreferredCandidate in interface ILinkingCandidatepublic XConstructorCall getConstructorCall()
getConstructorCall in interface IConstructorLinkingCandidatepublic org.eclipse.xtext.common.types.JvmConstructor getConstructor()
getConstructor in interface IConstructorLinkingCandidatepublic boolean isAnonymousClassConstructorCall()
isAnonymousClassConstructorCall in interface IConstructorLinkingCandidatepublic void applyToComputationState()
ILinkingCandidateapplyToComputationState in interface ILinkingCandidate