Home
last modified time | relevance | path

Searched refs:methodUsage (Results 1 – 25 of 29) 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 …]
DLambdaExprContext.java64 … MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(methodCallExpr); in solveSymbolAsValue() local
66 ResolvedType lambdaType = methodUsage.getParamTypes().get(i); in solveSymbolAsValue()
/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/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.java169 MethodUsage methodUsage = res.get(); in solveMethodAsUsage() local
173 ResolvedType formalType = methodUsage.getParamType(i); in solveMethodAsUsage()
180 ResolvedType returnType = inferenceContext.addSingle(methodUsage.returnType()); in solveMethodAsUsage()
182methodUsage = methodUsage.replaceParamType(j, inferenceContext.resolve(parameters.get(j))); in solveMethodAsUsage()
184 methodUsage = methodUsage.replaceReturnType(inferenceContext.resolve(returnType)); in solveMethodAsUsage()
185 return Optional.of(methodUsage); in solveMethodAsUsage()
DReflectionInterfaceDeclaration.java142 MethodUsage methodUsage = res.get(); in solveMethodAsUsage() local
146 ResolvedType formalType = methodUsage.getParamType(i); in solveMethodAsUsage()
153 ResolvedType returnType = inferenceContext.addSingle(methodUsage.returnType()); in solveMethodAsUsage()
155methodUsage = methodUsage.replaceParamType(j, inferenceContext.resolve(parameters.get(j))); in solveMethodAsUsage()
157 methodUsage = methodUsage.replaceReturnType(inferenceContext.resolve(returnType)); in solveMethodAsUsage()
158 return Optional.of(methodUsage); in solveMethodAsUsage()
DReflectionClassDeclaration.java177 MethodUsage methodUsage = new MethodUsage(methodDeclaration); in solveMethodAsUsage() local
181 methodUsage = methodUsage.replaceTypeParameter(tpToReplace, newValue); in solveMethodAsUsage()
183 methods.add(methodUsage); in solveMethodAsUsage()
/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/resources/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)
Dcom_github_javaparser_symbolsolver_reflectionmodel_ReflectionMethodResolutionLogic.txt38 Line 91) methods.add(methodUsage) ==> java.util.List.add(E)
46 Line 101) methods.add(methodUsage) ==> java.util.List.add(E)
82 …Line 133) methodUsage.replaceTypeParameter(tp, typeParameterValues.get(i)) ==> com.github.javapars…
85 …Line 139) methodUsage.replaceTypeParameter(methodTypeParameter, new TypeVariable(methodTypeParamet…
Dcom_github_javaparser_symbolsolver_core_resolution_Context.txt15 Line 93) Optional.of(methodUsage) ==> java.util.Optional.of(T)
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_LambdaExprContext.txt11 Line 67) methodUsage.getParamTypes().get(i) ==> java.util.List.get(int)
12 …Line 67) methodUsage.getParamTypes() ==> com.github.javaparser.symbolsolver.model.methods.MethodUs…
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javassistmodel/
DJavassistUtils.java48 … MethodUsage methodUsage = new MethodUsage(new JavassistMethodDeclaration(method, typeSolver)); in getMethodUsage() local
49 if (argumentsTypes.size() < methodUsage.getNoParams()) { in getMethodUsage()
57 ResolvedType newReturnType = methodUsage.returnType(); in getMethodUsage()
62 methodUsage = methodUsage.replaceReturnType(newReturnType); in getMethodUsage()
64 return Optional.of(methodUsage); in getMethodUsage()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DStatementContextResolutionTest.java87 MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(call); in resolveLocalAndSeveralAnnidatedLevels() local
88 assertEquals("add", methodUsage.getName()); in resolveLocalAndSeveralAnnidatedLevels()
104 MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(call); in resolveMethodOnGenericClass() local
105 assertEquals("add", methodUsage.getName()); in resolveMethodOnGenericClass()
DContextTest.java319 MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(call); in resolveGenericReturnTypeOfMethodInJar() local
321 assertEquals("getTypes", methodUsage.getName()); in resolveGenericReturnTypeOfMethodInJar()
322 …assertEquals("java.util.List<com.github.javaparser.ast.body.TypeDeclaration>", methodUsage.returnT… in resolveGenericReturnTypeOfMethodInJar()
323 assertEquals(1, methodUsage.returnType().asReferenceType().typeParametersValues().size()); in resolveGenericReturnTypeOfMethodInJar()
324 …assertEquals("com.github.javaparser.ast.body.TypeDeclaration", methodUsage.returnType().asReferenc… in resolveGenericReturnTypeOfMethodInJar()
410 … MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(callToGetName); in resolveReferenceToCallOnLambdaParam() local
412 assertEquals("getName", methodUsage.getName()); in resolveReferenceToCallOnLambdaParam()
413 …assertEquals("com.github.javaparser.ast.body.TypeDeclaration", methodUsage.declaringType().getQual… in resolveReferenceToCallOnLambdaParam()
DJavaParserFacadeResolutionTest.java75 …MethodUsage methodUsage = JavaParserFacade.get(new ReflectionTypeSolver()).solveMethodAsUsage(meth… in solvingReferenceToUnsupportedOperationException() local
76 assertEquals("java.lang.Throwable.getMessage()", methodUsage.getQualifiedSignature()); in solvingReferenceToUnsupportedOperationException()
DGenericsResolutionTest.java193 …MethodUsage methodUsage = JavaParserFacade.get(new ReflectionTypeSolver()).solveMethodAsUsage(expr… in resolveUsageOfMethodOfGenericClass() local
195 assertEquals("callee", methodUsage.getName()); in resolveUsageOfMethodOfGenericClass()
419 MethodUsage methodUsage = javaParserFacade.solveMethodAsUsage(methodCall); in methodWithGenericParameterTypes() local
421 assertEquals("foo", methodUsage.getName()); in methodWithGenericParameterTypes()
DMethodsResolutionTest.java60 …MethodUsage methodUsage = JavaParserFacade.get(new ReflectionTypeSolver()).solveMethodAsUsage(expr… in solveMethodWithClassExpressionAsParameter() local
61 assertEquals("noneOf", methodUsage.getName()); in solveMethodWithClassExpressionAsParameter()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/contexts/
DFieldAccessContextResolutionTest.java47 … MethodUsage methodUsage = JavaParserFacade.get(typeSolver).solveMethodAsUsage(methodCallExpr); in solveMethodCallInFieldAccessContext() local
49 assertEquals(methodUsage.getName(), "getSelf"); in solveMethodCallInFieldAccessContext()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/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-core/src/main/java/com/github/javaparser/symbolsolver/model/typesystem/
DReferenceTypeImpl.java150 MethodUsage methodUsage = new MethodUsage(methodDeclaration); in getDeclaredMethods() local
151 methods.add(methodUsage); in getDeclaredMethods()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/
DJavaParserFacade.java513 …Optional<MethodUsage> methodUsage = context.solveMethodAsUsage(call.getName().getId(), params, typ… in solveMethodAsUsage() local
514 if (!methodUsage.isPresent()) { in solveMethodAsUsage()
518 return methodUsage.get(); in solveMethodAsUsage()

12