/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/utils/ |
D | VisitorListTest.java | 34 import com.github.javaparser.JavaParser; 44 list.add(JavaParser.parse("class X{}")); in visitorAddAll() 45 list.add(JavaParser.parse("class X{}")); in visitorAddAll() 56 list.add(JavaParser.parse("class X{}")); in visitorAddAllAtIndex() 57 list.add(JavaParser.parse("class Y{}")); in visitorAddAllAtIndex() 60 vList.add(JavaParser.parse("class A{}")); in visitorAddAllAtIndex() 61 vList.add(JavaParser.parse("class B{}")); in visitorAddAllAtIndex() 63 vList.add(JavaParser.parse("class C{}")); in visitorAddAllAtIndex() 70 CompilationUnit x1 = JavaParser.parse("class X{}"); in visitorListContains() 80 list.add(JavaParser.parse("class X{}")); in visitorListContainsAll() [all …]
|
D | VisitorSetTest.java | 35 import com.github.javaparser.JavaParser; 45 set.add(JavaParser.parse("class X{}")); in normalEqualsDoesDeepCompare() 46 set.add(JavaParser.parse("class X{}")); in normalEqualsDoesDeepCompare() 54 set.add(JavaParser.parse("class X{}")); in objectIdentityEqualsDoesShallowCompare() 55 set.add(JavaParser.parse("class X{}")); in objectIdentityEqualsDoesShallowCompare() 61 CompilationUnit x1 = JavaParser.parse("class X{}"); in visitorSetContains() 71 list.add(JavaParser.parse("class X{}")); in visitorSetContainsAll() 72 list.add(JavaParser.parse("class X{}")); in visitorSetContainsAll() 83 CompilationUnit x1 = JavaParser.parse("class X{}"); in visitorSetIterator() 85 CompilationUnit x2 = JavaParser.parse("class X{}"); in visitorSetIterator() [all …]
|
D | VisitorMapTest.java | 3 import com.github.javaparser.JavaParser; 19 CompilationUnit x1 = JavaParser.parse("class X{}"); in normalEqualsDoesDeepCompare() 20 CompilationUnit x2 = JavaParser.parse("class X{}"); in normalEqualsDoesDeepCompare() 30 CompilationUnit x1 = JavaParser.parse("class X{}"); in objectIdentityEqualsDoesShallowCompare() 31 CompilationUnit x2 = JavaParser.parse("class X{}"); in objectIdentityEqualsDoesShallowCompare() 41 CompilationUnit x1 = JavaParser.parse("class X{}"); in visitorMapGet() 50 CompilationUnit x1 = JavaParser.parse("class X{}"); in visitorMapContainsKey() 59 CompilationUnit x1 = JavaParser.parse("class X{}"); in visitorMapPutAll() 60 CompilationUnit x2 = JavaParser.parse("class Y{}"); in visitorMapPutAll() 71 CompilationUnit x1 = JavaParser.parse("class X{}"); in remove()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/ |
D | PrettyPrintVisitorTest.java | 24 import com.github.javaparser.JavaParser; 44 VariableDeclarationExpr vde1 = JavaParser.parseVariableDeclarationExpr("int a[], b[]"); in getMaximumCommonTypeWithoutAnnotations() 47 VariableDeclarationExpr vde2 = JavaParser.parseVariableDeclarationExpr("int[][] a[], b[]"); in getMaximumCommonTypeWithoutAnnotations() 50 VariableDeclarationExpr vde3 = JavaParser.parseVariableDeclarationExpr("int[][] a, b[]"); in getMaximumCommonTypeWithoutAnnotations() 56 … VariableDeclarationExpr vde1 = JavaParser.parseVariableDeclarationExpr("int a @Foo [], b[]"); in getMaximumCommonTypeWithAnnotations() 59 … VariableDeclarationExpr vde2 = JavaParser.parseVariableDeclarationExpr("int[]@Foo [] a[], b[]"); in getMaximumCommonTypeWithAnnotations() 69 ClassExpr expr = JavaParser.parseExpression("Foo.class"); in printSimpleClassExpr() 75 ClassExpr expr = JavaParser.parseExpression("Foo[].class"); in printArrayClassExpr() 81 ClassExpr expr = JavaParser.parseExpression("Foo<String>.class"); in printGenericClassExpr() 87 Node node = JavaParser.parse("class A {}"); in printSimplestClass() [all …]
|
D | ConcreteSyntaxModelTest.java | 24 import com.github.javaparser.JavaParser; 40 ClassExpr expr = JavaParser.parseExpression("Foo.class"); in printSimpleClassExpr() 46 ClassExpr expr = JavaParser.parseExpression("Foo[].class"); in printArrayClassExpr() 52 ClassExpr expr = JavaParser.parseExpression("Foo<String>.class"); in printGenericClassExpr() 58 Node node = JavaParser.parse("class A {}"); in printSimplestClass() 65 Node node = JavaParser.parse("class A { int a; }"); in printAClassWithField() 74 Node node = JavaParser.parseBodyDeclaration("int x(int y, int z) {}"); in printParameters() 80 Node node = JavaParser.parseBodyDeclaration("int x(X A.B.this, int y, int z) {}"); in printReceiverParameter() 86 Node node = JavaParser.parse("interface A {}"); in printAnEmptyInterface() 93 Node node = JavaParser.parse("public interface A {}"); in printAnEmptyInterfaceWithModifier()
|
D | YamlPrinterTest.java | 28 import com.github.javaparser.JavaParser; 47 Expression expression = JavaParser.parseExpression("x(1,1)"); in testWithType() 64 Expression expression = JavaParser.parseExpression("1+1"); in testWithoutType() 77 Expression expression = JavaParser.parseExpression("\"a\\\\: b\""); in testWithColonFollowedBySpaceInValue() 90 Expression expression = JavaParser.parseExpression("\"a\\\\:\\\\nb\""); in testWithColonFollowedByLineSeparatorInValue()
|
D | XmlPrinterTest.java | 3 import com.github.javaparser.JavaParser; 12 Expression expression = JavaParser.parseExpression("1+1"); in testWithType() 22 Expression expression = JavaParser.parseExpression("1+1"); in testWithoutType() 33 Expression expression = JavaParser.parseExpression("a(1,2)"); in testList()
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javaparser_methodcalls_expected_output/ |
D | com_github_javaparser_JavaParser.txt | 2 …Line 90) getParserForProvider(provider) ==> com.github.javaparser.JavaParser.getParserForProvider(… 14 …se(COMPILATION_UNIT, provider(in, encoding)) ==> com.github.javaparser.JavaParser.simplifiedParse(… 16 …Line 132) parse(in, UTF8) ==> com.github.javaparser.JavaParser.parse(java.io.InputStream, java.nio… 17 …(COMPILATION_UNIT, provider(file, encoding)) ==> com.github.javaparser.JavaParser.simplifiedParse(… 19 …Line 160) simplifiedParse(COMPILATION_UNIT, provider(file)) ==> com.github.javaparser.JavaParser.s… 21 …(COMPILATION_UNIT, provider(path, encoding)) ==> com.github.javaparser.JavaParser.simplifiedParse(… 23 …Line 188) simplifiedParse(COMPILATION_UNIT, provider(path)) ==> com.github.javaparser.JavaParser.s… 25 …iedParse(COMPILATION_UNIT, provider(reader)) ==> com.github.javaparser.JavaParser.simplifiedParse(… 27 …Line 212) simplifiedParse(COMPILATION_UNIT, provider(code)) ==> com.github.javaparser.JavaParser.s… 29 …Line 224) simplifiedParse(BLOCK, provider(blockStatement)) ==> com.github.javaparser.JavaParser.si… [all …]
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/visitor/ |
D | NoCommentEqualsVisitorTest.java | 29 import com.github.javaparser.JavaParser; 36 CompilationUnit p1 = JavaParser.parse("class X { }"); in testEquals() 37 CompilationUnit p2 = JavaParser.parse("class X { }"); in testEquals() 43 CompilationUnit p1 = JavaParser.parse("/* a */ class X { /** b */} //c"); in testEqualsWithDifferentComments() 44 CompilationUnit p2 = JavaParser.parse("/* b */ class X { } //c"); in testEqualsWithDifferentComments() 50 CompilationUnit p1 = JavaParser.parse("class X { }"); in testNotEquals() 51 CompilationUnit p2 = JavaParser.parse("class Y { }"); in testNotEquals()
|
D | NoCommentHashCodeVisitorTest.java | 3 import com.github.javaparser.JavaParser; 14 CompilationUnit p1 = JavaParser.parse("class X { }"); in testEquals() 15 CompilationUnit p2 = JavaParser.parse("class X { }"); in testEquals() 21 CompilationUnit p1 = JavaParser.parse("/* a */ class X { /** b */} //c"); in testEqualsWithDifferentComments() 22 CompilationUnit p2 = JavaParser.parse("/* b */ class X { } //c"); in testEqualsWithDifferentComments() 30 CompilationUnit p1 = JavaParser.parse("class X { }"); in testNotEquals() 31 CompilationUnit p2 = JavaParser.parse("class Y { }"); in testNotEquals()
|
D | TreeVisitorTest.java | 24 import com.github.javaparser.JavaParser; 39 Expression expression = JavaParser.parseExpression("(2+3)+(4+5)"); in isValidBreadthFirstTraversal() 56 Expression expression = JavaParser.parseExpression("new int[]{1,2,3,4}"); in issue743ConcurrentModificationProblem() 81 }.visitPreOrder(JavaParser.parseExpression("(2+3)+(4+5)")); in isValidPreOrderTraversal() 93 }.visitPostOrder(JavaParser.parseExpression("(2+3)+(4+5)")); in isValidPostOrderTraversal() 107 }.visitPreOrder(JavaParser.parseExpression("new int[]{1,2,3,4}")); in preOrderConcurrentModificationIsOk() 120 }.visitPostOrder(JavaParser.parseExpression("new int[]{1,2,3,4}")); in postOrderConcurrentModificationIsOk() 125 CompilationUnit cu = JavaParser.parse("class X{int x=1;}"); in parents() 144 Expression expression = JavaParser.parseExpression("(2+3)+(4+5)"); in isValidDirectChildrenTraversal()
|
D | HashCodeVisitorTest.java | 3 import com.github.javaparser.JavaParser; 13 CompilationUnit p1 = JavaParser.parse("class X { }"); in testEquals() 14 CompilationUnit p2 = JavaParser.parse("class X { }"); in testEquals() 20 CompilationUnit p1 = JavaParser.parse("class X { }"); in testNotEquals() 21 CompilationUnit p2 = JavaParser.parse("class Y { }"); in testNotEquals()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ |
D | JavaParserTest.java | 55 CompilationUnit cu = JavaParser.parse(code); in rangeOfAnnotationMemberDeclarationIsCorrect() 64 CompilationUnit cu = JavaParser.parse(code); in rangeOfAnnotationMemberDeclarationWithArrayTypeIsCorrect() 73 ArrayCreationExpr expression = JavaParser.parseExpression(code); in rangeOfArrayCreationLevelWithExpressionIsCorrect() 88 ArrayCreationExpr expression = JavaParser.parseExpression(code); in rangeOfArrayCreationLevelWithoutExpressionIsCorrect() 102 …ParseResult<CompilationUnit> result = new JavaParser().parse(COMPILATION_UNIT, provider("class X {… in parseErrorContainsLocation() 113 Expression expression = JavaParser.parseExpression(code); in parseIntersectionType() 131 CompilationUnit cu = JavaParser.parse(code); in rangeOfIntersectionType() 145 CompilationUnit cu = JavaParser.parse(code); in rangeOfCast() 158 CompilationUnit cu = JavaParser.parse(code); in rangeOfCastNonIntersection() 171 CompilationUnit cu = JavaParser.parse(code); in rangeOfLambda() [all …]
|
D | ProvidersTest.java | 38 JavaParser parser = new JavaParser(); in testResourceProvider() 47 JavaParser parser = new JavaParser(); in testResourceProviderWithWrongEncoding() 59 JavaParser parser = new JavaParser(); in testResourceProviderWithEncoding()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/body/ |
D | ClassOrInterfaceDeclarationTest.java | 3 import com.github.javaparser.JavaParser; 13 CompilationUnit cu = JavaParser.parse("class X{static class Y{}}"); in staticNestedClass() 23 CompilationUnit cu = JavaParser.parse("class X{interface Y{}}"); in nestedInterface() 33 CompilationUnit cu = JavaParser.parse("class X{class Y{}}"); in nonStaticNestedClass() 43 CompilationUnit cu = JavaParser.parse("class X{}"); in topClass() 53 …MethodDeclaration method= (MethodDeclaration)JavaParser.parseBodyDeclaration("void x(){class X{};}… in localClass()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/imports/ |
D | ImportDeclarationTest.java | 24 import com.github.javaparser.JavaParser; 33 ImportDeclaration i = JavaParser.parseImport("import a.b.c.X;"); in singleTypeImportDeclaration() 39 ImportDeclaration i = JavaParser.parseImport("import a.b.c.D.*;"); in typeImportOnDemandDeclaration() 46 ImportDeclaration i = JavaParser.parseImport("import static a.b.c.X.def;"); in singleStaticImportDeclaration() 53 ImportDeclaration i = JavaParser.parseImport("import static a.b.c.X.*;"); in staticImportOnDemandDeclaration()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/ |
D | NodeListTest.java | 24 import com.github.javaparser.JavaParser; 79 CompilationUnit cu = JavaParser.parse(code); 93 CompilationUnit cu = JavaParser.parse(code); 107 CompilationUnit cu = JavaParser.parse(code); 121 CompilationUnit cu = JavaParser.parse(code); 134 CompilationUnit cu = JavaParser.parse(code); 146 CompilationUnit cu = JavaParser.parse(code); 166 CompilationUnit cu = JavaParser.parse(code); 186 CompilationUnit cu = JavaParser.parse(code); 198 CompilationUnit cu = JavaParser.parse(code); [all …]
|
D | CompilationUnitTest.java | 24 import com.github.javaparser.JavaParser; 31 import static com.github.javaparser.JavaParser.parse; 79 CompilationUnit cu = JavaParser.parse(testFile); in testGetPrimaryTypeName() 86 CompilationUnit cu = JavaParser.parse("class PrimaryType{}"); in testNoPrimaryTypeName() 94 CompilationUnit cu = JavaParser.parse(testFile); in testGetPrimaryType() 103 CompilationUnit cu = JavaParser.parse(testFile); in testNoPrimaryType()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/utils/ |
D | SourceZip.java | 24 import com.github.javaparser.JavaParser; 102 JavaParser javaParser = new JavaParser(parserConfiguration); in parse() 144 public JavaParser getJavaParser() { in getJavaParser() 145 return new JavaParser(parserConfiguration); in getJavaParser() 154 public SourceZip setJavaParser(JavaParser javaParser) { in setJavaParser()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/stmt/ |
D | IfElseStmtTest.java | 3 import com.github.javaparser.JavaParser; 15 …IfStmt ifStmt = (IfStmt) JavaParser.parseStatement("if (cond) doSomething(); else doSomethingElse(… in issue1247withElseSingleStmt() 23 …IfStmt ifStmt = (IfStmt) JavaParser.parseStatement("if (cond) doSomething(); else { doSomethingEls… in issue1247withElseBlockStmt() 31 …IfStmt ifStmt = (IfStmt) JavaParser.parseStatement("if (cond1) doSomething(); else if (cond2) doSo… in issue1247withElseSingleStmtWhichIsAnIf()
|
/external/javaparser/ |
D | readme.md | 1 # JavaParser chapter 10 Our main site is at [JavaParser.org](http://javaparser.org) 41 Since Version 3.5.10, the JavaParser project includes the JavaSymbolSolver. 42 While JavaParser generates an Abstract Syntax Tree, JavaSymbolSolver analyzes that AST and is able … 45 …JavaParser and JavaSymbolSolver to your project. If you only need the core functionality of parsin… 85 #### [JavaParser.org](https://www.javaparser.org) is the main information site. 89 JavaParser is available either under the terms of the LGPL License or the Apache License. You as th…
|
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/ |
D | JavaParserFacadeResolutionTest.java | 74 …MethodCallExpr methodCallExpr = Navigator.findNodeOfGivenClass(JavaParser.parse(code), MethodCallE… in solvingReferenceToUnsupportedOperationException() 96 …MethodCallExpr methodCallExpr = Navigator.findNodeOfGivenClass(JavaParser.parse(code), MethodCallE… in solvingReferenceToCatchClauseParam() 118 …FieldDeclaration fieldDeclaration = Navigator.findNodeOfGivenClass(JavaParser.parse(code), FieldDe… in solvingReferenceToAnAncestorInternalClass() 130 CompilationUnit cu = JavaParser.parse(code); in solveTryWithResourceVariable() 142 JavaParser javaParser = new JavaParser(parserConfiguration); in parseWithTypeSolver()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/type/ |
D | TypeTest.java | 3 import com.github.javaparser.JavaParser; 11 import static com.github.javaparser.JavaParser.parseType; 12 import static com.github.javaparser.JavaParser.parseVariableDeclarationExpr; 40 ParseResult<VariableDeclarationExpr> result = new JavaParser(config).parse( in primitiveTypeArgumentLenientValidator()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/bdd/steps/ |
D | SharedSteps.java | 24 import com.github.javaparser.JavaParser; 75 state.put("cu1", JavaParser.parse(classSrc.trim())); in whenTheFollowingSourceIsParsed() 80 state.put("cu1", JavaParser.parse(classSrc.trim())); in whenTheFollowingSourceIsParsedTrimmingSpace() 85 state.put("cu2", JavaParser.parse(classSrc.trim())); in whenTheFollowingSourcesIsParsedBytTheSecondCompilationUnit() 91 CompilationUnit compilationUnit = JavaParser.parse(new File(url.toURI())); in whenTheJavaFileIsParsed()
|
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/ast/validator/ |
D | Java11ValidatorTest.java | 3 import com.github.javaparser.JavaParser; 15 …public static final JavaParser javaParser = new JavaParser(new ParserConfiguration().setLanguageLe…
|