public class TypeInsteadOfConstructorLinkingCandidate extends AbstractUnresolvableReference implements IConstructorLinkingCandidate
| Constructor and Description |
|---|
TypeInsteadOfConstructorLinkingCandidate(XConstructorCall constructorCall,
IIdentifiableElementDescription description,
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 void |
applyType() |
protected java.util.List<XExpression> |
getArguments() |
org.eclipse.xtext.common.types.JvmConstructor |
getConstructor() |
XConstructorCall |
getConstructorCall() |
org.eclipse.xtext.common.types.JvmIdentifiableElement |
getFeature()
The currently considered feature (if any).
|
java.util.List<LightweightTypeReference> |
getSyntacticTypeArguments() |
java.util.List<LightweightTypeReference> |
getTypeArguments()
The resolved type arguments.
|
boolean |
isAnonymousClassConstructorCall() |
boolean |
validate(org.eclipse.xtext.util.IAcceptor<? super org.eclipse.xtext.diagnostics.AbstractDiagnostic> result)
Produce diagnostics for this condidate.
|
applyToComputationState, computeArgumentTypes, getContext, getExpression, getPreferredCandidate, getResolvedTypes, getStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplyToComputationState, getExpression, getPreferredCandidatepublic TypeInsteadOfConstructorLinkingCandidate(XConstructorCall constructorCall, IIdentifiableElementDescription description, ExpressionTypeComputationState state)
public org.eclipse.xtext.common.types.JvmConstructor getConstructor()
getConstructor in interface IConstructorLinkingCandidatepublic boolean isAnonymousClassConstructorCall()
isAnonymousClassConstructorCall in interface IConstructorLinkingCandidateprotected void applyType()
applyType in class AbstractUnresolvableReferencepublic XConstructorCall getConstructorCall()
getConstructorCall in interface IConstructorLinkingCandidateprotected java.util.List<XExpression> getArguments()
getArguments in class AbstractUnresolvableReferencepublic org.eclipse.xtext.common.types.JvmIdentifiableElement getFeature()
ILinkingCandidatenull.getFeature in interface ILinkingCandidategetFeature in class AbstractUnresolvableReferencepublic boolean validate(org.eclipse.xtext.util.IAcceptor<? super org.eclipse.xtext.diagnostics.AbstractDiagnostic> result)
IApplicableCandidatevalidate in interface IApplicableCandidatevalidate in class AbstractUnresolvableReferencetrue if further validation should be performed.public java.util.List<LightweightTypeReference> getTypeArguments()
IConstructorLinkingCandidate
class C<T, V> {
public C(P p) {}
}
An invocation of the constructor C will return three type arguments, the bound
values of for P, T and V.getTypeArguments in interface IConstructorLinkingCandidategetTypeArguments in interface ILinkingCandidatepublic java.util.List<LightweightTypeReference> getSyntacticTypeArguments()
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 ILinkingCandidate