/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/ |
D | SwitchExprTest.java | 15 NodeList<Expression> entry2labels = parseStatement("int numLetters = switch (day) {\n" + in jep325Example2() 30 parseStatement("int numLetters = switch (day) {\n" + in funkyExpressions() 60 SwitchExpr switchExpr = parseStatement("T result = switch (arg) {\n" + in jep325Example4() 71 SwitchExpr switchExpr = parseStatement("int j = switch (day) {\n" + in jep325Example5() 87 parseStatement("int result = switch (s) {\n" + in jep325Example6()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/stmt/ |
D | IfElseStmtTest.java | 5 import static com.github.javaparser.StaticJavaParser.parseStatement; 13 … IfStmt ifStmt = parseStatement("if (cond) doSomething(); else doSomethingElse();").asIfStmt(); in issue1247withElseSingleStmt() 21 … IfStmt ifStmt = parseStatement("if (cond) doSomething(); else { doSomethingElse(); }").asIfStmt(); in issue1247withElseBlockStmt() 29 …IfStmt ifStmt = parseStatement("if (cond1) doSomething(); else if (cond2) doSomethingElse();").asI… in issue1247withElseSingleStmtWhichIsAnIf()
|
D | BreakStmtTest.java | 13 BreakStmt statement = TestParser.parseStatement("break;").asBreakStmt(); in simpleBreak() 19 BreakStmt statement = TestParser.parseStatement("break hond;").asBreakStmt(); in breakWithLabel() 26 BreakStmt statement = TestParser.parseStatement("break 12*12;").asBreakStmt(); in breakWithExpression()
|
D | ForEachStmtTest.java | 7 import static com.github.javaparser.StaticJavaParser.parseStatement; 13 ForEachStmt statement = parseStatement("for (int i : ints) {}").asForEachStmt(); in nonFinalPrimitive() 21 ForEachStmt statement = parseStatement("for (final Object o : objs) {}").asForEachStmt(); in finalNonPrimitive()
|
D | SwitchStmtTest.java | 6 import static com.github.javaparser.StaticJavaParser.parseStatement; 14 SwitchStmt switchStmt = parseStatement("switch (day) {\n" + in classicSwitch() 27 SwitchStmt switchStmt = parseStatement("switch (day) {\n" + in jep325Example1()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/nodeTypes/ |
D | NodeWithBodyTest.java | 14 ForStmt forStmt = TestParser.parseStatement("for(;;);").asForStmt(); in emptyStatementIsEmpty() 21 ForStmt forStmt = TestParser.parseStatement("for(;;){}").asForStmt(); in emptyBlockIsEmpty() 28 ForStmt forStmt = TestParser.parseStatement("for(;;)a=b;").asForStmt(); in simpleStatementIsNotEmpty() 35 ForStmt forStmt = TestParser.parseStatement("for(;;){a=b;}").asForStmt(); in nonEmptyBlockIsNotEmpty()
|
/external/javaparser/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/ |
D | InitializePropertyMetaModelsStatementsGenerator.java | 12 import static com.github.javaparser.StaticJavaParser.parseStatement; 39 initializePropertyMetaModelsStatements.add(parseStatement(fieldSetting)); in generate() 40 initializePropertyMetaModelsStatements.add(parseStatement(fieldAddition)); in generate() 62 initializePropertyMetaModelsStatements.add(parseStatement(fieldSetting)); in generateDerivedProperty() 63 initializePropertyMetaModelsStatements.add(parseStatement(fieldAddition)); in generateDerivedProperty()
|
D | InitializeConstructorParametersStatementsGenerator.java | 12 import static com.github.javaparser.StaticJavaParser.parseStatement; 31 initializeConstructorParametersStatements.add(parseStatement(addFieldStatement)); in generate()
|
D | NodeMetaModelGenerator.java | 45 …initializeNodeMetaModelsStatements.add(parseStatement(f("nodeMetaModels.add(%s);", nodeMetaModelFi… in generate()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/ |
D | AnnotationDeclarationTest.java | 6 import static com.github.javaparser.utils.TestParser.parseStatement; 18 Statement statement = parseStatement("TT tt = new <String> @TypeAnno @TA2 TT( \"S\" );"); in issue2216()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/ |
D | TransformationsTest.java | 155 Statement statement = LexicalPreservingPrinter.setup(StaticJavaParser.parseStatement( in issue2099AddingStatementAfterTraillingComment1() 179 Statement statement = LexicalPreservingPrinter.setup(StaticJavaParser.parseStatement( in issue2099AddingStatementAfterTraillingComment2() 204 Statement statement = LexicalPreservingPrinter.setup(StaticJavaParser.parseStatement( in addingStatement1() 234 Statement statement = LexicalPreservingPrinter.setup(StaticJavaParser.parseStatement( in addingStatement2() 264 Statement statement = LexicalPreservingPrinter.setup(StaticJavaParser.parseStatement( in addingStatement3()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/ |
D | StatementTransformationsTest.java | 34 import static com.github.javaparser.StaticJavaParser.parseStatement; 42 Statement statement = parseStatement(code); in consider()
|
D | MethodDeclarationTransformationsTest.java | 43 import static com.github.javaparser.StaticJavaParser.parseStatement; 476 Statement statement = parseStatement("Object anonymous = new Object() {" + EOL + in parseAndPrintAnonymousClassStatement() 487 Statement statement = parseStatement("Object anonymous = new Object() {" + EOL + in replaceBodyShouldNotBreakAnonymousClasses()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/utils/ |
D | TestParser.java | 22 public static Statement parseStatement(String stmt) { in parseStatement() method in TestParser 23 return unpack(parser.parseStatement(stmt)); in parseStatement()
|
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/ |
D | HashCodeVisitorGenerator.java | 14 import static com.github.javaparser.StaticJavaParser.parseStatement; 57 body.addStatement(parseStatement(builder.toString())); in generateVisitMethodBody()
|
D | NoCommentHashCodeVisitorGenerator.java | 36 import static com.github.javaparser.StaticJavaParser.parseStatement; 87 body.addStatement(parseStatement(builder.toString())); in generateVisitMethodBody()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/ |
D | NodeWithStatements.java | 32 import static com.github.javaparser.StaticJavaParser.parseStatement; 72 return addStatement(parseStatement(statement)); in addStatement()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/ |
D | PrettyPrinterTest.java | 259 Statement cu = parseStatement("if (x.y().z()) { boo().baa().bee(); }"); in noChainsIndentsInIf() 272 Statement cu = parseStatement("for(int x=1; x.y().z(); x.z().z()) { boo().baa().bee(); }"); in noChainsIndentsInFor() 285 Statement cu = parseStatement("while(x.y().z()) { boo().baa().bee(); }"); in noChainsIndentsInWhile()
|
/external/javassist/src/test/javassist/compiler/ |
D | CompTest.java | 51 Stmnt s = p.parseStatement(stb); in testStaticMember() 62 Stmnt s = p.parseStatement(stb); in testStaticMember2()
|
D | ParseTest.java | 10 Stmnt s = p.parseStatement(stb); in main()
|
/external/javassist/src/main/javassist/compiler/ |
D | Parser.java | 256 public Stmnt parseStatement(SymbolTable tbl) in parseStatement() method in Parser 270 return Stmnt.make(LABEL, new Symbol(label), parseStatement(tbl)); in parseStatement() 307 Stmnt s = parseStatement(tbl2); in parseBlock() 324 Stmnt thenp = parseStatement(tbl); in parseIf() 328 elsep = parseStatement(tbl); in parseIf() 343 Stmnt body = parseStatement(tbl); in parseWhile() 351 Stmnt body = parseStatement(tbl); in parseDo() 398 Stmnt body = parseStatement(tbl2); in parseFor() 452 return parseStatement(tbl); in parseStmntOrCase()
|
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ |
D | StaticJavaParser.java | 251 public static Statement parseStatement(final String statement) { in parseStatement() method in StaticJavaParser 252 return handleResult(newParser().parseStatement(statement)); in parseStatement()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/type/ |
D | ArrayTypeTest.java | 63 …ExpressionStmt variableDeclarationStatement = parseStatement("@C int @A[] @B[] a @X[] @Y[];").asEx… in getVariableDeclarationWithArrays() 120 …ExpressionStmt variableDeclarationStatement = parseStatement("@C int @A[] @B[] a @X[] @Y[];").asEx… in setVariableDeclarationWithArrays()
|
/external/javaparser/javaparser-core-testing-bdd/src/test/java/com/github/javaparser/steps/ |
D | PrettyPrintingSteps.java | 74 resultNode = parseStatement(sourceUnderTest); in whenTheStatementIsParsedByTheJavaParser()
|
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/remove/ |
D | NodeRemovalTest.java | 82 BlockStmt bstmt = TestParser.parseStatement(sample).asBlockStmt(); in testRemoveStatementFromMethodBodyWithLexicalPreservingPrinter()
|