/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/ |
D | DifferentiateDotExpressionTest.java | 35 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in methodCallsFromFieldObjects() local 41 assertEquals(true, javaParserFacade.solve(firstFieldMethodCall).isSolved()); in methodCallsFromFieldObjects() 42 assertEquals(true, javaParserFacade.solve(secondFieldMethodCall).isSolved()); in methodCallsFromFieldObjects() 43 assertEquals(true, javaParserFacade.solve(thirdFieldMethodCall).isSolved()); in methodCallsFromFieldObjects() 50 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in staticMethodCallsFromInnerClasses() local 56 assertEquals(true, javaParserFacade.solve(methodCall).isSolved()); in staticMethodCallsFromInnerClasses() 57 assertEquals(true, javaParserFacade.solve(innerMethodCall).isSolved()); in staticMethodCallsFromInnerClasses() 58 assertEquals(true, javaParserFacade.solve(innerInnerMethodCall).isSolved()); in staticMethodCallsFromInnerClasses() 65 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in staticFieldCallsFromInnerClasses() local 69 assertEquals(true, javaParserFacade.solve(methodCallWithNestedStaticFieldParam).isSolved()); in staticFieldCallsFromInnerClasses() [all …]
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
D | LambdaResolutionTest.java | 44 JavaParserFacade javaParserFacade = JavaParserFacade.get(new ReflectionTypeSolver()); in lambdaMapParameter() local 45 ResolvedType type = javaParserFacade.getType(expression); in lambdaMapParameter() 58 JavaParserFacade javaParserFacade = JavaParserFacade.get(new ReflectionTypeSolver()); in personsStream() local 59 ResolvedType type = javaParserFacade.getType(expression); in personsStream() 74 JavaParserFacade javaParserFacade = JavaParserFacade.get(new ReflectionTypeSolver()); in lambdaMap() local 75 ResolvedType type1 = javaParserFacade.getType(e1); in lambdaMap() 76 ResolvedType type2 = javaParserFacade.getType(e2); in lambdaMap() 89 JavaParserFacade javaParserFacade = JavaParserFacade.get(new ReflectionTypeSolver()); in lambdaReduce() local 90 ResolvedType type1 = javaParserFacade.getType(expr); in lambdaReduce() 102 JavaParserFacade javaParserFacade = JavaParserFacade.get(new ReflectionTypeSolver()); in lambdaPrint() local [all …]
|
D | VariadicResolutionTest.java | 52 JavaParserFacade javaParserFacade = JavaParserFacade.get(new ReflectionTypeSolver()); in issue7() local 53 ResolvedType type = javaParserFacade.getType(expression); in issue7() 68 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in methodCallWithReferenceTypeAsVaridicArgumentIsSolved() local 69 MethodUsage callee = javaParserFacade.solveMethodAsUsage(callExpr); in methodCallWithReferenceTypeAsVaridicArgumentIsSolved() 82 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in resolveVariadicMethodWithGenericArgument() local 83 MethodUsage callee = javaParserFacade.solveMethodAsUsage(callExpr); in resolveVariadicMethodWithGenericArgument() 98 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in selectMostSpecificVariadic() local 99 MethodUsage call1 = javaParserFacade.solveMethodAsUsage(calls.get(0)); in selectMostSpecificVariadic() 100 MethodUsage call2 = javaParserFacade.solveMethodAsUsage(calls.get(1)); in selectMostSpecificVariadic()
|
D | GenericsResolutionTest.java | 263 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in genericsInheritance() local 265 ResolvedType voidVisitorAdapterOfA = javaParserFacade.getType(thisRef); in genericsInheritance() 346 JavaParserFacade javaParserFacade = JavaParserFacade.get(new ReflectionTypeSolver()); in typeParamOnReturnTypeStep3() local 347 ResolvedType type = javaParserFacade.getType(call); in typeParamOnReturnTypeStep3() 429 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in genericCollectionWithWildcardsAndExtensions() local 431 ResolvedType type = javaParserFacade.getType(returnStmtExpr); in genericCollectionWithWildcardsAndExtensions() 445 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in methodWithGenericParameterTypes() local 447 MethodUsage methodUsage = javaParserFacade.solveMethodAsUsage(methodCall); in methodWithGenericParameterTypes() 461 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in genericCollectionWithWildcards() local 463 ResolvedType type = javaParserFacade.getType(returnStmtExpr); in genericCollectionWithWildcards()
|
D | MethodsResolutionTest.java | 138 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in solveMethodInInterfaceParent() local 139 MethodUsage call1 = javaParserFacade.solveMethodAsUsage(expression); in solveMethodInInterfaceParent()
|
D | ContextTest.java | 294 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in resolveReferenceToLambdaParamBase() local 295 ResolvedType ref = javaParserFacade.getType(refToT); in resolveReferenceToLambdaParamBase()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/ |
D | Issue144Test.java | 40 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in issue144() local 42 assertEquals(true, javaParserFacade.solve(firstParameter).isSolved()); in issue144() 43 …assertEquals(true, javaParserFacade.solve(firstParameter).getCorrespondingDeclaration().isField()); in issue144() 44 …assertEquals("hw", javaParserFacade.solve(firstParameter).getCorrespondingDeclaration().getName()); in issue144() 54 JavaParserFacade javaParserFacade = JavaParserFacade.get(new ReflectionTypeSolver(true)); in issue144WithReflectionTypeSolver() local 56 assertEquals(true, javaParserFacade.solve(firstParameter).isSolved()); in issue144WithReflectionTypeSolver() 66 …JavaParserFacade javaParserFacade = JavaParserFacade.get(new CombinedTypeSolver(typeSolver, new Re… in issue144WithCombinedTypeSolver() local 68 assertEquals(true, javaParserFacade.solve(firstParameter).isSolved()); in issue144WithCombinedTypeSolver()
|
D | Issue186Test.java | 28 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in lambdaFlatMapIssue() local 29 …assertEquals("java.util.stream.Stream<java.lang.String>", javaParserFacade.getType(methodCallExpr)… in lambdaFlatMapIssue() 40 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in lambdaPrimitivesIssue() local 41 …assertEquals("java.util.function.Predicate<? super java.lang.String>", javaParserFacade.getType(la… in lambdaPrimitivesIssue() 42 …n.Function<? super java.lang.String, ? extends java.lang.Integer>", javaParserFacade.getType(lambd… in lambdaPrimitivesIssue() 43 …assertEquals("java.util.function.Predicate<? super java.lang.Integer>", javaParserFacade.getType(l… in lambdaPrimitivesIssue()
|
D | Issue343Test.java | 19 private JavaParserFacade javaParserFacade; field in Issue343Test 28 javaParserFacade = JavaParserFacade.get(typeResolver); in setup() 33 …assertEquals(javaParserFacade.classToResolvedType(String.class), getExpressionType(typeResolver, n… in resolveStringLiteralOutsideAST() 38 …assertEquals(javaParserFacade.classToResolvedType(int.class), getExpressionType(typeResolver, new … in resolveIntegerLiteralOutsideAST() 54 …assertEquals(javaParserFacade.classToResolvedType(int.class), getExpressionType(typeResolver, new … in resolveMethodCallOnStringLiteralOutsideAST()
|
D | Issue347Test.java | 21 private JavaParserFacade javaParserFacade; field in Issue347Test 26 javaParserFacade = JavaParserFacade.get(typeSolver); in setup() 40 ResolvedType fieldType = javaParserFacade.getType(fieldDeclaration); in resolvingReferenceToEnumDeclarationInSameFile()
|
D | Issue314Test.java | 22 private JavaParserFacade javaParserFacade; field in Issue314Test 31 javaParserFacade = JavaParserFacade.get(typeResolver); in setup() 48 …SymbolReference<? extends ResolvedValueDeclaration> symbolReference = javaParserFacade.solve(refTo… in resolveReferenceToFieldInheritedByInterface()
|
D | Issue116Test.java | 42 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in arrayTypeIsNotPartOfTheTree() local 44 ResolvedType type = javaParserFacade.convert(typeNode, typeNode); in arrayTypeIsNotPartOfTheTree() 49 assertEquals("java.lang.String[]", javaParserFacade.getType(argRef).describe()); in arrayTypeIsNotPartOfTheTree()
|
D | Issue84Test.java | 37 final JavaParserFacade javaParserFacade = JavaParserFacade.get(new ReflectionTypeSolver()); in variadicIssue() local 38 final ResolvedType type = javaParserFacade.getType(methodCall); in variadicIssue()
|
D | Issue156Test.java | 26 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in testFieldAccessThroughClassAndThis() local 28 assertEquals("char", javaParserFacade.getType(methods.get(0)).describe()); in testFieldAccessThroughClassAndThis()
|
D | Issue200Test.java | 26 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in issue200() local 28 …assertEquals("java.util.stream.Stream<JavaTest.Solved>", javaParserFacade.getType((nodesByType.get… in issue200()
|
D | Issue18Test.java | 42 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in typeDeclarationSuperClassImplicitlyIncludeObject() local 43 ResolvedType type = javaParserFacade.getType(expr.getExpression()); in typeDeclarationSuperClassImplicitlyIncludeObject()
|
D | Issue251Test.java | 24 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in testSolveStaticallyImportedMemberType() local 28 Assertions.assertNotNull(javaParserFacade.solve(expression)); in testSolveStaticallyImportedMemberType()
|
D | Issue235Test.java | 37 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in issue235() local 41 Assertions.assertNotNull(javaParserFacade.convertToUsage(expression.getType())); in issue235()
|
D | Issue241Test.java | 29 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in testSolveStaticallyImportedMemberType() local 36 ResolvedType t2 = javaParserFacade.convert(t, t); in testSolveStaticallyImportedMemberType()
|
D | Issue128Test.java | 44 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in loopOnStaticallyImportedType() local 46 assertEquals(false, javaParserFacade.solve(methodCallExpr).isSolved()); in loopOnStaticallyImportedType()
|
D | Issue300Test.java | 54 final JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in fieldAccessIssue() local 55 …final SymbolReference<? extends ResolvedValueDeclaration> ref = javaParserFacade.solve(fieldAccess… in fieldAccessIssue()
|
D | Issue232Test.java | 22 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in issue232() local
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/declarations/ |
D | JavaParserTypeParameterResolutionTest.java | 42 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in testGenericArguments() local 47 assertTrue(javaParserFacade.solve(bar).isSolved()); in testGenericArguments() 64 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in declaredOnMethodPositiveCase() local 68 …ResolvedMethodDeclaration methodDeclaration = javaParserFacade.solve(callToFoo).getCorrespondingDe… in declaredOnMethodPositiveCase() 81 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in declaredOnMethodNegativeCase() local 85 …ResolvedMethodDeclaration methodDeclaration = javaParserFacade.solve(callToFoo).getCorrespondingDe… in declaredOnMethodNegativeCase()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/declarations/ |
D | JavaParserInterfaceDeclarationTest.java | 879 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in issue1528() local 882 …ResolvedInterfaceDeclaration interfaceDeclaration = javaParserFacade.getTypeDeclaration(foo).asInt… in issue1528()
|