Uses of Class
com.github.javaparser.resolution.MethodUsage
-
Packages that use MethodUsage Package Description com.github.javaparser.resolution com.github.javaparser.resolution.declarations com.github.javaparser.resolution.logic com.github.javaparser.resolution.model.typesystem com.github.javaparser.resolution.types com.github.javaparser.symbolsolver.core.resolution com.github.javaparser.symbolsolver.declarations.common com.github.javaparser.symbolsolver.javaparsermodel Implementation of model based on JavaParser.com.github.javaparser.symbolsolver.javaparsermodel.contexts com.github.javaparser.symbolsolver.javaparsermodel.declarations com.github.javaparser.symbolsolver.javassistmodel Implementation of model based on Javassist.com.github.javaparser.symbolsolver.logic com.github.javaparser.symbolsolver.reflectionmodel Implementation of model based on reflection.com.github.javaparser.symbolsolver.resolution com.github.javaparser.symbolsolver.resolution.typeinference -
-
Uses of MethodUsage in com.github.javaparser.resolution
Methods in com.github.javaparser.resolution that return MethodUsage Modifier and Type Method Description MethodUsageMethodUsage. replaceExceptionType(int i, ResolvedType replaced)MethodUsageMethodUsage. replaceParamType(int i, ResolvedType replaced)MethodUsageMethodUsage. replaceReturnType(ResolvedType returnType)MethodUsageMethodUsage. replaceTypeParameter(ResolvedTypeParameterDeclaration typeParameter, ResolvedType type)MethodUsageSolver. solveMethod(java.lang.String methodName, java.util.List<ResolvedType> argumentsTypes, Node node)MethodUsageSolver. solveMethod(java.lang.String methodName, java.util.List<ResolvedType> argumentsTypes, Context context)Methods in com.github.javaparser.resolution that return types with arguments of type MethodUsage Modifier and Type Method Description java.util.Optional<MethodUsage>Context. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentsTypes)Similar to solveMethod but we return a MethodUsage.Methods in com.github.javaparser.resolution with parameters of type MethodUsage Modifier and Type Method Description booleanMethodUsage. isReturnTypeSubstituable(MethodUsage otherMethodUsage)booleanMethodUsage. isSameSignature(MethodUsage otherMethodUsage)booleanMethodUsage. isSubSignature(MethodUsage otherMethodUsage) -
Uses of MethodUsage in com.github.javaparser.resolution.declarations
Methods in com.github.javaparser.resolution.declarations that return types with arguments of type MethodUsage Modifier and Type Method Description java.util.Set<MethodUsage>ResolvedReferenceTypeDeclaration. getAllMethods()Return a list of all the methods declared of this type declaration, either declared or inherited. -
Uses of MethodUsage in com.github.javaparser.resolution.logic
Methods in com.github.javaparser.resolution.logic that return MethodUsage Modifier and Type Method Description private static MethodUsageMethodResolutionLogic. substituteDeclaringTypeParameters(MethodUsage methodUsage, TypeSolver typeSolver)Substitutes type variables from the declaring type into the method signature.Methods in com.github.javaparser.resolution.logic that return types with arguments of type MethodUsage Modifier and Type Method Description static java.util.Optional<MethodUsage>MethodResolutionLogic. findMostApplicableUsage(java.util.List<MethodUsage> methods, java.lang.String name, java.util.List<ResolvedType> argumentsTypes, TypeSolver typeSolver)static java.util.Optional<MethodUsage>FunctionalInterfaceLogic. getFunctionalMethod(ResolvedReferenceTypeDeclaration typeDeclaration)Get the functional method defined by the type, if any.static java.util.Optional<MethodUsage>FunctionalInterfaceLogic. getFunctionalMethod(ResolvedType type)Get the functional method defined by the type, if any.Methods in com.github.javaparser.resolution.logic with parameters of type MethodUsage Modifier and Type Method Description private static booleanMethodResolutionLogic. areOverride(MethodUsage winningCandidate, MethodUsage other)static ResolvedTypeMethodResolutionLogic. getMethodUsageExplicitAndVariadicParameterType(MethodUsage method, int i)static booleanMethodResolutionLogic. isApplicable(MethodUsage methodUsage, java.lang.String needleName, java.util.List<ResolvedType> needleParameterTypes, TypeSolver typeSolver)Checks if a method usage is applicable for a given method name and parameter types.private static booleanMethodResolutionLogic. isMoreSpecific(MethodUsage methodA, MethodUsage methodB, java.util.List<ResolvedType> argumentTypes)private static booleanFunctionalInterfaceLogic. isPublicMemberOfObject(MethodUsage m)private static MethodUsageMethodResolutionLogic. substituteDeclaringTypeParameters(MethodUsage methodUsage, TypeSolver typeSolver)Substitutes type variables from the declaring type into the method signature.Method parameters in com.github.javaparser.resolution.logic with type arguments of type MethodUsage Modifier and Type Method Description static java.util.Optional<MethodUsage>MethodResolutionLogic. findMostApplicableUsage(java.util.List<MethodUsage> methods, java.lang.String name, java.util.List<ResolvedType> argumentsTypes, TypeSolver typeSolver) -
Uses of MethodUsage in com.github.javaparser.resolution.model.typesystem
Methods in com.github.javaparser.resolution.model.typesystem that return types with arguments of type MethodUsage Modifier and Type Method Description java.util.Set<MethodUsage>ReferenceTypeImpl. getDeclaredMethods() -
Uses of MethodUsage in com.github.javaparser.resolution.types
Methods in com.github.javaparser.resolution.types that return types with arguments of type MethodUsage Modifier and Type Method Description abstract java.util.Set<MethodUsage>ResolvedReferenceType. getDeclaredMethods()Methods declared on this type. -
Uses of MethodUsage in com.github.javaparser.symbolsolver.core.resolution
Methods in com.github.javaparser.symbolsolver.core.resolution that return MethodUsage Modifier and Type Method Description MethodUsageTypeVariableResolutionCapability. resolveTypeVariables(Context context, java.util.List<ResolvedType> parameterTypes)Methods in com.github.javaparser.symbolsolver.core.resolution that return types with arguments of type MethodUsage Modifier and Type Method Description java.util.Optional<MethodUsage>MethodUsageResolutionCapability. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentTypes, Context invocationContext, java.util.List<ResolvedType> typeParameters) -
Uses of MethodUsage in com.github.javaparser.symbolsolver.declarations.common
Methods in com.github.javaparser.symbolsolver.declarations.common that return MethodUsage Modifier and Type Method Description MethodUsageMethodDeclarationCommonLogic. resolveTypeVariables(Context context, java.util.List<ResolvedType> parameterTypes) -
Uses of MethodUsage in com.github.javaparser.symbolsolver.javaparsermodel
Methods in com.github.javaparser.symbolsolver.javaparsermodel that return MethodUsage Modifier and Type Method Description MethodUsageJavaParserFacade. solveMethodAsUsage(MethodCallExpr call)protected MethodUsageJavaParserFacade. toMethodUsage(MethodReferenceExpr methodReferenceExpr, java.util.List<ResolvedType> paramTypes) -
Uses of MethodUsage in com.github.javaparser.symbolsolver.javaparsermodel.contexts
Methods in com.github.javaparser.symbolsolver.javaparsermodel.contexts that return MethodUsage Modifier and Type Method Description private MethodUsageMethodCallExprContext. replaceTypeParameter(MethodUsage methodUsage, java.util.Map<ResolvedTypeParameterDeclaration,ResolvedType> matchedTypeParameters)private MethodUsageMethodCallExprContext. resolveMethodTypeParameters(MethodUsage methodUsage, java.util.List<ResolvedType> actualParamTypes)private MethodUsageMethodCallExprContext. resolveMethodTypeParametersFromExplicitList(TypeSolver typeSolver, MethodUsage methodUsage)Methods in com.github.javaparser.symbolsolver.javaparsermodel.contexts that return types with arguments of type MethodUsage Modifier and Type Method Description java.util.Optional<MethodUsage>AbstractJavaParserContext. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentsTypes)Similar to solveMethod but we return a MethodUsage.static java.util.Optional<MethodUsage>ContextHelper. solveMethodAsUsage(ResolvedTypeDeclaration typeDeclaration, java.lang.String name, java.util.List<ResolvedType> argumentsTypes, Context invokationContext, java.util.List<ResolvedType> typeParameters)private java.util.Optional<MethodUsage>MethodCallExprContext. solveMethodAsUsage(ResolvedReferenceType refType, java.lang.String name, java.util.List<ResolvedType> argumentsTypes, Context invokationContext)private java.util.Optional<MethodUsage>MethodCallExprContext. solveMethodAsUsage(ResolvedType type, java.lang.String name, java.util.List<ResolvedType> argumentsTypes, Context invokationContext)private java.util.Optional<MethodUsage>MethodCallExprContext. solveMethodAsUsage(ResolvedTypeVariable tp, java.lang.String name, java.util.List<ResolvedType> argumentsTypes, Context invokationContext)java.util.Optional<MethodUsage>MethodCallExprContext. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentsTypes)Methods in com.github.javaparser.symbolsolver.javaparsermodel.contexts with parameters of type MethodUsage Modifier and Type Method Description private MethodUsageMethodCallExprContext. replaceTypeParameter(MethodUsage methodUsage, java.util.Map<ResolvedTypeParameterDeclaration,ResolvedType> matchedTypeParameters)private MethodUsageMethodCallExprContext. resolveMethodTypeParameters(MethodUsage methodUsage, java.util.List<ResolvedType> actualParamTypes)private MethodUsageMethodCallExprContext. resolveMethodTypeParametersFromExplicitList(TypeSolver typeSolver, MethodUsage methodUsage) -
Uses of MethodUsage in com.github.javaparser.symbolsolver.javaparsermodel.declarations
Methods in com.github.javaparser.symbolsolver.javaparsermodel.declarations that return MethodUsage Modifier and Type Method Description MethodUsageJavaParserEnumDeclaration.ValueOfMethod. getUsage(Node node)MethodUsageJavaParserEnumDeclaration.ValuesMethod. getUsage(Node node)MethodUsageJavaParserMethodDeclaration. getUsage(Node node)MethodUsageJavaParserEnumDeclaration.ValueOfMethod. resolveTypeVariables(Context context, java.util.List<ResolvedType> parameterTypes)MethodUsageJavaParserEnumDeclaration.ValuesMethod. resolveTypeVariables(Context context, java.util.List<ResolvedType> parameterTypes)MethodUsageJavaParserMethodDeclaration. resolveTypeVariables(Context context, java.util.List<ResolvedType> parameterTypes)MethodUsageJavaParserRecordDeclaration.ImplicitGetterMethod. resolveTypeVariables(Context context, java.util.List<ResolvedType> parameterTypes)Methods in com.github.javaparser.symbolsolver.javaparsermodel.declarations that return types with arguments of type MethodUsage Modifier and Type Method Description java.util.Optional<MethodUsage>JavaParserAnonymousClassDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentTypes, Context invocationContext, java.util.List<ResolvedType> typeParameters)java.util.Optional<MethodUsage>JavaParserClassDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentTypes, Context invocationContext, java.util.List<ResolvedType> typeParameters)java.util.Optional<MethodUsage>JavaParserEnumDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentTypes, Context invokationContext, java.util.List<ResolvedType> typeParameters)java.util.Optional<MethodUsage>JavaParserInterfaceDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentTypes, Context invocationContext, java.util.List<ResolvedType> typeParameters)java.util.Optional<MethodUsage>JavaParserRecordDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentTypes, Context invocationContext, java.util.List<ResolvedType> typeParameters) -
Uses of MethodUsage in com.github.javaparser.symbolsolver.javassistmodel
Methods in com.github.javaparser.symbolsolver.javassistmodel that return MethodUsage Modifier and Type Method Description MethodUsageJavassistMethodDeclaration. getUsage(Node node)MethodUsageJavassistMethodDeclaration. resolveTypeVariables(Context context, java.util.List<ResolvedType> parameterTypes)Methods in com.github.javaparser.symbolsolver.javassistmodel that return types with arguments of type MethodUsage Modifier and Type Method Description java.util.Optional<MethodUsage>JavassistClassDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentsTypes, Context invokationContext, java.util.List<ResolvedType> typeParameterValues)Deprecated.java.util.Optional<MethodUsage>JavassistEnumDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentsTypes, Context invokationContext, java.util.List<ResolvedType> typeParameterValues)java.util.Optional<MethodUsage>JavassistInterfaceDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentsTypes, Context invokationContext, java.util.List<ResolvedType> typeParameterValues)Deprecated.java.util.Optional<MethodUsage>JavassistRecordDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentsTypes, Context invokationContext, java.util.List<ResolvedType> typeParameterValues)Deprecated.(package private) static java.util.Optional<MethodUsage>JavassistUtils. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentsTypes, TypeSolver typeSolver, Context invokationContext, java.util.List<ResolvedType> typeParameterValues, ResolvedReferenceTypeDeclaration scopeType, javassist.CtClass ctClass) -
Uses of MethodUsage in com.github.javaparser.symbolsolver.logic
Methods in com.github.javaparser.symbolsolver.logic that return types with arguments of type MethodUsage Modifier and Type Method Description java.util.Set<MethodUsage>AbstractTypeDeclaration. getAllMethods() -
Uses of MethodUsage in com.github.javaparser.symbolsolver.reflectionmodel
Methods in com.github.javaparser.symbolsolver.reflectionmodel that return MethodUsage Modifier and Type Method Description private static MethodUsageReflectionMethodResolutionLogic. replaceParams(java.util.List<ResolvedType> typeParameterValues, ResolvedReferenceTypeDeclaration typeParametrizable, ResolvedMethodDeclaration methodDeclaration)MethodUsageReflectionMethodDeclaration. resolveTypeVariables(Context context, java.util.List<ResolvedType> parameterTypes)Methods in com.github.javaparser.symbolsolver.reflectionmodel that return types with arguments of type MethodUsage Modifier and Type Method Description private java.util.Optional<MethodUsage>ReflectionInterfaceDeclaration. performTypeInference(MethodUsage methodUsage, java.util.List<ResolvedType> parameterTypes)Performs generic type inference on a resolved method usage by analyzing the relationship between formal parameter types and actual parameter types provided at the call site.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.java.util.Optional<MethodUsage>ReflectionAnnotationDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> parameterTypes, Context invokationContext, java.util.List<ResolvedType> typeParameterValues)java.util.Optional<MethodUsage>ReflectionClassDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentsTypes, Context invokationContext, java.util.List<ResolvedType> typeParameterValues)java.util.Optional<MethodUsage>ReflectionEnumDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> parameterTypes, Context invokationContext, java.util.List<ResolvedType> typeParameterValues)java.util.Optional<MethodUsage>ReflectionInterfaceDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> parameterTypes, Context invokationContext, java.util.List<ResolvedType> typeParameterValues)Solves method usage with proper generic type inference, including support for varargs methods.(package private) static java.util.Optional<MethodUsage>ReflectionMethodResolutionLogic. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentsTypes, TypeSolver typeSolver, Context invokationContext, java.util.List<ResolvedType> typeParameterValues, ResolvedReferenceTypeDeclaration scopeType, java.lang.Class clazz)java.util.Optional<MethodUsage>ReflectionRecordDeclaration. solveMethodAsUsage(java.lang.String name, java.util.List<ResolvedType> argumentsTypes, Context invokationContext, java.util.List<ResolvedType> typeParameterValues)Methods in com.github.javaparser.symbolsolver.reflectionmodel with parameters of type MethodUsage Modifier and Type Method Description 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 java.util.Optional<MethodUsage>ReflectionInterfaceDeclaration. performTypeInference(MethodUsage methodUsage, java.util.List<ResolvedType> parameterTypes)Performs generic type inference on a resolved method usage by analyzing the relationship between formal parameter types and actual parameter types provided at the call site.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. -
Uses of MethodUsage in com.github.javaparser.symbolsolver.resolution
Methods in com.github.javaparser.symbolsolver.resolution that return MethodUsage Modifier and Type Method Description MethodUsageSymbolSolver. solveMethod(java.lang.String methodName, java.util.List<ResolvedType> argumentsTypes, Node node)MethodUsageSymbolSolver. solveMethod(java.lang.String methodName, java.util.List<ResolvedType> argumentsTypes, Context context) -
Uses of MethodUsage in com.github.javaparser.symbolsolver.resolution.typeinference
Methods in com.github.javaparser.symbolsolver.resolution.typeinference that return MethodUsage Modifier and Type Method Description private static MethodUsageTypeInference. instantiationSetToMethodUsage(ResolvedMethodDeclaration methodDeclaration, InstantiationSet instantiationSet)static MethodUsageTypeInference. toMethodUsage(MethodCallExpr call, ResolvedMethodDeclaration methodDeclaration, TypeSolver typeSolver)Methods in com.github.javaparser.symbolsolver.resolution.typeinference with parameters of type MethodUsage Modifier and Type Method Description static MethodTypeMethodType. fromMethodUsage(MethodUsage methodUsage)
-