Class ResolvedConstructor
- java.lang.Object
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractLinkingCandidate<Expression>
-
- org.eclipse.xtext.xbase.typesystem.internal.AbstractResolvedReference<XConstructorCall>
-
- org.eclipse.xtext.xbase.typesystem.internal.ResolvedConstructor
-
- All Implemented Interfaces:
IApplicableCandidate,IConstructorLinkingCandidate,ILinkingCandidate
public class ResolvedConstructor extends AbstractResolvedReference<XConstructorCall> implements IConstructorLinkingCandidate
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractLinkingCandidate
AbstractLinkingCandidate.ArgumentTypeComputationState, AbstractLinkingCandidate.ObservableTypeExpectation
-
-
Field Summary
-
Fields inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractResolvedReference
resolvedElement
-
Fields inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractLinkingCandidate
arguments, typeArguments
-
-
Constructor Summary
Constructors Constructor Description ResolvedConstructor(XConstructorCall constructorCall, org.eclipse.xtext.common.types.JvmConstructor constructor, ITypeExpectation expectation, ExpressionTypeComputationState state)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.util.List<XExpression>getArguments()org.eclipse.xtext.common.types.JvmConstructorgetConstructor()XConstructorCallgetConstructorCall()java.util.List<org.eclipse.xtext.common.types.JvmTypeParameter>getDeclaredTypeParameters()protected java.util.List<org.eclipse.xtext.common.types.JvmTypeReference>getPlainSyntacticTypeArguments()ILinkingCandidategetPreferredCandidate(ILinkingCandidate other)Produces the best candidate for the current two candidates.booleanisAnonymousClassConstructorCall()-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractResolvedReference
applyToModel, getFeature, getTypeParameterMapping, toString, validate
-
Methods inherited from class org.eclipse.xtext.xbase.typesystem.internal.AbstractLinkingCandidate
accept, 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, resolveArgumentType
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.IApplicableCandidate
validate
-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.IConstructorLinkingCandidate
getTypeArguments
-
Methods inherited from interface org.eclipse.xtext.xbase.typesystem.computation.ILinkingCandidate
applyToComputationState, applyToModel, getExpression, getFeature
-
-
-
-
Constructor Detail
-
ResolvedConstructor
public ResolvedConstructor(XConstructorCall constructorCall, org.eclipse.xtext.common.types.JvmConstructor constructor, ITypeExpectation expectation, ExpressionTypeComputationState state)
-
-
Method Detail
-
getPreferredCandidate
public ILinkingCandidate getPreferredCandidate(ILinkingCandidate other)
Description copied from interface:ILinkingCandidateProduces the best candidate for the current two candidates. It may turn out that both candidates (thisandother) 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 onILinkingCandidate.applyToComputationState(),ILinkingCandidate.applyToModel(IResolvedTypes), andIApplicableCandidate.validate(IAcceptor).- Specified by:
getPreferredCandidatein interfaceILinkingCandidate
-
getConstructor
public org.eclipse.xtext.common.types.JvmConstructor getConstructor()
- Specified by:
getConstructorin interfaceIConstructorLinkingCandidate
-
isAnonymousClassConstructorCall
public boolean isAnonymousClassConstructorCall()
- Specified by:
isAnonymousClassConstructorCallin interfaceIConstructorLinkingCandidate
-
getConstructorCall
public XConstructorCall getConstructorCall()
- Specified by:
getConstructorCallin interfaceIConstructorLinkingCandidate
-
getArguments
protected java.util.List<XExpression> getArguments()
- Specified by:
getArgumentsin classAbstractLinkingCandidate<XConstructorCall>
-
getPlainSyntacticTypeArguments
protected java.util.List<org.eclipse.xtext.common.types.JvmTypeReference> getPlainSyntacticTypeArguments()
- Specified by:
getPlainSyntacticTypeArgumentsin classAbstractLinkingCandidate<XConstructorCall>
-
getDeclaredTypeParameters
public java.util.List<org.eclipse.xtext.common.types.JvmTypeParameter> getDeclaredTypeParameters()
- Overrides:
getDeclaredTypeParametersin classAbstractLinkingCandidate<XConstructorCall>
-
-