public class DefaultParameterTypeInferencePolicy extends ParameterTypeInferencePolicy
Modifier and Type | Field and Description |
---|---|
static DefaultParameterTypeInferencePolicy |
INSTANCE |
Constructor and Description |
---|
DefaultParameterTypeInferencePolicy() |
Modifier and Type | Method and Description |
---|---|
PsiType |
adjustInferredType(PsiManager manager,
PsiType guess,
ConstraintType constraintType) |
PsiType |
getDefaultExpectedType(PsiCallExpression methodCall) |
Pair<PsiType,ConstraintType> |
getInferredTypeWithNoConstraint(PsiManager manager,
PsiType superType) |
Pair<PsiType,ConstraintType> |
inferTypeConstraintFromCallContext(PsiExpression innerMethodCall,
PsiExpressionList parent,
PsiCallExpression contextCall,
PsiTypeParameter typeParameter) |
inferLowerBoundForFreshVariables, inferRuntimeExceptionForThrownBoundWithNoConstraints, isVarargsIgnored, requestForBoxingExplicitly
public static final DefaultParameterTypeInferencePolicy INSTANCE
public Pair<PsiType,ConstraintType> inferTypeConstraintFromCallContext(PsiExpression innerMethodCall, PsiExpressionList parent, PsiCallExpression contextCall, PsiTypeParameter typeParameter)
inferTypeConstraintFromCallContext
in class ParameterTypeInferencePolicy
public PsiType getDefaultExpectedType(PsiCallExpression methodCall)
getDefaultExpectedType
in class ParameterTypeInferencePolicy
public Pair<PsiType,ConstraintType> getInferredTypeWithNoConstraint(PsiManager manager, PsiType superType)
getInferredTypeWithNoConstraint
in class ParameterTypeInferencePolicy
public PsiType adjustInferredType(PsiManager manager, PsiType guess, ConstraintType constraintType)
adjustInferredType
in class ParameterTypeInferencePolicy