Home
last modified time | relevance | path

Searched refs:MethodUsage (Results 1 – 25 of 58) sorted by relevance

123

/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/
DMethodUsage.java40 public class MethodUsage implements ResolvedTypeParametrized { class
47 public MethodUsage(ResolvedMethodDeclaration declaration) { in MethodUsage() method in MethodUsage
59 public MethodUsage(ResolvedMethodDeclaration declaration, in MethodUsage() method in MethodUsage
65 …public MethodUsage(ResolvedMethodDeclaration declaration, List<ResolvedType> paramTypes, ResolvedT… in MethodUsage() method in MethodUsage
70 …private MethodUsage(ResolvedMethodDeclaration declaration, List<ResolvedType> paramTypes, Resolved… in MethodUsage() method in MethodUsage
107 public MethodUsage replaceParamType(int i, ResolvedType replaced) { in replaceParamType()
116 … return new MethodUsage(declaration, newParams, returnType, exceptionTypes, typeParametersMap); in replaceParamType()
119 public MethodUsage replaceExceptionType(int i, ResolvedType replaced) { in replaceExceptionType()
128 return new MethodUsage(declaration, paramTypes, returnType, newTypes, typeParametersMap); in replaceExceptionType()
131 public MethodUsage replaceReturnType(ResolvedType returnType) { in replaceReturnType()
[all …]
/external/javaparser/javaparser-symbol-solver-logic/src/main/java/com/github/javaparser/symbolsolver/logic/
DAbstractTypeDeclaration.java19 import com.github.javaparser.resolution.MethodUsage;
36 public final Set<MethodUsage> getAllMethods() { in getAllMethods()
37 Set<MethodUsage> methods = new HashSet<>(); in getAllMethods()
42 methods.add(new MethodUsage(methodDeclaration)); in getAllMethods()
47 for (MethodUsage mu : ancestor.getDeclaredMethods()) { in getAllMethods()
DFunctionalInterfaceLogic.java19 import com.github.javaparser.resolution.MethodUsage;
43 public static Optional<MethodUsage> getFunctionalMethod(ResolvedType type) { in getFunctionalMethod()
54 …public static Optional<MethodUsage> getFunctionalMethod(ResolvedReferenceTypeDeclaration typeDecla… in getFunctionalMethod()
56 Set<MethodUsage> methods = typeDeclaration.getAllMethods().stream() in getFunctionalMethod()
86 private static boolean declaredOnObject(MethodUsage m) { in declaredOnObject()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionMethodResolutionLogic.java19 import com.github.javaparser.resolution.MethodUsage;
73 …static Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> argumentsTypes, Ty… in solveMethodAsUsage()
86 List<MethodUsage> methods = new ArrayList<>(); in solveMethodAsUsage()
90MethodUsage methodUsage = replaceParams(typeParameterValues, scopeType, methodDeclaration); in solveMethodAsUsage()
100MethodUsage methodUsage = replaceParams(typeParameterValues, ancestor.getTypeDeclaration(), corres… in solveMethodAsUsage()
109MethodUsage usage = replaceParams(typeParameterValues, objectClass.getTypeDeclaration(), ref.getCo… in solveMethodAsUsage()
126 …private static MethodUsage replaceParams(List<ResolvedType> typeParameterValues, ResolvedReference… in replaceParams()
127 MethodUsage methodUsage = new MethodUsage(methodDeclaration); in replaceParams()
DReflectionClassDeclaration.java21 import com.github.javaparser.resolution.MethodUsage;
172 …public Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> argumentsTypes, Ty… in solveMethodAsUsage()
173 List<MethodUsage> methods = new ArrayList<>(); in solveMethodAsUsage()
177 MethodUsage methodUsage = new MethodUsage(methodDeclaration); in solveMethodAsUsage()
187 …Optional<MethodUsage> ref = ContextHelper.solveMethodAsUsage(superClass, name, argumentsTypes, typ… in solveMethodAsUsage()
193 …Optional<MethodUsage> ref = ContextHelper.solveMethodAsUsage(interfaceDeclaration.getTypeDeclarati… in solveMethodAsUsage()
198 …Optional<MethodUsage> ref = MethodResolutionLogic.findMostApplicableUsage(methods, name, arguments… in solveMethodAsUsage()
DReflectionEnumDeclaration.java18 import com.github.javaparser.resolution.MethodUsage;
162 …public Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> parameterTypes, Ty… in solveMethodAsUsage()
164 …Optional<MethodUsage> res = ReflectionMethodResolutionLogic.solveMethodAsUsage(name, parameterType… in solveMethodAsUsage()
169 MethodUsage methodUsage = res.get(); in solveMethodAsUsage()
DReflectionInterfaceDeclaration.java21 import com.github.javaparser.resolution.MethodUsage;
135 …public Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> parameterTypes, Ty… in solveMethodAsUsage()
137 …Optional<MethodUsage> res = ReflectionMethodResolutionLogic.solveMethodAsUsage(name, parameterType… in solveMethodAsUsage()
142 MethodUsage methodUsage = res.get(); in solveMethodAsUsage()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserAnonymousClassDeclarationTest.java10 import com.github.javaparser.resolution.MethodUsage;
29 MethodUsage methodUsage = in anonymousClassAsMethodArgument()
45 MethodUsage methodUsage = in callingSuperClassInnerClassMethod()
61 MethodUsage methodUsage = in callingAnonymousClassInnerMethod()
78 MethodUsage methodUsage = in usingAnonymousSuperClassInnerType()
93 MethodUsage methodUsage = in usingAnonymousClassInnerType()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DMethodCallExprContext.java22 import com.github.javaparser.resolution.MethodUsage;
74 …public Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> argumentsTypes, Ty… in solveMethodAsUsage()
84 MethodUsage methodUsage = new MethodUsage(m.getCorrespondingDeclaration()); in solveMethodAsUsage()
121 …private MethodUsage resolveMethodTypeParametersFromExplicitList(TypeSolver typeSolver, MethodUsage in resolveMethodTypeParametersFromExplicitList()
166 private Optional<MethodUsage> solveMethodAsUsage(ResolvedReferenceType refType, String name, in solveMethodAsUsage()
169 …Optional<MethodUsage> ref = ContextHelper.solveMethodAsUsage(refType.getTypeDeclaration(), name, a… in solveMethodAsUsage()
171 MethodUsage methodUsage = ref.get(); in solveMethodAsUsage()
298 …private MethodUsage resolveMethodTypeParameters(MethodUsage methodUsage, List<ResolvedType> actual… in resolveMethodTypeParameters()
379 …private Optional<MethodUsage> solveMethodAsUsage(ResolvedTypeVariable tp, String name, List<Resolv… in solveMethodAsUsage()
381 …Optional<MethodUsage> methodUsage = solveMethodAsUsage(bound.getType(), name, argumentsTypes, type… in solveMethodAsUsage()
[all …]
DLambdaExprContext.java24 import com.github.javaparser.resolution.MethodUsage;
64MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(methodCallExpr); in solveSymbolAsValue()
69 …Optional<MethodUsage> functionalMethodOpt = FunctionalInterfaceLogic.getFunctionalMethod(lambdaTyp… in solveSymbolAsValue()
71 MethodUsage functionalMethod = functionalMethodOpt.get(); in solveSymbolAsValue()
106 … Optional<MethodUsage> functionalMethod = FunctionalInterfaceLogic.getFunctionalMethod(t); in solveSymbolAsValue()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DVariadicResolutionTest.java25 import com.github.javaparser.resolution.MethodUsage;
68 MethodUsage callee = javaParserFacade.solveMethodAsUsage(callExpr); in methodCallWithReferenceTypeAsVaridicArgumentIsSolved()
82 MethodUsage callee = javaParserFacade.solveMethodAsUsage(callExpr); in resolveVariadicMethodWithGenericArgument()
98 MethodUsage call1 = javaParserFacade.solveMethodAsUsage(calls.get(0)); in selectMostSpecificVariadic()
99 MethodUsage call2 = javaParserFacade.solveMethodAsUsage(calls.get(1)); in selectMostSpecificVariadic()
DMethodsResolutionLogicTest.java19 import com.github.javaparser.resolution.MethodUsage;
57MethodUsage mu = constructorDeclaration.getAllMethods().stream().filter(m -> m.getDeclaration().ge… in compatibilityShouldConsiderAlsoTypeVariablesNegative()
67MethodUsage mu = constructorDeclaration.getAllMethods().stream().filter(m -> m.getDeclaration().ge… in compatibilityShouldConsiderAlsoTypeVariablesRaw()
79MethodUsage mu = constructorDeclaration.getAllMethods().stream().filter(m -> m.getDeclaration().ge… in compatibilityShouldConsiderAlsoTypeVariablesPositive()
DContextTest.java29 import com.github.javaparser.resolution.MethodUsage;
213MethodUsage ref = symbolSolver.solveMethod("getTypes", Collections.emptyList(), callToGetTypes); in resolveReferenceToMethod()
231 MethodUsage ref = symbolSolver.solveMethod("stream", Collections.emptyList(), callToStream); in resolveCascadeOfReferencesToMethod()
247 MethodUsage ref = symbolSolver.solveMethod("trim", Collections.emptyList(), callToTrim); in resolveReferenceToMethodCalledOnArrayAccess()
304 MethodUsage ref = symbolSolver.solveMethod("isEmpty", Collections.emptyList(), call); in resolveReferenceToLambdaParamSimplified()
319 MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(call); in resolveGenericReturnTypeOfMethodInJar()
336MethodUsage filterUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(callToGetTypes); in resolveTypeUsageOfFirstMethodInGenericClass()
352 MethodUsage filterUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(callToStream); in resolveTypeUsageOfMethodInGenericClass()
366 MethodUsage filterUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(callToFilter); in resolveTypeUsageOfCascadeMethodInGenericClass()
410MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(callToGetName); in resolveReferenceToCallOnLambdaParam()
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/
DJavassistUtils.java19 import com.github.javaparser.resolution.MethodUsage;
43 …static Optional<MethodUsage> getMethodUsage(CtClass ctClass, String name, List<ResolvedType> argum… in getMethodUsage()
48MethodUsage methodUsage = new MethodUsage(new JavassistMethodDeclaration(method, typeSolver)); in getMethodUsage()
74 …Optional<MethodUsage> ref = new JavassistClassDeclaration(superClass, typeSolver).solveMethodAsUsa… in getMethodUsage()
85 …Optional<MethodUsage> ref = new JavassistInterfaceDeclaration(interfaze, typeSolver).solveMethodAs… in getMethodUsage()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/model/typesystem/
DReferenceTypeImpl.java19 import com.github.javaparser.resolution.MethodUsage;
146 public Set<MethodUsage> getDeclaredMethods() { in getDeclaredMethods()
148 Set<MethodUsage> methods = new HashSet<>(); in getDeclaredMethods()
150 MethodUsage methodUsage = new MethodUsage(methodDeclaration); in getDeclaredMethods()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/
DContext.java19 import com.github.javaparser.resolution.MethodUsage;
88 …default Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> argumentsTypes, T… in solveMethodAsUsage()
92MethodUsage methodUsage = ContextHelper.resolveTypeVariables(this, methodDeclaration, argumentsTyp… in solveMethodAsUsage()
DContextHelper.java19 import com.github.javaparser.resolution.MethodUsage;
38 …static MethodUsage resolveTypeVariables(Context context, ResolvedMethodDeclaration methodDeclarati… in resolveTypeVariables()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/
DMethodCallExprContextResolutionTest.java23 import com.github.javaparser.resolution.MethodUsage;
73 …Optional<MethodUsage> ref = context.solveMethodAsUsage("foo", Collections.emptyList(), typeSolver); in solveNestedMethodCallExprContextWithoutScope()
94 …Optional<MethodUsage> ref = context.solveMethodAsUsage(callMethodName, Collections.emptyList(), ty… in assertCanSolveGenericMethodCallMustUseProvidedTypeArgs()
121 …Optional<MethodUsage> ref = context.solveMethodAsUsage(callMethodName, argumentsTypes, typeSolver); in assertCanSolveGenericMethodCallCanInferFromArguments()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserEnumDeclaration.java24 import com.github.javaparser.resolution.MethodUsage;
188 public Optional<MethodUsage> solveMethodAsUsage(String name, List<ResolvedType> parameterTypes, in solveMethodAsUsage()
281 public MethodUsage getUsage(Node node) { in getUsage()
285 … public MethodUsage resolveTypeVariables(Context context, List<ResolvedType> parameterTypes) { in resolveTypeVariables()
286 return new MethodUsage(this); in resolveTypeVariables()
DJavaParserMethodDeclaration.java22 import com.github.javaparser.resolution.MethodUsage;
87 public MethodUsage getUsage(Node node) { in getUsage()
91 public MethodUsage resolveTypeVariables(Context context, List<ResolvedType> parameterTypes) { in resolveTypeVariables()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/declarations/common/
DMethodDeclarationCommonLogic.java19 import com.github.javaparser.resolution.MethodUsage;
46 public MethodUsage resolveTypeVariables(Context context, List<ResolvedType> parameterTypes) { in resolveTypeVariables()
66 return new MethodUsage(methodDeclaration, params, returnType); in resolveTypeVariables()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/
DMethodResolutionLogic.java20 import com.github.javaparser.resolution.MethodUsage;
276 …public static boolean isApplicable(MethodUsage method, String name, List<ResolvedType> argumentsTy… in isApplicable()
515 …private static boolean isMoreSpecific(MethodUsage methodA, MethodUsage methodB, TypeSolver typeSol… in isMoreSpecific()
536 …public static Optional<MethodUsage> findMostApplicableUsage(List<MethodUsage> methods, String name… in findMostApplicableUsage()
537 …List<MethodUsage> applicableMethods = methods.stream().filter((m) -> isApplicable(m, name, argumen… in findMostApplicableUsage()
545 MethodUsage winningCandidate = applicableMethods.get(0); in findMostApplicableUsage()
547 MethodUsage other = applicableMethods.get(i); in findMostApplicableUsage()
567 private static boolean areOverride(MethodUsage winningCandidate, MethodUsage other) { in areOverride()
DSymbolSolver.java21 import com.github.javaparser.resolution.MethodUsage;
84 …public MethodUsage solveMethod(String methodName, List<ResolvedType> argumentsTypes, Context conte… in solveMethod()
89 return new MethodUsage(decl.getCorrespondingDeclaration()); in solveMethod()
92 … public MethodUsage solveMethod(String methodName, List<ResolvedType> argumentsTypes, Node node) { in solveMethod()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DMethodType.java3 import com.github.javaparser.resolution.MethodUsage;
26 public static MethodType fromMethodUsage(MethodUsage methodUsage) { in fromMethodUsage()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DIssue228.java7 import com.github.javaparser.resolution.MethodUsage;
28 MethodUsage solvedCall = parserFacade.solveMethodAsUsage(methodCall); in testSolvingMethodWitPrimitiveParameterTypeAsUsage()

123