public class ConstructorLinkingCandidate extends AbstractPendingLinkingCandidate<XConstructorCall> implements IConstructorLinkingCandidate
AbstractLinkingCandidate.ArgumentTypeComputationState, AbstractLinkingCandidate.ObservableTypeExpectationdescriptionarguments, typeArguments| Constructor and Description |
|---|
ConstructorLinkingCandidate(XConstructorCall constructorCall,
IIdentifiableElementDescription description,
ITypeExpectation expectation,
ExpressionTypeComputationState state) |
| Modifier and Type | Method and Description |
|---|---|
void |
applyToModel(IResolvedTypes resolvedTypes)
Injects the resolved feature into the model with the same semantics as the implicit
resolve
of EMF. |
protected ILinkingCandidate |
createAmbiguousLinkingCandidate(AbstractPendingLinkingCandidate<?> second)
Produce a candidate that carries the information about ambiguous candidates.
|
protected LightweightTypeReference |
deferredBindTypeArgument(ITypeExpectation expectation,
LightweightTypeReference type) |
protected java.util.List<XExpression> |
getArguments() |
protected int |
getConformanceFlags(int idx,
boolean recompute) |
org.eclipse.xtext.common.types.JvmConstructor |
getConstructor() |
XConstructorCall |
getConstructorCall() |
protected java.util.List<org.eclipse.xtext.common.types.JvmTypeParameter> |
getDeclaredTypeParameters() |
protected org.eclipse.emf.ecore.EReference |
getDefaultValidationFeature() |
protected java.lang.String |
getFeatureTypeName()
Returns the name of the feature type, e.g.
|
protected org.eclipse.emf.ecore.EReference |
getInvalidArgumentsValidationFeature() |
protected java.util.List<org.eclipse.xtext.common.types.JvmTypeReference> |
getPlainSyntacticTypeArguments() |
protected java.lang.String |
getSimpleFeatureName() |
boolean |
isAnonymousClassConstructorCall() |
protected boolean |
isBoundTypeArgumentSkipped(org.eclipse.xtext.common.types.JvmTypeParameter type,
java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,LightweightMergedBoundTypeArgument> mapping,
ITypeReferenceOwner owner) |
boolean |
validate(org.eclipse.xtext.util.IAcceptor<? super org.eclipse.xtext.diagnostics.AbstractDiagnostic> result)
Validates this linking candidate and adds respective diagnostics to the given queue.
|
compareByArgumentTypes, compareByArgumentTypes, compareByArgumentTypes, compareByArgumentTypesFlags, compareByArity, compareByArityWith, compareByBoxing, compareByBucket, compareByName, compareByTypeArguments, compareDeclaredTypes, compareExpectedArgumentTypes, compareTo, compareTo, createSuspiciousLinkingCandidate, getArgumentTypesAsString, getArityMismatch, getArityMismatch, getExpectedTypeCompareResultOther, getFeature, getFeatureParameterTypesAsString, getFeatureParameterTypesAsString, getFeatureTypeParametersAsString, getPreferredCandidate, getSeverity, getSyntacticArguments, getTypeArgumentConformanceFailures, getTypeArgumentsAsString, getTypeArityMismatch, getTypeParameterAsString, getTypeParameterMapping, getUnhandledExceptionSeverity, isDefiniteEarlyExit, isExtension, isLambdaExpression, isPossibleFunctionType, isVarArgs, isVisible, resolveLinkingProxy, toString, validateArity, validateTypeArgumentConformance, validateTypeArity, validateUnhandledExceptions, validateUnhandledExceptions, validateVisibilityaccept, applyToComputationState, computeArgumentType, computeArgumentTypes, computeFixedArityArgumentType, computeVarArgumentType, createArgumentTypeSubstitutor, createLinkingTypeComputationState, createVarArgTypeComputationState, discardRefinementTypeIfReassigned, getActualType, getActualType, getDeclaratorParameterMapping, getDeclaredType, getExpectedType, getExpression, getState, getSubstitutedExpectedType, getSyntacticTypeArguments, getTypeArguments, hasReceiver, initializeArgumentTypeComputation, initializeConstraintMapping, initializeMapping, initializeTypeParameterMapping, initializeTypeParameterMapping, isRawTypeContext, isTypeLiteral, mustDiscardRefinement, preApply, resolveAgainstActualType, resolveArgumentTypeclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetTypeArgumentsapplyToComputationState, getExpression, getFeature, getPreferredCandidatepublic ConstructorLinkingCandidate(XConstructorCall constructorCall, IIdentifiableElementDescription description, ITypeExpectation expectation, ExpressionTypeComputationState state)
public org.eclipse.xtext.common.types.JvmConstructor getConstructor()
getConstructor in interface IConstructorLinkingCandidatepublic XConstructorCall getConstructorCall()
getConstructorCall in interface IConstructorLinkingCandidateprotected ILinkingCandidate createAmbiguousLinkingCandidate(AbstractPendingLinkingCandidate<?> second)
AbstractPendingLinkingCandidatecreateAmbiguousLinkingCandidate in class AbstractPendingLinkingCandidate<XConstructorCall>protected java.util.List<XExpression> getArguments()
getArguments in class AbstractLinkingCandidate<XConstructorCall>protected int getConformanceFlags(int idx,
boolean recompute)
getConformanceFlags in class AbstractPendingLinkingCandidate<XConstructorCall>protected LightweightTypeReference deferredBindTypeArgument(ITypeExpectation expectation, LightweightTypeReference type)
deferredBindTypeArgument in class AbstractLinkingCandidate<XConstructorCall>public boolean validate(org.eclipse.xtext.util.IAcceptor<? super org.eclipse.xtext.diagnostics.AbstractDiagnostic> result)
AbstractPendingLinkingCandidatevalidate in interface IApplicableCandidatevalidate in class AbstractPendingLinkingCandidate<XConstructorCall>true if further validation should be performed.protected boolean isBoundTypeArgumentSkipped(org.eclipse.xtext.common.types.JvmTypeParameter type,
java.util.Map<org.eclipse.xtext.common.types.JvmTypeParameter,LightweightMergedBoundTypeArgument> mapping,
ITypeReferenceOwner owner)
isBoundTypeArgumentSkipped in class AbstractLinkingCandidate<XConstructorCall>protected org.eclipse.emf.ecore.EReference getDefaultValidationFeature()
getDefaultValidationFeature in class AbstractPendingLinkingCandidate<XConstructorCall>protected org.eclipse.emf.ecore.EReference getInvalidArgumentsValidationFeature()
getInvalidArgumentsValidationFeature in class AbstractPendingLinkingCandidate<XConstructorCall>protected java.lang.String getFeatureTypeName()
AbstractPendingLinkingCandidateJvmOperation may
return method, a XVariableDeclaration may identify itself as local variable.getFeatureTypeName in class AbstractPendingLinkingCandidate<XConstructorCall>protected java.lang.String getSimpleFeatureName()
getSimpleFeatureName in class AbstractPendingLinkingCandidate<XConstructorCall>public boolean isAnonymousClassConstructorCall()
isAnonymousClassConstructorCall in interface IConstructorLinkingCandidateprotected java.util.List<org.eclipse.xtext.common.types.JvmTypeReference> getPlainSyntacticTypeArguments()
getPlainSyntacticTypeArguments in class AbstractLinkingCandidate<XConstructorCall>public void applyToModel(IResolvedTypes resolvedTypes)
ILinkingCandidateresolve
of EMF. This implies that the linked feature call may still point to a proxy afterwards.applyToModel in interface IApplicableCandidateapplyToModel in interface ILinkingCandidateprotected java.util.List<org.eclipse.xtext.common.types.JvmTypeParameter> getDeclaredTypeParameters()
getDeclaredTypeParameters in class AbstractLinkingCandidate<XConstructorCall>