Home
last modified time | relevance | path

Searched refs:javaParserFacade (Results 1 – 24 of 24) sorted by relevance

/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/javaparsermodel/
DDifferentiateDotExpressionTest.java35 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/
DLambdaResolutionTest.java44 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 …]
DVariadicResolutionTest.java52 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()
DGenericsResolutionTest.java263 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()
DMethodsResolutionTest.java138 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in solveMethodInInterfaceParent() local
139 MethodUsage call1 = javaParserFacade.solveMethodAsUsage(expression); in solveMethodInInterfaceParent()
DContextTest.java294 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/
DIssue144Test.java40 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()
DIssue186Test.java28 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()
DIssue343Test.java19 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()
DIssue347Test.java21 private JavaParserFacade javaParserFacade; field in Issue347Test
26 javaParserFacade = JavaParserFacade.get(typeSolver); in setup()
40 ResolvedType fieldType = javaParserFacade.getType(fieldDeclaration); in resolvingReferenceToEnumDeclarationInSameFile()
DIssue314Test.java22 private JavaParserFacade javaParserFacade; field in Issue314Test
31 javaParserFacade = JavaParserFacade.get(typeResolver); in setup()
48 …SymbolReference<? extends ResolvedValueDeclaration> symbolReference = javaParserFacade.solve(refTo… in resolveReferenceToFieldInheritedByInterface()
DIssue116Test.java42 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()
DIssue84Test.java37 final JavaParserFacade javaParserFacade = JavaParserFacade.get(new ReflectionTypeSolver()); in variadicIssue() local
38 final ResolvedType type = javaParserFacade.getType(methodCall); in variadicIssue()
DIssue156Test.java26 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in testFieldAccessThroughClassAndThis() local
28 assertEquals("char", javaParserFacade.getType(methods.get(0)).describe()); in testFieldAccessThroughClassAndThis()
DIssue200Test.java26 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in issue200() local
28 …assertEquals("java.util.stream.Stream<JavaTest.Solved>", javaParserFacade.getType((nodesByType.get… in issue200()
DIssue18Test.java42 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in typeDeclarationSuperClassImplicitlyIncludeObject() local
43 ResolvedType type = javaParserFacade.getType(expr.getExpression()); in typeDeclarationSuperClassImplicitlyIncludeObject()
DIssue251Test.java24 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in testSolveStaticallyImportedMemberType() local
28 Assertions.assertNotNull(javaParserFacade.solve(expression)); in testSolveStaticallyImportedMemberType()
DIssue235Test.java37 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in issue235() local
41 Assertions.assertNotNull(javaParserFacade.convertToUsage(expression.getType())); in issue235()
DIssue241Test.java29 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in testSolveStaticallyImportedMemberType() local
36 ResolvedType t2 = javaParserFacade.convert(t, t); in testSolveStaticallyImportedMemberType()
DIssue128Test.java44 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in loopOnStaticallyImportedType() local
46 assertEquals(false, javaParserFacade.solve(methodCallExpr).isSolved()); in loopOnStaticallyImportedType()
DIssue300Test.java54 final JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in fieldAccessIssue() local
55 …final SymbolReference<? extends ResolvedValueDeclaration> ref = javaParserFacade.solve(fieldAccess… in fieldAccessIssue()
DIssue232Test.java22 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in issue232() local
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/javaparser/declarations/
DJavaParserTypeParameterResolutionTest.java42 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/
DJavaParserInterfaceDeclarationTest.java879 JavaParserFacade javaParserFacade = JavaParserFacade.get(typeSolver); in issue1528() local
882 …ResolvedInterfaceDeclaration interfaceDeclaration = javaParserFacade.getTypeDeclaration(foo).asInt… in issue1528()