Home
last modified time | relevance | path

Searched refs:ResolvedMethodDeclaration (Results 1 – 25 of 82) sorted by relevance

1234

/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DMethodsResolutionTest.java29 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
152 …SymbolReference<ResolvedMethodDeclaration> reference = JavaParserFacade.get(new ReflectionTypeSolv… in solveMethodWithTypePromotionsToLong()
158 …SymbolReference<ResolvedMethodDeclaration> reference = JavaParserFacade.get(new ReflectionTypeSolv… in solveMethodWithTypePromotionsToLong()
164 …SymbolReference<ResolvedMethodDeclaration> reference = JavaParserFacade.get(new ReflectionTypeSolv… in solveMethodWithTypePromotionsToLong()
170 …SymbolReference<ResolvedMethodDeclaration> reference = JavaParserFacade.get(new ReflectionTypeSolv… in solveMethodWithTypePromotionsToLong()
186 …SymbolReference<ResolvedMethodDeclaration> reference = JavaParserFacade.get(new ReflectionTypeSolv… in solveMethodWithTypePromotionsToInt()
192 …SymbolReference<ResolvedMethodDeclaration> reference = JavaParserFacade.get(new ReflectionTypeSolv… in solveMethodWithTypePromotionsToInt()
198 …SymbolReference<ResolvedMethodDeclaration> reference = JavaParserFacade.get(new ReflectionTypeSolv… in solveMethodWithTypePromotionsToInt()
204 …SymbolReference<ResolvedMethodDeclaration> reference = JavaParserFacade.get(new ReflectionTypeSolv… in solveMethodWithTypePromotionsToInt()
219 …SymbolReference<ResolvedMethodDeclaration> reference = JavaParserFacade.get(new ReflectionTypeSolv… in solveMethodWithTypePromotionsToShort()
[all …]
DUnknownMethodsResolutionTest.java8 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
25 …SymbolReference<ResolvedMethodDeclaration> ref = JavaParserFacade.get(new ReflectionTypeSolver()).… in testUnknownMethod1()
37 …SymbolReference<ResolvedMethodDeclaration> ref = JavaParserFacade.get(new ReflectionTypeSolver()).… in testUnknownMethod2()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionMethodResolutionLogic.java20 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
45 …static SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> para… in solveMethod()
48 List<ResolvedMethodDeclaration> methods = new ArrayList<>(); in solveMethod()
52ResolvedMethodDeclaration methodDeclaration = new ReflectionMethodDeclaration(method, typeSolver); in solveMethod()
57 …SymbolReference<ResolvedMethodDeclaration> ref = MethodResolutionLogic.solveMethodInType(ancestor.… in solveMethod()
65 …SymbolReference<ResolvedMethodDeclaration> ref = MethodResolutionLogic.solveMethodInType(objectCla… in solveMethod()
89ResolvedMethodDeclaration methodDeclaration = new ReflectionMethodDeclaration(method, typeSolver); in solveMethodAsUsage()
97 …SymbolReference<ResolvedMethodDeclaration> ref = MethodResolutionLogic.solveMethodInType(ancestor.… in solveMethodAsUsage()
99ResolvedMethodDeclaration correspondingDeclaration = ref.getCorrespondingDeclaration(); in solveMethodAsUsage()
107 …SymbolReference<ResolvedMethodDeclaration> ref = MethodResolutionLogic.solveMethodInType(objectCla… in solveMethodAsUsage()
[all …]
DReflectionClassDeclaration.java86 public Set<ResolvedMethodDeclaration> getDeclaredMethods() { in getDeclaredMethods()
139 …public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argu… in solveMethod()
140 List<ResolvedMethodDeclaration> methods = new ArrayList<>(); in solveMethod()
145ResolvedMethodDeclaration methodDeclaration = new ReflectionMethodDeclaration(method, typeSolver); in solveMethod()
155 …SymbolReference<ResolvedMethodDeclaration> ref = MethodResolutionLogic.solveMethodInType(superClas… in solveMethod()
161 …SymbolReference<ResolvedMethodDeclaration> ref = MethodResolutionLogic.solveMethodInType(interface… in solveMethod()
171 return SymbolReference.unsolved(ResolvedMethodDeclaration.class); in solveMethod()
192ResolvedMethodDeclaration methodDeclaration = new ReflectionMethodDeclaration(method, typeSolver); in solveMethodAsUsage()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionParameterDeclarationTest.java21 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
40ResolvedMethodDeclaration hashCode = object.getAllMethods().stream().filter(m -> m.getName().equal… in testGetSignature()
41ResolvedMethodDeclaration equals = object.getAllMethods().stream().filter(m -> m.getName().equals(… in testGetSignature()
42ResolvedMethodDeclaration containsAll = list.getAllMethods().stream().filter(m -> m.getName().equa… in testGetSignature()
43ResolvedMethodDeclaration subList = list.getAllMethods().stream().filter(m -> m.getName().equals("… in testGetSignature()
57ResolvedMethodDeclaration put = map.getAllMethods().stream().filter(m -> m.getName().equals("put")… in testGetGenericReturnType()
69ResolvedMethodDeclaration put = map.getAllMethods().stream().filter(m -> m.getName().equals("put")… in testGetGenericParameters()
DReflectionMethodDeclarationTest.java21 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
39ResolvedMethodDeclaration equals = object.getAllMethods().stream().filter(m -> m.getName().equals(… in testParameterNameOnClassesFromTheStdLibrary()
40ResolvedMethodDeclaration containsAll = list.getAllMethods().stream().filter(m -> m.getName().equa… in testParameterNameOnClassesFromTheStdLibrary()
41ResolvedMethodDeclaration subList = list.getAllMethods().stream().filter(m -> m.getName().equals("… in testParameterNameOnClassesFromTheStdLibrary()
61ResolvedMethodDeclaration myMethod = foo.getAllMethods().stream().filter(m -> m.getName().equals("… in testParameterNameOnClassesFromThisProject()
DReflectionInterfaceDeclarationTest.java21 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
45 List<ResolvedMethodDeclaration> methods = list.getDeclaredMethods().stream() in testGetDeclaredMethods()
49 for (ResolvedMethodDeclaration method : methods) { in testGetDeclaredMethods()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/resolution/
DMethodUsage.java24 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
41 private ResolvedMethodDeclaration declaration;
47 public MethodUsage(ResolvedMethodDeclaration declaration) { in MethodUsage()
59 public MethodUsage(ResolvedMethodDeclaration declaration, in MethodUsage()
65 …public MethodUsage(ResolvedMethodDeclaration declaration, List<ResolvedType> paramTypes, ResolvedT… in MethodUsage()
70 …private MethodUsage(ResolvedMethodDeclaration declaration, List<ResolvedType> paramTypes, Resolved… in MethodUsage()
87 public ResolvedMethodDeclaration getDeclaration() { in getDeclaration()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/
DMethodResolutionLogic.java60 …public static boolean isApplicable(ResolvedMethodDeclaration method, String name, List<ResolvedTyp… in isApplicable()
64 …private static boolean isApplicable(ResolvedMethodDeclaration method, String name, List<ResolvedTy… in isApplicable()
352 …public static SymbolReference<ResolvedMethodDeclaration> findMostApplicable(List<ResolvedMethodDec… in findMostApplicable()
354 …SymbolReference<ResolvedMethodDeclaration> res = findMostApplicable(methods, name, argumentsTypes,… in findMostApplicable()
361 …public static SymbolReference<ResolvedMethodDeclaration> findMostApplicable(List<ResolvedMethodDec… in findMostApplicable()
364 List<ResolvedMethodDeclaration> methodsWithMatchingName = methods.stream() in findMostApplicable()
368 List<ResolvedMethodDeclaration> applicableMethods = methodsWithMatchingName.stream() in findMostApplicable()
370 .filter(distinctByKey(ResolvedMethodDeclaration::getQualifiedSignature)) in findMostApplicable()
376 return SymbolReference.unsolved(ResolvedMethodDeclaration.class); in findMostApplicable()
388 Set<ResolvedMethodDeclaration> removeCandidates = new HashSet<>(); in findMostApplicable()
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DTypeInference.java7 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
45 …public static MethodUsage toMethodUsage(MethodCallExpr call, ResolvedMethodDeclaration methodDecla… in toMethodUsage()
59 …ationSet> instantiationInference(MethodCallExpr methodCallExpr, ResolvedMethodDeclaration methodDe… in instantiationInference()
63 …t> instantiationInference(List<Expression> argumentExpressions, ResolvedMethodDeclaration methodDe… in instantiationInference()
148 …invocationApplicabilityInference(MethodCallExpr methodCallExpr, ResolvedMethodDeclaration methodDe… in invocationApplicabilityInference()
387 …ecificMethodInference(MethodCallExpr methodCall, ResolvedMethodDeclaration m1, ResolvedMethodDecla… in moreSpecificMethodInference()
481 …private static MethodUsage instantiationSetToMethodUsage(ResolvedMethodDeclaration methodDeclarati… in instantiationSetToMethodUsage()
550 …oolean appearInThrowsClause(ResolvedTypeParameterDeclaration p, ResolvedMethodDeclaration methodDe… in appearInThrowsClause()
560 private List<ResolvedType> formalParameterTypes(ResolvedMethodDeclaration methodDeclaration) { in formalParameterTypes()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DAnonymousClassDeclarationContext.java7 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
42 public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, in solveMethod()
45 List<ResolvedMethodDeclaration> candidateMethods = in solveMethod()
54 SymbolReference<ResolvedMethodDeclaration> res = in solveMethod()
71 SymbolReference<ResolvedMethodDeclaration> parentSolution = in solveMethod()
80 SymbolReference<ResolvedMethodDeclaration> res = in solveMethod()
DJavaParserTypeDeclarationAdapter.java112 …public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argu… in solveMethod()
113 … List<ResolvedMethodDeclaration> candidateMethods = typeDeclaration.getDeclaredMethods().stream() in solveMethod()
126 SymbolReference<ResolvedMethodDeclaration> res = MethodResolutionLogic in solveMethod()
140 …SymbolReference<ResolvedMethodDeclaration> parentSolution = context.getParent().solveMethod(name, … in solveMethod()
148 …SymbolReference<ResolvedMethodDeclaration> res = MethodResolutionLogic.solveMethodInType(new Refle… in solveMethod()
DCompilationUnitContext.java261 …public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argu… in solveMethod()
272 return SymbolReference.unsolved(ResolvedMethodDeclaration.class); in solveMethod()
276 …SymbolReference<ResolvedMethodDeclaration> method = MethodResolutionLogic.solveMethodInType(ref, n… in solveMethod()
287 …SymbolReference<ResolvedMethodDeclaration> method = MethodResolutionLogic.solveMethodInType(ref, n… in solveMethod()
291 return SymbolReference.unsolved(ResolvedMethodDeclaration.class); in solveMethod()
297 return SymbolReference.unsolved(ResolvedMethodDeclaration.class); in solveMethod()
/external/javaparser/javaparser-symbol-solver-logic/src/main/java/com/github/javaparser/symbolsolver/logic/
DMethodResolutionCapability.java3 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
10 …SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argumentsTy… in solveMethod()
DAbstractTypeDeclaration.java20 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
40 for (ResolvedMethodDeclaration methodDeclaration : getDeclaredMethods()) { in getAllMethods()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javassistmodel/
DJavassistTypeParameterDeclarationTest.java17 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
49 for (ResolvedMethodDeclaration method : compilationUnit.getDeclaredMethods()) { in testGetBounds()
72 for (ResolvedMethodDeclaration method : compilationUnit.getDeclaredMethods()) { in testGetComplexBounds()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/declarations/common/
DMethodDeclarationCommonLogic.java20 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
38 private ResolvedMethodDeclaration methodDeclaration;
41 …public MethodDeclarationCommonLogic(ResolvedMethodDeclaration methodDeclaration, TypeSolver typeSo… in MethodDeclarationCommonLogic()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/
DJavassistClassDeclaration.java81 public Set<ResolvedMethodDeclaration> getDeclaredMethods() { in getDeclaredMethods()
199 …public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argu… in solveMethod()
200 List<ResolvedMethodDeclaration> candidates = new ArrayList<>(); in solveMethod()
206ResolvedMethodDeclaration candidate = new JavassistMethodDeclaration(method, typeSolver); in solveMethod()
217 SymbolReference<ResolvedMethodDeclaration> superClassMethodRef = MethodResolutionLogic in solveMethod()
225 SymbolReference<ResolvedMethodDeclaration> interfaceMethodRef = in solveMethod()
DJavassistInterfaceDeclaration.java108 …public SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> argu… in solveMethod()
109 List<ResolvedMethodDeclaration> candidates = new ArrayList<>(); in solveMethod()
122 …SymbolReference<ResolvedMethodDeclaration> ref = new JavassistClassDeclaration(superClass, typeSol… in solveMethod()
133 …SymbolReference<ResolvedMethodDeclaration> ref = new JavassistInterfaceDeclaration(interfaze, type… in solveMethod()
185 public Set<ResolvedMethodDeclaration> getDeclaredMethods() { in getDeclaredMethods()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DIssue1491Test.java10 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
67ResolvedMethodDeclaration decl = JavaParserFacade.get(localCts).solve(n).getCorrespondingDeclarati… in verifyIssue1491ResolvingStaticMethodCalls()
99ResolvedMethodDeclaration decl = JavaParserFacade.get(localCts).solve(n).getCorrespondingDeclarati… in verifyIssue1491Combined()
DJavaSymbolSolverTest.java21 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
40 ResolvedMethodDeclaration resolvedMethodDeclaration = methodDeclaration.resolve(); in resolveMethodDeclaration()
DIssue1946Test.java10 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
33 ResolvedMethodDeclaration rmd = methodCallExpr.resolve(); in issueWithInternalEnumConstantReference()
DSolveMethodDeclaredInEnumTest.java30 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
58 ResolvedMethodDeclaration resolvedCall = call.resolve(); in methodDeclaredInEnum_enumFromJar()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/declarations/
DJavaParserTypeParameterResolutionTest.java23 import com.github.javaparser.resolution.declarations.ResolvedMethodDeclaration;
68ResolvedMethodDeclaration methodDeclaration = javaParserFacade.solve(callToFoo).getCorrespondingDe… in declaredOnMethodPositiveCase()
85ResolvedMethodDeclaration methodDeclaration = javaParserFacade.solve(callToFoo).getCorrespondingDe… in declaredOnMethodNegativeCase()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/
DContext.java176 …default SymbolReference<ResolvedMethodDeclaration> solveMethod(String name, List<ResolvedType> arg… in solveMethod()
186 …SymbolReference<ResolvedMethodDeclaration> methodSolved = solveMethod(name, argumentsTypes, false); in solveMethodAsUsage()
188ResolvedMethodDeclaration methodDeclaration = methodSolved.getCorrespondingDeclaration(); in solveMethodAsUsage()

1234