Home
last modified time | relevance | path

Searched refs:getStatements (Results 1 – 25 of 60) sorted by relevance

123

/external/javaparser/javaparser-symbol-solver-testing/src/test/resources/javasymbolsolver_0_6_0/expected_output/java-symbol-solver-core/
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_StatementContext.txt3 Line 54) blockStmt.getStatements().size() ==> com.github.javaparser.ast.NodeList.size()
4 …Line 54) blockStmt.getStatements() ==> com.github.javaparser.ast.nodeTypes.NodeWithStatements.getS…
5 …Line 55) blockStmt.getStatements().get(i).equals(stmt) ==> com.github.javaparser.ast.Node.equals(j…
6 Line 55) blockStmt.getStatements().get(i) ==> com.github.javaparser.ast.NodeList.get(int)
7 …Line 55) blockStmt.getStatements() ==> com.github.javaparser.ast.nodeTypes.NodeWithStatements.getS…
8 …Line 63) JavaParserFactory.getSymbolDeclarator(blockStmt.getStatements().get(i), typeSolver) ==> c…
9 Line 63) blockStmt.getStatements().get(i) ==> com.github.javaparser.ast.NodeList.get(int)
10 …Line 63) blockStmt.getStatements() ==> com.github.javaparser.ast.nodeTypes.NodeWithStatements.getS…
18 Line 80) blockStmt.getStatements().size() ==> com.github.javaparser.ast.NodeList.size()
19 …Line 80) blockStmt.getStatements() ==> com.github.javaparser.ast.nodeTypes.NodeWithStatements.getS…
[all …]
Dcom_github_javaparser_symbolsolver_javaparsermodel_contexts_SwitchEntryContext.txt16 Line 63) seStmt.getStatements() ==> com.github.javaparser.ast.stmt.SwitchEntryStmt.getStatements()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DMethodsResolutionTest.java46 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in solveMethodAccessThroughSuper()
87 …MethodCallExpr expression = method.getBody().get().getStatements().get(0).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToLong()
93 …MethodCallExpr expression = method.getBody().get().getStatements().get(1).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToLong()
99 …MethodCallExpr expression = method.getBody().get().getStatements().get(2).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToLong()
105 …MethodCallExpr expression = method.getBody().get().getStatements().get(3).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToLong()
121 …MethodCallExpr expression = method.getBody().get().getStatements().get(0).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToInt()
127 …MethodCallExpr expression = method.getBody().get().getStatements().get(1).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToInt()
133 …MethodCallExpr expression = method.getBody().get().getStatements().get(2).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToInt()
139 …MethodCallExpr expression = method.getBody().get().getStatements().get(3).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToInt()
154 …MethodCallExpr expression = method.getBody().get().getStatements().get(0).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToShort()
[all …]
DFieldsResolutionTest.java47 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in accessClassFieldThroughThis()
59 … ExpressionStmt expressionStmt = (ExpressionStmt) method.getBody().get().getStatements().get(0); in accessClassFieldThroughThisWithCompetingSymbolInParentContext()
89 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in accessEnumMethodThroughThis()
101 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in accessFieldThroughSuper()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithStatements.java38 NodeList<Statement> getStatements(); in getStatements() method
41 return getStatements().get(i); in getStatement()
46 getStatements().set(i, statement); in setStatement()
54 getStatements().add(statement); in addStatement()
60 getStatements().add(index, statement); in addStatement()
81 getStatements().add(statement); in addAndGetStatement()
86 getStatements().add(index, statement); in addAndGetStatement()
100 return getStatements().isEmpty(); in isEmpty()
112 return copyStatements(other.getStatements()); in copyStatements()
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
DStatementContext.java54 for (int i = 0; i < blockStmt.getStatements().size(); i++) { in solveInBlock()
55 if (blockStmt.getStatements().get(i).equals(stmt)) { in solveInBlock()
63 …or symbolDeclarator = JavaParserFactory.getSymbolDeclarator(blockStmt.getStatements().get(i), type… in solveInBlock()
80 for (int i = 0; i < blockStmt.getStatements().size(); i++) { in solveInBlockAsValue()
81 if (blockStmt.getStatements().get(i).equals(stmt)) { in solveInBlockAsValue()
89 …or symbolDeclarator = JavaParserFactory.getSymbolDeclarator(blockStmt.getStatements().get(i), type… in solveInBlockAsValue()
125 for (int i = 0; i < nodeWithStmt.getStatements().size(); i++) { in solveSymbolAsValue()
126 if (nodeWithStmt.getStatements().get(i).equals(wrappedNode)) { in solveSymbolAsValue()
134 …symbolDeclarator = JavaParserFactory.getSymbolDeclarator(nodeWithStmt.getStatements().get(i), type… in solveSymbolAsValue()
171 for (int i = 0; i < nodeWithStmt.getStatements().size(); i++) { in solveSymbol()
[all …]
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/visitor/
DEqualsVisitorGenerator.java26 body.getStatements().clear(); in generateVisitMethodBody()
42 if (body.getStatements().size() == 1) { in generateVisitMethodBody()
44 body.getStatements().clear(); in generateVisitMethodBody()
DNoCommentEqualsVisitorGenerator.java47 body.getStatements().clear(); in generateVisitMethodBody()
69 if (body.getStatements().size() == 1) { in generateVisitMethodBody()
71 body.getStatements().clear(); in generateVisitMethodBody()
DGenericVisitorWithDefaultsGenerator.java23 body.getStatements().clear(); in generateVisitMethodBody()
DVoidVisitorWithDefaultsGenerator.java23 body.getStatements().clear(); in generateVisitMethodBody()
DObjectIdentityEqualsVisitorGenerator.java26 body.getStatements().clear(); in generateVisitMethodBody()
DObjectIdentityHashCodeVisitorGenerator.java29 body.getStatements().clear(); in generateVisitMethodBody()
DGenericVisitorAdapterGenerator.java26 body.getStatements().clear(); in generateVisitMethodBody()
DVoidVisitorAdapterGenerator.java26 body.getStatements().clear(); in generateVisitMethodBody()
DGenericListVisitorAdapterGenerator.java30 body.getStatements().clear(); in generateVisitMethodBody()
DHashCodeVisitorGenerator.java29 body.getStatements().clear(); in generateVisitMethodBody()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/remove/
DNodeRemovalTest.java66 assertEquals(1, methodBody.getStatements().size()); in testRemoveStatementFromMethodBody()
69 assertEquals(0, methodBody.getStatements().size()); in testRemoveStatementFromMethodBody()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/
DParseErrorRecoveryTest.java25 Statement xxx = cu.getBody().get().getStatements().get(0); in bodystatementSemicolonRecovery()
39 …xx = cu.getClassByName("X").get().getMethods().get(0).getBody().get().getStatements().get(0).asLab… in labeledStatementSemicolonRecovery()
/external/javaparser/javaparser-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/
DMetaModelGenerator.java175 … metaModelCoid.getMethodsByName("initializeNodeMetaModels").get(0).getBody().get().getStatements(); in generateNodeMetaModels()
176 …aModelCoid.getMethodsByName("initializePropertyMetaModels").get(0).getBody().get().getStatements(); in generateNodeMetaModels()
177 …delCoid.getMethodsByName("initializeConstructorParameters").get(0).getBody().get().getStatements(); in generateNodeMetaModels()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/
DLexicalPreservingPrinterTest.java357 …tmts = cu.getClassByName("A").get().getMethodsByName("foo").get(0).getBody().get().getStatements(); in printASimpleMethodAddingAStatement()
420 TryStmt tryStmt = (TryStmt)initializerDeclaration.getBody().getStatements().get(0); in printASingleCatchType()
432 TryStmt tryStmt = (TryStmt)initializerDeclaration.getBody().getStatements().get(0); in printUnionType()
444 TryStmt tryStmt = (TryStmt)initializerDeclaration.getBody().getStatements().get(0); in printParameterHavingUnionType()
631 setter.getBody().get().getStatements().add(new ExpressionStmt( in addingStatementToAnAddedMethodInASimpleClassWithMoreFormatting()
646 setter.getBody().get().getStatements().add(new ExpressionStmt( in addingStatementToAnAddedMethodInASimpleClassWithMoreFormattingFromStep3()
711 setter.getBody().get().getStatements().add(new ExpressionStmt( in nodeTextForModifiedMethod()
767 methodDeclaration.getBody().get().getStatements().add(new ExpressionStmt( in addASecondStatementToExistingMethod()
/external/javaparser/javaparser-testing/src/test/java/com/github/javaparser/printer/
DPrettyPrintVisitorTest.java118 …lizable) (() -> {" + EOL + "});", print(methodDeclaration.getBody().get().getStatements().get(0))); in printLambdaIntersectionTypeAssignment()
139 …etKey().compareTo(c2.getKey());", print(methodDeclaration.getBody().get().getStatements().get(0))); in printLambdaIntersectionTypeReturn()
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/
DPropertyGenerator.java61 body.getStatements().clear(); in generateSetter()
95 body.getStatements().clear(); in generateGetter()
DMainConstructorGenerator.java47 body.getStatements().addFirst(parseExplicitConstructorInvocationStmt(superCall.toString())); in generateNode()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DIssue18.java41 … ExpressionStmt expr = (ExpressionStmt) methodDeclaration.getBody().get().getStatements().get(1); in typeDeclarationSuperClassImplicitlyIncludeObject()
DIssue251.java27 ExpressionStmt stmt = (ExpressionStmt) m.getBody().get().getStatements().get(1); in testSolveStaticallyImportedMemberType()

123