/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/ |
D | ContextHelper.java | 38 …static MethodUsage resolveTypeVariables(Context context, MethodDeclaration methodDeclaration, List… in resolveTypeVariables() argument 39 if (methodDeclaration instanceof JavaParserMethodDeclaration) { in resolveTypeVariables() 40 …return ((JavaParserMethodDeclaration) methodDeclaration).resolveTypeVariables(context, parameterTy… in resolveTypeVariables() 41 } else if (methodDeclaration instanceof JavassistMethodDeclaration) { in resolveTypeVariables() 42 …return ((JavassistMethodDeclaration) methodDeclaration).resolveTypeVariables(context, parameterTyp… in resolveTypeVariables() 43 } else if (methodDeclaration instanceof JavaParserEnumDeclaration.ValuesMethod) { in resolveTypeVariables() 44 …return ((JavaParserEnumDeclaration.ValuesMethod) methodDeclaration).resolveTypeVariables(context, … in resolveTypeVariables() 45 } else if (methodDeclaration instanceof ReflectionMethodDeclaration) { in resolveTypeVariables() 46 …return ((ReflectionMethodDeclaration) methodDeclaration).resolveTypeVariables(context, parameterTy… in resolveTypeVariables()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/declarations/common/ |
D | MethodDeclarationCommonLogic.java | 38 private MethodDeclaration methodDeclaration; field in MethodDeclarationCommonLogic 41 … public MethodDeclarationCommonLogic(MethodDeclaration methodDeclaration, TypeSolver typeSolver) { in MethodDeclarationCommonLogic() argument 42 this.methodDeclaration = methodDeclaration; in MethodDeclarationCommonLogic() 47 Type returnType = replaceTypeParams(methodDeclaration.getReturnType(), typeSolver, context); in resolveTypeVariables() 49 for (int i = 0; i < methodDeclaration.getNumberOfParams(); i++) { in resolveTypeVariables() 50 … Type replaced = replaceTypeParams(methodDeclaration.getParam(i).getType(), typeSolver, context); in resolveTypeVariables() 58 …for (int i = 0; i < methodDeclaration.getNumberOfParams() - (methodDeclaration.hasVariadicParamete… in resolveTypeVariables() 59 Type formalParamType = methodDeclaration.getParam(i).getType(); in resolveTypeVariables() 66 return new MethodUsage(methodDeclaration, params, returnType); in resolveTypeVariables() 88 …return methodDeclaration.getTypeParameters().stream().filter(tp -> tp.getName().equals(name)).map(… in typeParamByName()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/declarations/common/ |
D | MethodDeclarationCommonLogic.java | 38 private ResolvedMethodDeclaration methodDeclaration; field in MethodDeclarationCommonLogic 41 …public MethodDeclarationCommonLogic(ResolvedMethodDeclaration methodDeclaration, TypeSolver typeSo… in MethodDeclarationCommonLogic() argument 42 this.methodDeclaration = methodDeclaration; in MethodDeclarationCommonLogic() 47 ResolvedType returnType = replaceTypeParams(methodDeclaration.getReturnType(), context); in resolveTypeVariables() 49 for (int i = 0; i < methodDeclaration.getNumberOfParams(); i++) { in resolveTypeVariables() 50 … ResolvedType replaced = replaceTypeParams(methodDeclaration.getParam(i).getType(), context); in resolveTypeVariables() 58 …for (int i = 0; i < methodDeclaration.getNumberOfParams() - (methodDeclaration.hasVariadicParamete… in resolveTypeVariables() 59 ResolvedType formalParamType = methodDeclaration.getParam(i).getType(); in resolveTypeVariables() 66 return new MethodUsage(methodDeclaration, params, returnType); in resolveTypeVariables() 88 …return methodDeclaration.getTypeParameters().stream().filter(tp -> tp.getName().equals(name)).map(… in typeParamByName()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/typeinference/ |
D | TypeInference.java | 45 …dUsage toMethodUsage(MethodCallExpr call, ResolvedMethodDeclaration methodDeclaration, TypeSolver … in toMethodUsage() argument 47 …tantiationSet> instantiationSetOpt = typeInference.instantiationInference(call, methodDeclaration); in toMethodUsage() 49 return instantiationSetToMethodUsage(methodDeclaration, instantiationSetOpt.get()); in toMethodUsage() 59 …nstantiationInference(MethodCallExpr methodCallExpr, ResolvedMethodDeclaration methodDeclaration) { in instantiationInference() argument 60 return instantiationInference(methodCallExpr.getArguments(), methodDeclaration); in instantiationInference() 63 …ationInference(List<Expression> argumentExpressions, ResolvedMethodDeclaration methodDeclaration) { in instantiationInference() argument 74 List<ResolvedTypeParameterDeclaration> Ps = methodDeclaration.getTypeParameters(); in instantiationInference() 91 if (appearInThrowsClause(Pi, methodDeclaration)) { in instantiationInference() 101 List<ResolvedType> Fs = formalParameterTypes(methodDeclaration); in instantiationInference() 148 …pplicabilityInference(MethodCallExpr methodCallExpr, ResolvedMethodDeclaration methodDeclaration) { in invocationApplicabilityInference() argument [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/ |
D | com_github_javaparser_symbolsolver_declarations_common_MethodDeclarationCommonLogic.txt | 1 …Line 47) replaceTypeParams(methodDeclaration.getReturnType(), typeSolver, context) ==> com.github.… 2 …Line 47) methodDeclaration.getReturnType() ==> com.github.javaparser.symbolsolver.model.declaratio… 3 …Line 49) methodDeclaration.getNumberOfParams() ==> com.github.javaparser.symbolsolver.model.declar… 4 …Line 50) replaceTypeParams(methodDeclaration.getParam(i).getType(), typeSolver, context) ==> com.g… 5 …Line 50) methodDeclaration.getParam(i).getType() ==> com.github.javaparser.symbolsolver.model.decl… 6 …Line 50) methodDeclaration.getParam(i) ==> com.github.javaparser.symbolsolver.model.declarations.M… 8 …Line 58) methodDeclaration.getNumberOfParams() ==> com.github.javaparser.symbolsolver.model.declar… 9 …Line 58) methodDeclaration.hasVariadicParameter() ==> com.github.javaparser.symbolsolver.model.dec… 10 …Line 59) methodDeclaration.getParam(i).getType() ==> com.github.javaparser.symbolsolver.model.decl… 11 …Line 59) methodDeclaration.getParam(i) ==> com.github.javaparser.symbolsolver.model.declarations.M… [all …]
|
D | com_github_javaparser_symbolsolver_core_resolution_ContextHelper.txt | 1 …Line 40) ((JavaParserMethodDeclaration) methodDeclaration).resolveTypeVariables(context, parameter… 2 …Line 42) ((JavassistMethodDeclaration) methodDeclaration).resolveTypeVariables(context, parameterT… 3 …Line 44) ((JavaParserEnumDeclaration.ValuesMethod) methodDeclaration).resolveTypeVariables(context… 4 …Line 46) ((ReflectionMethodDeclaration) methodDeclaration).resolveTypeVariables(context, parameter…
|
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/api/process/ast/ |
D | MethodLocator.java | 59 MethodDeclaration methodDeclaration = (MethodDeclaration) node; in matches() local 61 && methodDeclaration.getName().getFullyQualifiedName().equals(methodName) in matches() 62 && parameterMatcher.matches(methodDeclaration); in matches() 77 MethodDeclaration methodDeclaration = (MethodDeclaration) bodyDeclaration; in find() local 78 if (methodDeclaration.getName().getFullyQualifiedName().equals(methodName)) { in find() 79 if (parameterMatcher.matches(methodDeclaration)) { in find() 80 return methodDeclaration; in find()
|
D | ParameterMatcher.java | 38 public boolean matches(MethodDeclaration methodDeclaration) { in matches() argument 39 List<String> actualParameterTypes = getParameterTypeNames(methodDeclaration); in matches() 56 public static List<String> getParameterTypeNames(MethodDeclaration methodDeclaration) { in getParameterTypeNames() argument 58 (List<SingleVariableDeclaration>) methodDeclaration.parameters(); in getParameterTypeNames()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/comments/ |
D | CommentTest.java | 93 MethodDeclaration methodDeclaration = cu.findFirst(MethodDeclaration.class).get(); in testReplaceDuplicateJavaDocComment() local 97 methodDeclaration.setJavadocComment("", javadoc); in testReplaceDuplicateJavaDocComment() 135 MethodDeclaration methodDeclaration = cu.findFirst(MethodDeclaration.class).get(); in testRemoveDuplicateComment() local 138 methodDeclaration.removeComment(); in testRemoveDuplicateComment() 173 MethodDeclaration methodDeclaration = cu.findAll(MethodDeclaration.class).get(1); in testRemoveDuplicateJavaDocComment() local 176 methodDeclaration.removeJavaDocComment(); in testRemoveDuplicateJavaDocComment()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/ |
D | JavaSymbolSolverTest.java | 39 MethodDeclaration methodDeclaration = cu.getClassByName("A").get().getMethods().get(0); in resolveMethodDeclaration() local 40 ResolvedMethodDeclaration resolvedMethodDeclaration = methodDeclaration.resolve(); in resolveMethodDeclaration() 54 MethodDeclaration methodDeclaration = cu.getClassByName("A").get().getMethods().get(0); in resolveArrayType() local 55 ResolvedType resolvedType = methodDeclaration.getType().resolve(); in resolveArrayType()
|
D | Issue186Test.java | 25 MethodDeclaration methodDeclaration = Navigator.demandMethod(clazz, "foo"); in lambdaFlatMapIssue() local 26 … MethodCallExpr methodCallExpr = Navigator.findMethodCall(methodDeclaration, "flatMap").get(); in lambdaFlatMapIssue() 37 MethodDeclaration methodDeclaration = Navigator.demandMethod(clazz, "bar"); in lambdaPrimitivesIssue() local 38 List<LambdaExpr> lambdas = methodDeclaration.findAll(LambdaExpr.class); in lambdaPrimitivesIssue()
|
D | Issue116Test.java | 40 MethodDeclaration methodDeclaration = Navigator.demandMethod(clazz, "foo"); in arrayTypeIsNotPartOfTheTree() local 43 … com.github.javaparser.ast.type.Type typeNode = methodDeclaration.getParameters().get(0).getType(); in arrayTypeIsNotPartOfTheTree() 47 …ExpressionStmt expressionStmt = (ExpressionStmt) methodDeclaration.getBody().get().getStatements()… in arrayTypeIsNotPartOfTheTree()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/com/github/javaparser/symbolsolver/reflectionmodel/ |
D | ReflectionMethodResolutionLogic.java | 52 … MethodDeclaration methodDeclaration = new ReflectionMethodDeclaration(method, typeSolver); in solveMethod() local 53 methods.add(methodDeclaration); in solveMethod() 89 … MethodDeclaration methodDeclaration = new ReflectionMethodDeclaration(method, typeSolver); in solveMethodAsUsage() local 90 … MethodUsage methodUsage = replaceParams(typeParameterValues, scopeType, methodDeclaration); in solveMethodAsUsage() 126 …arameterValues, ReferenceTypeDeclaration typeParametrizable, MethodDeclaration methodDeclaration) { in replaceParams() argument 127 MethodUsage methodUsage = new MethodUsage(methodDeclaration); in replaceParams() 138 for (TypeParameterDeclaration methodTypeParameter : methodDeclaration.getTypeParameters()) { in replaceParams()
|
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/reflectionmodel/ |
D | ReflectionMethodResolutionLogic.java | 52 … ResolvedMethodDeclaration methodDeclaration = new ReflectionMethodDeclaration(method, typeSolver); in solveMethod() local 53 methods.add(methodDeclaration); in solveMethod() 89 … ResolvedMethodDeclaration methodDeclaration = new ReflectionMethodDeclaration(method, typeSolver); in solveMethodAsUsage() local 90 … MethodUsage methodUsage = replaceParams(typeParameterValues, scopeType, methodDeclaration); in solveMethodAsUsage() 126 …ResolvedReferenceTypeDeclaration typeParametrizable, ResolvedMethodDeclaration methodDeclaration) { in replaceParams() argument 127 MethodUsage methodUsage = new MethodUsage(methodDeclaration); in replaceParams() 138 …for (ResolvedTypeParameterDeclaration methodTypeParameter : methodDeclaration.getTypeParameters())… in replaceParams()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/ |
D | ArrayTypeTest.java | 85 …MethodDeclaration methodDeclaration = parseBodyDeclaration("@C int @A[] a() @B[] {}").asMethodDecl… in getMethodDeclarationWithArrays() local 87 ArrayType arrayType1 = methodDeclaration.getType().asArrayType(); in getMethodDeclarationWithArrays() 94 …assertThat(methodDeclaration.getAnnotations()).containsExactly(new MarkerAnnotationExpr(parseName(… in getMethodDeclarationWithArrays() 96 assertThat(methodDeclaration.getType().getParentNode().get()).isSameAs(methodDeclaration); in getMethodDeclarationWithArrays() 101 …MethodDeclaration methodDeclaration = parseBodyDeclaration("void a(@C int @A[] a @B[]) {}").asMeth… in getParameterWithArrays() local 103 Parameter parameter = methodDeclaration.getParameter(0); in getParameterWithArrays()
|
/external/javaparser/javaparser-core-serialization/src/test/java/com/github/javaparser/serialization/ |
D | JavaParserJsonDeserializerTest.java | 130 MethodDeclaration methodDeclaration = classXDeclaration.getMethods().get(0); in testComment() local 131 assertTrue(methodDeclaration.getComment().isPresent()); in testComment() 132 …assertEquals("com.github.javaparser.ast.comments.LineComment", methodDeclaration.getComment().get(… in testComment() 133 assertEquals(" line comment", methodDeclaration.getComment().get().getContent()); in testComment() 150 MethodDeclaration methodDeclaration = classDeclaration.getMethods().get(0); in testJavaDocComment() local 151 assertTrue(methodDeclaration.getJavadoc().isPresent()); in testJavaDocComment() 152 Javadoc javadoc = methodDeclaration.getJavadoc().get(); in testJavaDocComment()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/nodeTypes/ |
D | NodeWithMembers.java | 163 MethodDeclaration methodDeclaration = new MethodDeclaration(); in addMethod() local 164 methodDeclaration.setName(methodName); in addMethod() 165 methodDeclaration.setType(VOID_TYPE); in addMethod() 166 methodDeclaration.setModifiers(Arrays.stream(modifiers) in addMethod() 168 getMembers().add(methodDeclaration); in addMethod() 169 methodDeclaration.setParentNode((Node) this); in addMethod() 170 return methodDeclaration; in addMethod()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ |
D | JavaParserTest.java | 178 …MethodDeclaration methodDeclaration = cu.getClassByName("A").get().getMember(0).asMethodDeclaratio… in rangeOfIntersectionType() local 179 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfIntersectionType() 192 …MethodDeclaration methodDeclaration = cu.getClassByName("A").get().getMember(0).asMethodDeclaratio… in rangeOfCast() local 193 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfCast() 205 …MethodDeclaration methodDeclaration = cu.getClassByName("A").get().getMember(0).asMethodDeclaratio… in rangeOfCastNonIntersection() local 206 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfCastNonIntersection() 218 …MethodDeclaration methodDeclaration = cu.getClassByName("A").get().getMember(0).asMethodDeclaratio… in rangeOfLambda() local 219 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfLambda() 234 …MethodDeclaration methodDeclaration = cu.getClassByName("A").get().getMember(0).asMethodDeclaratio… in rangeOfLambdaBody() local 235 ReturnStmt returnStmt = methodDeclaration.getBody().get().getStatement(0).asReturnStmt(); in rangeOfLambdaBody()
|
/external/javaparser/javaparser-symbol-solver-logic/src/main/java/com/github/javaparser/symbolsolver/logic/ |
D | AbstractTypeDeclaration.java | 40 for (ResolvedMethodDeclaration methodDeclaration : getDeclaredMethods()) { in getAllMethods() 41 methods.add(new MethodUsage(methodDeclaration)); in getAllMethods() 42 methodsSignatures.add(methodDeclaration.getSignature()); in getAllMethods()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-logic/com/github/javaparser/symbolsolver/logic/ |
D | AbstractTypeDeclaration.java | 42 for (MethodDeclaration methodDeclaration : getDeclaredMethods()) { in getAllMethods() 43 methods.add(new MethodUsage(methodDeclaration)); in getAllMethods() 44 methodsSignatures.add(methodDeclaration.getSignature()); in getAllMethods()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/ |
D | LexicalPreservingPrinterTest.java | 601 MethodDeclaration methodDeclaration = (MethodDeclaration) member; in handleOverrideAnnotation() 602 … if (!methodDeclaration.getAnnotationByName("Override").isPresent()) { in handleOverrideAnnotation() 603 methodDeclaration.addAnnotation("Override"); in handleOverrideAnnotation() 836 MethodDeclaration methodDeclaration = cu.getType(0).getMethodsByName("someMethod").get(0); in addASecondStatementToExistingMethod() local 837 methodDeclaration.getBody().get().getStatements().add(new ExpressionStmt( in addASecondStatementToExistingMethod() 849 + " }", LexicalPreservingPrinter.print(methodDeclaration)); in addASecondStatementToExistingMethod() 867 .forEach(member -> member.ifMethodDeclaration(methodDeclaration -> { in moveOverrideAnnotations() 868 if (methodDeclaration.getAnnotationByName("Override").isPresent()) { in moveOverrideAnnotations() 870 while (methodDeclaration.getAnnotations().isNonEmpty()) { in moveOverrideAnnotations() 871 … AnnotationExpr annotationExpr = methodDeclaration.getAnnotations().get(0); in moveOverrideAnnotations() [all …]
|
D | TransformationsTest.java | 216 …MethodDeclaration methodDeclaration = (MethodDeclaration)classOrInterfaceDeclaration.getChildNodes… in addingStatement1() local 217 methodDeclaration.getBody().get().addStatement(statement); in addingStatement1() 246 …MethodDeclaration methodDeclaration = (MethodDeclaration)classOrInterfaceDeclaration.getChildNodes… in addingStatement2() local 247 methodDeclaration.getBody().get().addStatement(statement); in addingStatement2() 276 …MethodDeclaration methodDeclaration = (MethodDeclaration)classOrInterfaceDeclaration.getChildNodes… in addingStatement3() local 277 methodDeclaration.getBody().get().addStatement(statement); in addingStatement3()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/ |
D | NodeWithMembers.java | 269 MethodDeclaration methodDeclaration = new MethodDeclaration(); in addMethod() local 270 methodDeclaration.setName(methodName); in addMethod() 271 methodDeclaration.setType(new VoidType()); in addMethod() 272 methodDeclaration.setModifiers(createModifierList(modifiers)); in addMethod() 273 getMembers().add(methodDeclaration); in addMethod() 274 return methodDeclaration; in addMethod()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-logic/ |
D | com_github_javaparser_symbolsolver_logic_AbstractTypeDeclaration.txt | 2 Line 43) methods.add(new MethodUsage(methodDeclaration)) ==> java.util.Set.add(E) 3 Line 44) methodsSignatures.add(methodDeclaration.getSignature()) ==> java.util.Set.add(E) 4 …Line 44) methodDeclaration.getSignature() ==> com.github.javaparser.symbolsolver.model.declaration…
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/declarations/ |
D | JavaParserTypeParameterResolutionTest.java | 68 …ResolvedMethodDeclaration methodDeclaration = javaParserFacade.solve(callToFoo).getCorrespondingDe… in declaredOnMethodPositiveCase() local 69 for (ResolvedTypeParameterDeclaration tp : methodDeclaration.getTypeParameters()) { in declaredOnMethodPositiveCase() 85 …ResolvedMethodDeclaration methodDeclaration = javaParserFacade.solve(callToFoo).getCorrespondingDe… in declaredOnMethodNegativeCase() local 86 ResolvedReferenceTypeDeclaration typeDeclaration = methodDeclaration.declaringType(); in declaredOnMethodNegativeCase()
|