Home
last modified time | relevance | path

Searched refs:parseStatement (Results 1 – 25 of 38) sorted by relevance

12

/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/expr/
DSwitchExprTest.java15 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/
DIfElseStmtTest.java5 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()
DBreakStmtTest.java13 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()
DForEachStmtTest.java7 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()
DSwitchStmtTest.java6 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/
DNodeWithBodyTest.java14 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/
DInitializePropertyMetaModelsStatementsGenerator.java12 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()
DInitializeConstructorParametersStatementsGenerator.java12 import static com.github.javaparser.StaticJavaParser.parseStatement;
31 initializeConstructorParametersStatements.add(parseStatement(addFieldStatement)); in generate()
DNodeMetaModelGenerator.java45 …initializeNodeMetaModelsStatements.add(parseStatement(f("nodeMetaModels.add(%s);", nodeMetaModelFi… in generate()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/body/
DAnnotationDeclarationTest.java6 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/
DTransformationsTest.java155 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/
DStatementTransformationsTest.java34 import static com.github.javaparser.StaticJavaParser.parseStatement;
42 Statement statement = parseStatement(code); in consider()
DMethodDeclarationTransformationsTest.java43 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/
DTestParser.java22 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/
DHashCodeVisitorGenerator.java14 import static com.github.javaparser.StaticJavaParser.parseStatement;
57 body.addStatement(parseStatement(builder.toString())); in generateVisitMethodBody()
DNoCommentHashCodeVisitorGenerator.java36 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/
DNodeWithStatements.java32 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/
DPrettyPrinterTest.java259 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/
DCompTest.java51 Stmnt s = p.parseStatement(stb); in testStaticMember()
62 Stmnt s = p.parseStatement(stb); in testStaticMember2()
DParseTest.java10 Stmnt s = p.parseStatement(stb); in main()
/external/javassist/src/main/javassist/compiler/
DParser.java256 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/
DStaticJavaParser.java251 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/
DArrayTypeTest.java63 …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/
DPrettyPrintingSteps.java74 resultNode = parseStatement(sourceUnderTest); in whenTheStatementIsParsedByTheJavaParser()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/remove/
DNodeRemovalTest.java82 BlockStmt bstmt = TestParser.parseStatement(sample).asBlockStmt(); in testRemoveStatementFromMethodBodyWithLexicalPreservingPrinter()

12