Interface IConstructorLinkingCandidate
-
- All Superinterfaces:
IApplicableCandidate,ILinkingCandidate
- All Known Implementing Classes:
AmbiguousConstructorLinkingCandidate,ConstructorLinkingCandidate,NullConstructorLinkingCandidate,ResolvedConstructor,TypeInsteadOfConstructorLinkingCandidate,UnresolvableConstructorCall
public interface IConstructorLinkingCandidate extends ILinkingCandidate
A constructor linking candidate represents an actual or a possible value of aconstructor call. It's a typesafe specialization of theILinkingCandidate
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description org.eclipse.xtext.common.types.JvmConstructorgetConstructor()XConstructorCallgetConstructorCall()java.util.List<LightweightTypeReference>getTypeArguments()The resolved type arguments.booleanisAnonymousClassConstructorCall()-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.IApplicableCandidate
validate
-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.ILinkingCandidate
applyToComputationState, applyToModel, getExpression, getFeature, getPreferredCandidate
-
-
-
-
Method Detail
-
getConstructorCall
XConstructorCall getConstructorCall()
-
getConstructor
org.eclipse.xtext.common.types.JvmConstructor getConstructor()
-
isAnonymousClassConstructorCall
boolean isAnonymousClassConstructorCall()
-
getTypeArguments
java.util.List<LightweightTypeReference> getTypeArguments()
The resolved type arguments. If the constructor itself defines type parameters, their resolved representation is prepended to the list of type arguments. Consider the following type:class C<T, V> { publicAn invocation of the constructorC(P p) {} }
Cwill return three type arguments, the bound values of forP,TandV.- Specified by:
getTypeArgumentsin interfaceILinkingCandidate
-
-