Class NullConstructorLinkingCandidate
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractNullLinkingCandidate
-
- org.eclipse.xtext.xbase.typesystem.internal.NullConstructorLinkingCandidate
-
- All Implemented Interfaces:
IApplicableCandidate,IConstructorLinkingCandidate,ILinkingCandidate
public class NullConstructorLinkingCandidate extends AbstractNullLinkingCandidate implements IConstructorLinkingCandidate
-
-
Field Summary
-
Fields inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractNullLinkingCandidate
featureOrConstructorCall
-
-
Constructor Summary
Constructors Constructor Description NullConstructorLinkingCandidate(XConstructorCall constructorCall, AbstractTypeComputationState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidapplyToComputationState()Apply this candidate to the current computation state model.org.eclipse.xtext.common.types.JvmConstructorgetConstructor()XConstructorCallgetConstructorCall()ILinkingCandidategetPreferredCandidate(ILinkingCandidate other)Produces the best candidate for the current two candidates.booleanisAnonymousClassConstructorCall()-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractNullLinkingCandidate
applyToModel, getExpression, getFeature, getTypeArguments, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.IApplicableCandidate
validate
-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.IConstructorLinkingCandidate
getTypeArguments
-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.ILinkingCandidate
applyToModel, getExpression, getFeature
-
-
-
-
Constructor Detail
-
NullConstructorLinkingCandidate
public NullConstructorLinkingCandidate(XConstructorCall constructorCall, AbstractTypeComputationState state)
-
-
Method Detail
-
getPreferredCandidate
public ILinkingCandidate getPreferredCandidate(ILinkingCandidate other)
Description copied from interface:ILinkingCandidateProduces the best candidate for the current two candidates. It may turn out that both candidates (thisandother) 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 onILinkingCandidate.applyToComputationState(),ILinkingCandidate.applyToModel(IResolvedTypes), andIApplicableCandidate.validate(IAcceptor).- Specified by:
getPreferredCandidatein interfaceILinkingCandidate
-
getConstructorCall
public XConstructorCall getConstructorCall()
- Specified by:
getConstructorCallin interfaceIConstructorLinkingCandidate
-
getConstructor
public org.eclipse.xtext.common.types.JvmConstructor getConstructor()
- Specified by:
getConstructorin interfaceIConstructorLinkingCandidate
-
isAnonymousClassConstructorCall
public boolean isAnonymousClassConstructorCall()
- Specified by:
isAnonymousClassConstructorCallin interfaceIConstructorLinkingCandidate
-
applyToComputationState
public void applyToComputationState()
Description copied from interface:ILinkingCandidateApply 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:
applyToComputationStatein interfaceILinkingCandidate
-
-