Home
last modified time | relevance | path

Searched refs:methodUsage (Results 1 – 25 of 39) sorted by relevance

12

/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DMethodCallExprContext.java84 MethodUsage methodUsage = new MethodUsage(m.getCorrespondingDeclaration()); in solveMethodAsUsage() local
85methodUsage = resolveMethodTypeParametersFromExplicitList(typeSolver, methodUsage); in solveMethodAsUsage()
86 methodUsage = resolveMethodTypeParameters(methodUsage, argumentsTypes); in solveMethodAsUsage()
87 return Optional.of(methodUsage); in solveMethodAsUsage()
121 …Usage resolveMethodTypeParametersFromExplicitList(TypeSolver typeSolver, MethodUsage methodUsage) { in resolveMethodTypeParametersFromExplicitList() argument
128 …List<ResolvedTypeParameterDeclaration> tyParamDecls = methodUsage.getDeclaration().getTypeParamete… in resolveMethodTypeParametersFromExplicitList()
131methodUsage = methodUsage.replaceTypeParameter(tyParamDecls.get(i), typeArguments.get(i)); in resolveMethodTypeParametersFromExplicitList()
136 return methodUsage; in resolveMethodTypeParametersFromExplicitList()
171 MethodUsage methodUsage = ref.get(); in solveMethodAsUsage() local
173 methodUsage = resolveMethodTypeParametersFromExplicitList(typeSolver, methodUsage); in solveMethodAsUsage()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DMethodCallExprContext.java89 MethodUsage methodUsage = new MethodUsage(m.getCorrespondingDeclaration()); in solveMethodAsUsage() local
90methodUsage = resolveMethodTypeParametersFromExplicitList(typeSolver, methodUsage); in solveMethodAsUsage()
91 methodUsage = resolveMethodTypeParameters(methodUsage, argumentsTypes); in solveMethodAsUsage()
92 return Optional.of(methodUsage); in solveMethodAsUsage()
126 …Usage resolveMethodTypeParametersFromExplicitList(TypeSolver typeSolver, MethodUsage methodUsage) { in resolveMethodTypeParametersFromExplicitList() argument
133 … List<TypeParameterDeclaration> tyParamDecls = methodUsage.getDeclaration().getTypeParameters(); in resolveMethodTypeParametersFromExplicitList()
136methodUsage = methodUsage.replaceTypeParameter(tyParamDecls.get(i), typeArguments.get(i)); in resolveMethodTypeParametersFromExplicitList()
141 return methodUsage; in resolveMethodTypeParametersFromExplicitList()
213 MethodUsage methodUsage = ref.get(); in solveMethodAsUsage() local
215 methodUsage = resolveMethodTypeParametersFromExplicitList(typeSolver, methodUsage); in solveMethodAsUsage()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/
DJavaParserAnonymousClassDeclarationTest.java29 MethodUsage methodUsage = in anonymousClassAsMethodArgument() local
32 assertThat(methodUsage.getQualifiedSignature(), in anonymousClassAsMethodArgument()
45 MethodUsage methodUsage = in callingSuperClassInnerClassMethod() local
48 assertThat(methodUsage.getQualifiedSignature(), in callingSuperClassInnerClassMethod()
61 MethodUsage methodUsage = in callingAnonymousClassInnerMethod() local
64 assertTrue(methodUsage.getQualifiedSignature().startsWith("AnonymousClassDeclarations")); in callingAnonymousClassInnerMethod()
65 assertTrue(methodUsage.getQualifiedSignature().contains("Anonymous-")); in callingAnonymousClassInnerMethod()
66 assertTrue(methodUsage.getQualifiedSignature().endsWith("callAnnonClassInnerMethod()")); in callingAnonymousClassInnerMethod()
78 MethodUsage methodUsage = in usingAnonymousSuperClassInnerType() local
81 assertThat(methodUsage.getQualifiedSignature(), is("java.lang.Enum.toString()")); in usingAnonymousSuperClassInnerType()
[all …]
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/
DMethodType.java26 public static MethodType fromMethodUsage(MethodUsage methodUsage) { in fromMethodUsage() argument
27 …return new MethodType(methodUsage.getDeclaration().getTypeParameters(), methodUsage.getParamTypes(… in fromMethodUsage()
28 methodUsage.returnType(), methodUsage.exceptionTypes()); in fromMethodUsage()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionMethodResolutionLogic.java90 … MethodUsage methodUsage = replaceParams(typeParameterValues, scopeType, methodDeclaration); in solveMethodAsUsage() local
91 methods.add(methodUsage); in solveMethodAsUsage()
100 …MethodUsage methodUsage = replaceParams(typeParameterValues, ancestor.getTypeDeclaration(), corres… in solveMethodAsUsage() local
101 methods.add(methodUsage); in solveMethodAsUsage()
127 MethodUsage methodUsage = new MethodUsage(methodDeclaration); in replaceParams() local
133 methodUsage = methodUsage.replaceTypeParameter(tp, typeParameterValues.get(i)); in replaceParams()
139methodUsage = methodUsage.replaceTypeParameter(methodTypeParameter, new TypeVariable(methodTypePar… in replaceParams()
142 return methodUsage; in replaceParams()
DReflectionEnumDeclaration.java166 MethodUsage methodUsage = res.get(); in solveMethodAsUsage() local
170 Type formalType = methodUsage.getParamType(i); in solveMethodAsUsage()
177 Type returnType = inferenceContext.addSingle(methodUsage.returnType()); in solveMethodAsUsage()
179methodUsage = methodUsage.replaceParamType(j, inferenceContext.resolve(parameters.get(j))); in solveMethodAsUsage()
181 methodUsage = methodUsage.replaceReturnType(inferenceContext.resolve(returnType)); in solveMethodAsUsage()
182 return Optional.of(methodUsage); in solveMethodAsUsage()
DReflectionInterfaceDeclaration.java140 MethodUsage methodUsage = res.get(); in solveMethodAsUsage() local
144 Type formalType = methodUsage.getParamType(i); in solveMethodAsUsage()
151 Type returnType = inferenceContext.addSingle(methodUsage.returnType()); in solveMethodAsUsage()
153methodUsage = methodUsage.replaceParamType(j, inferenceContext.resolve(parameters.get(j))); in solveMethodAsUsage()
155 methodUsage = methodUsage.replaceReturnType(inferenceContext.resolve(returnType)); in solveMethodAsUsage()
156 return Optional.of(methodUsage); in solveMethodAsUsage()
DReflectionClassDeclaration.java176 MethodUsage methodUsage = new MethodUsage(methodDeclaration); in solveMethodAsUsage() local
180 methodUsage = methodUsage.replaceTypeParameter(tpToReplace, newValue); in solveMethodAsUsage()
182 methods.add(methodUsage); in solveMethodAsUsage()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/
DReflectionMethodResolutionLogic.java90 … MethodUsage methodUsage = replaceParams(typeParameterValues, scopeType, methodDeclaration); in solveMethodAsUsage() local
91 methods.add(methodUsage); in solveMethodAsUsage()
100 …MethodUsage methodUsage = replaceParams(typeParameterValues, ancestor.getTypeDeclaration(), corres… in solveMethodAsUsage() local
101 methods.add(methodUsage); in solveMethodAsUsage()
127 MethodUsage methodUsage = new MethodUsage(methodDeclaration); in replaceParams() local
133 methodUsage = methodUsage.replaceTypeParameter(tp, typeParameterValues.get(i)); in replaceParams()
139methodUsage = methodUsage.replaceTypeParameter(methodTypeParameter, new ResolvedTypeVariable(metho… in replaceParams()
142 return methodUsage; in replaceParams()
DReflectionEnumDeclaration.java176 MethodUsage methodUsage = res.get(); in solveMethodAsUsage() local
180 ResolvedType formalType = methodUsage.getParamType(i); in solveMethodAsUsage()
187 ResolvedType returnType = inferenceContext.addSingle(methodUsage.returnType()); in solveMethodAsUsage()
189methodUsage = methodUsage.replaceParamType(j, inferenceContext.resolve(parameters.get(j))); in solveMethodAsUsage()
191 methodUsage = methodUsage.replaceReturnType(inferenceContext.resolve(returnType)); in solveMethodAsUsage()
192 return Optional.of(methodUsage); in solveMethodAsUsage()
DReflectionInterfaceDeclaration.java147 MethodUsage methodUsage = res.get(); in solveMethodAsUsage() local
151 ResolvedType formalType = methodUsage.getParamType(i); in solveMethodAsUsage()
158 ResolvedType returnType = inferenceContext.addSingle(methodUsage.returnType()); in solveMethodAsUsage()
160methodUsage = methodUsage.replaceParamType(j, inferenceContext.resolve(parameters.get(j))); in solveMethodAsUsage()
162 methodUsage = methodUsage.replaceReturnType(inferenceContext.resolve(returnType)); in solveMethodAsUsage()
163 return Optional.of(methodUsage); in solveMethodAsUsage()
DReflectionClassDeclaration.java193 MethodUsage methodUsage = new MethodUsage(methodDeclaration); in solveMethodAsUsage() local
197 methodUsage = methodUsage.replaceTypeParameter(tpToReplace, newValue); in solveMethodAsUsage()
199 methods.add(methodUsage); in solveMethodAsUsage()
202 if (argumentsTypes.isEmpty() && methodUsage.getNoParams() == 0) { in solveMethodAsUsage()
203 return Optional.of(methodUsage); in solveMethodAsUsage()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DContextTest.java324 MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(call); in resolveGenericReturnTypeOfMethodInJar() local
326 assertEquals("getTypes", methodUsage.getName()); in resolveGenericReturnTypeOfMethodInJar()
327 …assertEquals("java.util.List<com.github.javaparser.ast.body.TypeDeclaration>", methodUsage.returnT… in resolveGenericReturnTypeOfMethodInJar()
328 assertEquals(1, methodUsage.returnType().asReferenceType().typeParametersValues().size()); in resolveGenericReturnTypeOfMethodInJar()
329 …assertEquals("com.github.javaparser.ast.body.TypeDeclaration", methodUsage.returnType().asReferenc… in resolveGenericReturnTypeOfMethodInJar()
341 MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(call); in resolveCompoundGenericReturnTypeOfMethodInJar() local
343 assertEquals("genericMethodWithDoubleTypedReturnType", methodUsage.getName()); in resolveCompoundGenericReturnTypeOfMethodInJar()
344 assertEquals("java.util.Map<T, V>", methodUsage.returnType().describe()); in resolveCompoundGenericReturnTypeOfMethodInJar()
356 MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(call); in resolveNestedGenericReturnTypeOfMethodInJar() local
358 assertEquals("genericMethodWithNestedReturnType", methodUsage.getName()); in resolveNestedGenericReturnTypeOfMethodInJar()
[all …]
DGenericsResolutionTest.java195 …MethodUsage methodUsage = JavaParserFacade.get(new ReflectionTypeSolver()).solveMethodAsUsage(expr… in resolveUsageOfMethodOfGenericClass() local
197 assertEquals("callee", methodUsage.getName()); in resolveUsageOfMethodOfGenericClass()
207 …MethodUsage methodUsage = JavaParserFacade.get(new ReflectionTypeSolver()).solveMethodAsUsage(expr… in resolveUsageOfMethodOfGenericClassWithUnboundedWildcard() local
209 assertEquals("toString", methodUsage.getName()); in resolveUsageOfMethodOfGenericClassWithUnboundedWildcard()
210 assertEquals("java.lang.Object", methodUsage.declaringType().getQualifiedName()); in resolveUsageOfMethodOfGenericClassWithUnboundedWildcard()
220 …MethodUsage methodUsage = JavaParserFacade.get(new ReflectionTypeSolver()).solveMethodAsUsage(expr… in resolveUsageOfMethodOfGenericClassWithExtendsWildcard() local
222 assertEquals("bar", methodUsage.getName()); in resolveUsageOfMethodOfGenericClassWithExtendsWildcard()
223 assertEquals("GenericsWildcard.Foo", methodUsage.declaringType().getQualifiedName()); in resolveUsageOfMethodOfGenericClassWithExtendsWildcard()
447 MethodUsage methodUsage = javaParserFacade.solveMethodAsUsage(methodCall); in methodWithGenericParameterTypes() local
449 assertEquals("foo", methodUsage.getName()); in methodWithGenericParameterTypes()
DStatementContextResolutionTest.java86 MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(call); in resolveLocalAndSeveralAnnidatedLevels() local
87 assertEquals("add", methodUsage.getName()); in resolveLocalAndSeveralAnnidatedLevels()
103 MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(call); in resolveMethodOnGenericClass() local
104 assertEquals("add", methodUsage.getName()); in resolveMethodOnGenericClass()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/javassistmodel/
DJavassistUtils.java47 … MethodUsage methodUsage = new MethodUsage(new JavassistMethodDeclaration(method, typeSolver)); in getMethodUsage() local
48 if (argumentsTypes.size() < methodUsage.getNoParams()) { in getMethodUsage()
56 Type newReturnType = methodUsage.returnType(); in getMethodUsage()
61 methodUsage = methodUsage.replaceReturnType(newReturnType); in getMethodUsage()
63 return Optional.of(methodUsage); in getMethodUsage()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_MethodCallExprContext.txt22 …Line 90) resolveMethodTypeParametersFromExplicitList(typeSolver, methodUsage) ==> com.github.javap…
23 …Line 91) resolveMethodTypeParameters(methodUsage, argumentsTypes) ==> com.github.javaparser.symbol…
24 Line 92) Optional.of(methodUsage) ==> java.util.Optional.of(T)
48 …Line 133) methodUsage.getDeclaration().getTypeParameters() ==> com.github.javaparser.symbolsolver.…
49 …Line 133) methodUsage.getDeclaration() ==> com.github.javaparser.symbolsolver.model.methods.Method…
53 …Line 136) methodUsage.replaceTypeParameter(tyParamDecls.get(i), typeArguments.get(i)) ==> com.gith…
117 …Line 215) resolveMethodTypeParametersFromExplicitList(typeSolver, methodUsage) ==> com.github.java…
118 Line 236) methodUsage.getParamTypes().size() ==> java.util.List.size()
119 …Line 236) methodUsage.getParamTypes() ==> com.github.javaparser.symbolsolver.model.methods.MethodU…
120 …Line 237) methodUsage.getDeclaration().getParam(i) ==> com.github.javaparser.symbolsolver.model.de…
[all …]
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionEnumDeclaration.txt32 …Line 170) methodUsage.getParamType(i) ==> com.github.javaparser.symbolsolver.model.methods.MethodU…
35 …Line 177) inferenceContext.addSingle(methodUsage.returnType()) ==> com.github.javaparser.symbolsol…
36 …Line 177) methodUsage.returnType() ==> com.github.javaparser.symbolsolver.model.methods.MethodUsag…
38 …Line 179) methodUsage.replaceParamType(j, inferenceContext.resolve(parameters.get(j))) ==> com.git…
41 …Line 181) methodUsage.replaceReturnType(inferenceContext.resolve(returnType)) ==> com.github.javap…
43 Line 182) Optional.of(methodUsage) ==> java.util.Optional.of(T)
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionInterfaceDeclaration.txt25 …Line 144) methodUsage.getParamType(i) ==> com.github.javaparser.symbolsolver.model.methods.MethodU…
28 …Line 151) inferenceContext.addSingle(methodUsage.returnType()) ==> com.github.javaparser.symbolsol…
29 …Line 151) methodUsage.returnType() ==> com.github.javaparser.symbolsolver.model.methods.MethodUsag…
31 …Line 153) methodUsage.replaceParamType(j, inferenceContext.resolve(parameters.get(j))) ==> com.git…
34 …Line 155) methodUsage.replaceReturnType(inferenceContext.resolve(returnType)) ==> com.github.javap…
36 Line 156) Optional.of(methodUsage) ==> java.util.Optional.of(T)
Dcom_github_javaparser_symbolsolver_javassistmodel_JavassistUtils.txt5 …Line 48) methodUsage.getNoParams() ==> com.github.javaparser.symbolsolver.model.methods.MethodUsag…
12 …Line 56) methodUsage.returnType() ==> com.github.javaparser.symbolsolver.model.methods.MethodUsage…
16 …Line 61) methodUsage.replaceReturnType(newReturnType) ==> com.github.javaparser.symbolsolver.model…
17 Line 63) Optional.of(methodUsage) ==> java.util.Optional.of(T)
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/
DJavassistUtils.java46 … MethodUsage methodUsage = new MethodUsage(new JavassistMethodDeclaration(method, typeSolver)); in getMethodUsage() local
50 methodUsage = methodUsage.replaceTypeParameter(tpToReplace, newValue); in getMethodUsage()
52 methods.add(methodUsage); in getMethodUsage()
55 if (argumentsTypes.isEmpty() && methodUsage.getNoParams() == 0) { in getMethodUsage()
56 return Optional.of(methodUsage); in getMethodUsage()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/core/resolution/
DContext.java190 MethodUsage methodUsage; in solveMethodAsUsage() local
192 methodUsage = ((TypeVariableResolutionCapability) methodDeclaration) in solveMethodAsUsage()
199 return Optional.of(methodUsage); in solveMethodAsUsage()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/
DFieldAccessContextResolutionTest.java46 … MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(methodCallExpr); in solveMethodCallInFieldAccessContext() local
48 assertEquals(methodUsage.getName(), "getSelf"); in solveMethodCallInFieldAccessContext()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/core/resolution/
DContext.java92 …MethodUsage methodUsage = ContextHelper.resolveTypeVariables(this, methodDeclaration, argumentsTyp… in solveMethodAsUsage() local
93 return Optional.of(methodUsage); in solveMethodAsUsage()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/model/typesystem/
DReferenceTypeImpl.java141 MethodUsage methodUsage = new MethodUsage(methodDeclaration); in getDeclaredMethods() local
142 methods.add(methodUsage); in getDeclaredMethods()

12