private java.util.List<ResolvedType> |
ReflectionInterfaceDeclaration.collectRegularConstraints(MethodUsage methodUsage,
java.util.List<ResolvedType> parameterTypes,
InferenceContext inferenceContext) |
Collects type constraints for regular (non-varargs) methods by creating pairs
between each formal parameter type and its corresponding actual parameter type.
|
private java.util.List<ResolvedType> |
ReflectionInterfaceDeclaration.collectTypeConstraints(MethodUsage methodUsage,
java.util.List<ResolvedType> parameterTypes,
InferenceContext inferenceContext) |
Collects type constraints by comparing formal parameter types with actual parameter types.
|
private java.util.List<ResolvedType> |
ReflectionInterfaceDeclaration.collectVarArgsConstraints(MethodUsage methodUsage,
java.util.List<ResolvedType> parameterTypes,
InferenceContext inferenceContext,
int formalParamCount) |
Collects type constraints for varargs methods.
|
private void |
ReflectionInterfaceDeclaration.processVarArgsParameter(ResolvedType varargsParamType,
java.util.List<ResolvedType> parameterTypes,
int regularParamCount,
InferenceContext inferenceContext,
java.util.List<ResolvedType> constraints) |
Processes the varargs parameter by determining how arguments are passed and creating
appropriate type constraints.
|
private java.util.Optional<MethodUsage> |
ReflectionInterfaceDeclaration.resolveInferredTypes(MethodUsage methodUsage,
java.util.List<ResolvedType> constraints,
InferenceContext inferenceContext) |
Applies the inferred generic types to the method usage by resolving all collected constraints
and updating both parameter types and return type with their concrete resolved types.
|