public class ResolvedConstructor extends AbstractResolvedReference<XConstructorCall> implements IConstructorLinkingCandidate
AbstractLinkingCandidate.ArgumentTypeComputationState, AbstractLinkingCandidate.ObservableTypeExpectationresolvedElementarguments, typeArguments| Constructor and Description |
|---|
ResolvedConstructor(XConstructorCall constructorCall,
org.eclipse.xtext.common.types.JvmConstructor constructor,
ITypeExpectation expectation,
ExpressionTypeComputationState state) |
| Modifier and Type | Method and Description |
|---|---|
protected java.util.List<XExpression> |
getArguments() |
org.eclipse.xtext.common.types.JvmConstructor |
getConstructor() |
XConstructorCall |
getConstructorCall() |
java.util.List<org.eclipse.xtext.common.types.JvmTypeParameter> |
getDeclaredTypeParameters() |
protected java.util.List<org.eclipse.xtext.common.types.JvmTypeReference> |
getPlainSyntacticTypeArguments() |
ILinkingCandidate |
getPreferredCandidate(ILinkingCandidate other)
Produces the best candidate for the current two candidates.
|
boolean |
isAnonymousClassConstructorCall() |
applyToModel, getFeature, getTypeParameterMapping, toString, validateaccept, applyToComputationState, computeArgumentType, computeArgumentTypes, computeFixedArityArgumentType, computeVarArgumentType, createArgumentTypeSubstitutor, createLinkingTypeComputationState, createVarArgTypeComputationState, deferredBindTypeArgument, discardRefinementTypeIfReassigned, getActualType, getActualType, getDeclaratorParameterMapping, getDeclaredType, getExpectedType, getExpression, getState, getSubstitutedExpectedType, getSyntacticTypeArguments, getTypeArguments, hasReceiver, initializeArgumentTypeComputation, initializeConstraintMapping, initializeMapping, initializeTypeParameterMapping, initializeTypeParameterMapping, isBoundTypeArgumentSkipped, isRawTypeContext, isTypeLiteral, mustDiscardRefinement, preApply, resolveAgainstActualType, resolveArgumentTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTypeArgumentsapplyToComputationState, applyToModel, getExpression, getFeaturevalidatepublic ResolvedConstructor(XConstructorCall constructorCall, org.eclipse.xtext.common.types.JvmConstructor constructor, ITypeExpectation expectation, ExpressionTypeComputationState 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 org.eclipse.xtext.common.types.JvmConstructor getConstructor()
getConstructor in interface IConstructorLinkingCandidatepublic boolean isAnonymousClassConstructorCall()
isAnonymousClassConstructorCall in interface IConstructorLinkingCandidatepublic XConstructorCall getConstructorCall()
getConstructorCall in interface IConstructorLinkingCandidateprotected java.util.List<XExpression> getArguments()
getArguments in class AbstractLinkingCandidate<XConstructorCall>protected java.util.List<org.eclipse.xtext.common.types.JvmTypeReference> getPlainSyntacticTypeArguments()
getPlainSyntacticTypeArguments in class AbstractLinkingCandidate<XConstructorCall>public java.util.List<org.eclipse.xtext.common.types.JvmTypeParameter> getDeclaredTypeParameters()
getDeclaredTypeParameters in class AbstractLinkingCandidate<XConstructorCall>