public class ProcessCandidateParameterTypeInferencePolicy extends DefaultParameterTypeInferencePolicy
Modifier and Type | Field and Description |
---|---|
static ProcessCandidateParameterTypeInferencePolicy |
INSTANCE |
Constructor and Description |
---|
ProcessCandidateParameterTypeInferencePolicy() |
Modifier and Type | Method and Description |
---|---|
protected java.util.List<PsiExpression> |
getExpressions(PsiExpression[] expressions,
int i) |
protected JavaResolveResult [] |
getResults(PsiCallExpression contextCall,
int exprIdx) |
protected PsiSubstitutor |
getSubstitutor(PsiCallExpression contextCall,
PsiExpression[] expressions,
int i,
JavaResolveResult result) |
protected static Pair<PsiType,ConstraintType> |
inferConstraint(PsiTypeParameter typeParameter,
PsiExpression innerMethodCall,
int parameterIdx,
PsiType innerReturnType,
JavaResolveResult result,
PsiSubstitutor substitutor) |
Pair<PsiType,ConstraintType> |
inferTypeConstraintFromCallContext(PsiExpression innerMethodCall,
PsiExpressionList expressionList,
PsiCallExpression contextCall,
PsiTypeParameter typeParameter) |
adjustInferredType, getDefaultExpectedType, getInferredTypeWithNoConstraint
inferLowerBoundForFreshVariables, inferRuntimeExceptionForThrownBoundWithNoConstraints, isVarargsIgnored, requestForBoxingExplicitly
public static final ProcessCandidateParameterTypeInferencePolicy INSTANCE
public ProcessCandidateParameterTypeInferencePolicy()
public Pair<PsiType,ConstraintType> inferTypeConstraintFromCallContext(PsiExpression innerMethodCall, PsiExpressionList expressionList, PsiCallExpression contextCall, PsiTypeParameter typeParameter)
inferTypeConstraintFromCallContext
in class DefaultParameterTypeInferencePolicy
protected PsiSubstitutor getSubstitutor(PsiCallExpression contextCall, PsiExpression[] expressions, int i, JavaResolveResult result)
protected java.util.List<PsiExpression> getExpressions(PsiExpression[] expressions, int i)
protected static Pair<PsiType,ConstraintType> inferConstraint(PsiTypeParameter typeParameter, PsiExpression innerMethodCall, int parameterIdx, PsiType innerReturnType, JavaResolveResult result, PsiSubstitutor substitutor)
protected JavaResolveResult [] getResults(PsiCallExpression contextCall, int exprIdx) throws MethodProcessorSetupFailedException