public class ResolvedConstructor extends AbstractResolvedReference<XConstructorCall> implements IConstructorLinkingCandidate
AbstractLinkingCandidate.ArgumentTypeComputationState, AbstractLinkingCandidate.ObservableTypeExpectationresolvedElementarguments, typeArguments| Constructor and Description |
|---|
ResolvedConstructor(XConstructorCall constructorCall,
JvmConstructor constructor,
ITypeExpectation expectation,
ExpressionTypeComputationState state) |
| Modifier and Type | Method and Description |
|---|---|
protected List<XExpression> |
getArguments() |
JvmConstructor |
getConstructor() |
XConstructorCall |
getConstructorCall() |
List<JvmTypeParameter> |
getDeclaredTypeParameters() |
protected List<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, 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 JvmConstructor getConstructor()
getConstructor in interface IConstructorLinkingCandidatepublic boolean isAnonymousClassConstructorCall()
isAnonymousClassConstructorCall in interface IConstructorLinkingCandidatepublic XConstructorCall getConstructorCall()
getConstructorCall in interface IConstructorLinkingCandidateprotected List<XExpression> getArguments()
getArguments in class AbstractLinkingCandidate<XConstructorCall>protected List<JvmTypeReference> getPlainSyntacticTypeArguments()
getPlainSyntacticTypeArguments in class AbstractLinkingCandidate<XConstructorCall>public List<JvmTypeParameter> getDeclaredTypeParameters()
getDeclaredTypeParameters in class AbstractLinkingCandidate<XConstructorCall>Copyright © 2015. All Rights Reserved.