Uses of Class
com.github.javaparser.resolution.logic.InferenceContext
Packages that use InferenceContext
Package
Description
Implementation of model based on reflection.
-
Uses of InferenceContext in com.github.javaparser.symbolsolver.reflectionmodel
Methods in com.github.javaparser.symbolsolver.reflectionmodel with parameters of type InferenceContextModifier and TypeMethodDescriptionprivate List<ResolvedType> ReflectionInterfaceDeclaration.collectRegularConstraints(MethodUsage methodUsage, 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 List<ResolvedType> ReflectionInterfaceDeclaration.collectTypeConstraints(MethodUsage methodUsage, List<ResolvedType> parameterTypes, InferenceContext inferenceContext) Collects type constraints by comparing formal parameter types with actual parameter types.private List<ResolvedType> ReflectionInterfaceDeclaration.collectVarArgsConstraints(MethodUsage methodUsage, List<ResolvedType> parameterTypes, InferenceContext inferenceContext, int formalParamCount) Collects type constraints for varargs methods.private voidReflectionInterfaceDeclaration.processVarArgsParameter(ResolvedType varargsParamType, List<ResolvedType> parameterTypes, int regularParamCount, InferenceContext inferenceContext, List<ResolvedType> constraints) Processes the varargs parameter by determining how arguments are passed and creating appropriate type constraints.private Optional<MethodUsage> ReflectionInterfaceDeclaration.resolveInferredTypes(MethodUsage methodUsage, 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.