Home
last modified time | relevance | path

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

123

/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/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-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()
103 return getStatements().isEmpty(); in isEmpty()
115 return copyStatements(other.getStatements()); in copyStatements()
/external/javaparser/javaparser-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/resolution/
DMethodsResolutionTest.java110 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in solveMethodAccessThroughSuper()
151 …MethodCallExpr expression = method.getBody().get().getStatements().get(0).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToLong()
157 …MethodCallExpr expression = method.getBody().get().getStatements().get(1).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToLong()
163 …MethodCallExpr expression = method.getBody().get().getStatements().get(2).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToLong()
169 …MethodCallExpr expression = method.getBody().get().getStatements().get(3).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToLong()
185 …MethodCallExpr expression = method.getBody().get().getStatements().get(0).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToInt()
191 …MethodCallExpr expression = method.getBody().get().getStatements().get(1).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToInt()
197 …MethodCallExpr expression = method.getBody().get().getStatements().get(2).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToInt()
203 …MethodCallExpr expression = method.getBody().get().getStatements().get(3).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToInt()
218 …MethodCallExpr expression = method.getBody().get().getStatements().get(0).asExpressionStmt().getEx… in solveMethodWithTypePromotionsToShort()
[all …]
DFieldsResolutionTest.java60 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in accessClassFieldThroughThis()
72 … ExpressionStmt expressionStmt = (ExpressionStmt) method.getBody().get().getStatements().get(0); in accessClassFieldThroughThisWithCompetingSymbolInParentContext()
102 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in accessEnumMethodThroughThis()
114 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in accessClassFieldThroughSuper()
130 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in resolveClassFieldThroughThis()
152 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in resolveClassFieldThroughSuper()
175 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in resolveClassFieldOfClassExtendingUnknownClass1()
197 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in resolveClassFieldOfClassExtendingUnknownClass2()
219 ReturnStmt returnStmt = (ReturnStmt) method.getBody().get().getStatements().get(0); in resolveInheritedFieldFromInterface()
DConstructorsResolutionTest.java37 ObjectCreationExpr objectCreationExpr = method.getBody().get().getStatements().get(0) in solveNormalConstructor()
56 ObjectCreationExpr objectCreationExpr = method.getBody().get().getStatements().get(1) in solveInnerClassConstructor()
75 ObjectCreationExpr objectCreationExpr = method.getBody().get().getStatements().get(0) in solveInnerClassConstructorWithNewScope()
94 ObjectCreationExpr objectCreationExpr = method.getBody().get().getStatements().get(0) in solveInnerInnerClassConstructor()
DMethodLikeSignaturesTest.java24 ObjectCreationExpr objectCreationExpr = method.getBody().get().getStatements().get(0) in checkReflectionConstructorSignature()
41 MethodCallExpr methodCallExpr = method.getBody().get().getStatements().get(1) in checkReflectionMethodSignature()
/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 …]
DBlockStmtContext.java24 for (int i = 0; i < wrappedNode.getStatements().size(); i++) { in localVariablesExposedToChild()
25 if (wrappedNode.getStatements().get(i).equals(child)) { in localVariablesExposedToChild()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javasymbolsolver_0_6_0/src/java-symbol-solver-core/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()
DObjectIdentityEqualsVisitorGenerator.java23 body.getStatements().clear(); in generateVisitMethodBody()
DObjectIdentityHashCodeVisitorGenerator.java23 body.getStatements().clear(); in generateVisitMethodBody()
DVoidVisitorWithDefaultsGenerator.java23 body.getStatements().clear(); in generateVisitMethodBody()
DGenericVisitorAdapterGenerator.java26 body.getStatements().clear(); in generateVisitMethodBody()
DVoidVisitorAdapterGenerator.java26 body.getStatements().clear(); in generateVisitMethodBody()
/external/javaparser/javaparser-core-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-core-testing/src/test/java/com/github/javaparser/remove/
DNodeRemovalTest.java71 assertEquals(1, methodBody.getStatements().size()); in testRemoveStatementFromMethodBody()
74 assertEquals(0, methodBody.getStatements().size()); in testRemoveStatementFromMethodBody()
/external/javaparser/javaparser-core-metamodel-generator/src/main/java/com/github/javaparser/generator/metamodel/
DMetaModelGenerator.java182 … metaModelCoid.getMethodsByName("initializeNodeMetaModels").get(0).getBody().get().getStatements(); in generateNodeMetaModels()
183 …aModelCoid.getMethodsByName("initializePropertyMetaModels").get(0).getBody().get().getStatements(); in generateNodeMetaModels()
184 …delCoid.getMethodsByName("initializeConstructorParameters").get(0).getBody().get().getStatements(); in generateNodeMetaModels()
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/printer/lexicalpreservation/transformations/ast/body/
DStatementTransformationsTest.java57 NodeList<Statement> statements = stmt.asSwitchStmt().getEntry(0).getStatements(); in switchEntryCsmHasTrailingUnindent()
/external/javaparser/javaparser-core-generators/src/main/java/com/github/javaparser/generator/core/node/
DPropertyGenerator.java65 body.getStatements().clear(); in generateSetter()
99 body.getStatements().clear(); in generateGetter()
/external/javaparser/javaparser-core-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-symbol-solver-testing/src/test/java/com/github/javaparser/symbolsolver/
DIssue18Test.java40 … ExpressionStmt expr = (ExpressionStmt) methodDeclaration.getBody().get().getStatements().get(1); in typeDeclarationSuperClassImplicitlyIncludeObject()

123