Home
last modified time | relevance | path

Searched refs:BlockStmt (Results 1 – 25 of 172) sorted by relevance

1234567

/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/stmt/
DTryStmt.java37 private BlockStmt tryBlock;
41 private BlockStmt finallyBlock;
46 public TryStmt(final BlockStmt tryBlock, final List<CatchClause> catchs, in TryStmt()
47 final BlockStmt finallyBlock) { in TryStmt()
55 final BlockStmt tryBlock, final List<CatchClause> catchs, final BlockStmt finallyBlock) { in TryStmt()
77 public BlockStmt getFinallyBlock() { in getFinallyBlock()
81 public BlockStmt getTryBlock() { in getTryBlock()
94 public void setFinallyBlock(final BlockStmt finallyBlock) { in setFinallyBlock()
99 public void setTryBlock(final BlockStmt tryBlock) { in setTryBlock()
DCatchClause.java41 private BlockStmt catchBlock;
46 public CatchClause(final MultiTypeParameter except, final BlockStmt catchBlock) { in CatchClause()
51 …> exceptAnnotations, List<Type> exceptTypes, VariableDeclaratorId exceptId, BlockStmt catchBlock) { in CatchClause()
57 final VariableDeclaratorId exceptId, final BlockStmt catchBlock) { in CatchClause()
71 public BlockStmt getCatchBlock() { in getCatchBlock()
79 public void setCatchBlock(final BlockStmt catchBlock) { in setCatchBlock()
DSynchronizedStmt.java35 private BlockStmt block;
40 public SynchronizedStmt(final Expression expr, final BlockStmt block) { in SynchronizedStmt()
47 final BlockStmt block) { in SynchronizedStmt()
63 public BlockStmt getBlock() { in getBlock()
71 public void setBlock(final BlockStmt block) { in setBlock()
DBlockStmt.java32 public final class BlockStmt extends Statement { class
36 public BlockStmt() { in BlockStmt() method in BlockStmt
39 public BlockStmt(final List<Statement> stmts) { in BlockStmt() method in BlockStmt
43 public BlockStmt(final int beginLine, final int beginColumn, in BlockStmt() method in BlockStmt
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/stmt/
DTryStmt.java40 private BlockStmt tryBlock;
44 private BlockStmt finallyBlock;
49 public TryStmt(final BlockStmt tryBlock, final List<CatchClause> catchs, in TryStmt()
50 final BlockStmt finallyBlock) { in TryStmt()
57 … final BlockStmt tryBlock, final List<CatchClause> catchs, final BlockStmt finallyBlock) { in TryStmt()
80 public BlockStmt getFinallyBlock() { in getFinallyBlock()
84 public BlockStmt getTryBlock() { in getTryBlock()
99 public TryStmt setFinallyBlock(final BlockStmt finallyBlock) { in setFinallyBlock()
105 public TryStmt setTryBlock(final BlockStmt tryBlock) { in setTryBlock()
DSynchronizedStmt.java37 private BlockStmt block;
42 public SynchronizedStmt(final Expression expr, final BlockStmt block) { in SynchronizedStmt()
48 final BlockStmt block) { in SynchronizedStmt()
69 public BlockStmt getBlock() { in getBlock()
82 public SynchronizedStmt setBlock(final BlockStmt block) { in setBlock()
95 public BlockStmt getBody() { in getBody()
100 public SynchronizedStmt setBody(BlockStmt block) { in setBody()
DBlockStmt.java36 public final class BlockStmt extends Statement implements NodeWithStatements<BlockStmt> { class
40 public BlockStmt() { in BlockStmt() method in BlockStmt
43 public BlockStmt(final List<Statement> stmts) { in BlockStmt() method in BlockStmt
47 public BlockStmt(final Range range, final List<Statement> stmts) { in BlockStmt() method in BlockStmt
69 public BlockStmt setStmts(final List<Statement> stmts) { in setStmts()
DCatchClause.java46 private BlockStmt catchBlock;
51 public CatchClause(final Parameter param, final BlockStmt catchBlock) { in CatchClause()
61 final BlockStmt catchBlock) { in CatchClause()
79 public BlockStmt getCatchBlock() { in getCatchBlock()
97 public CatchClause setCatchBlock(final BlockStmt catchBlock) { in setCatchBlock()
110 public BlockStmt getBody() { in getBody()
115 public CatchClause setBody(BlockStmt block) { in setBody()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/stmt/
DTryStmt.java99 private BlockStmt tryBlock;
104 private BlockStmt finallyBlock;
107 this(null, new NodeList<>(), new BlockStmt(), new NodeList<>(), null); in TryStmt()
110 …public TryStmt(final BlockStmt tryBlock, final NodeList<CatchClause> catchClauses, final BlockStmt in TryStmt()
115 …NodeList<Expression> resources, final BlockStmt tryBlock, final NodeList<CatchClause> catchClauses… in TryStmt()
123 …tokenRange, NodeList<Expression> resources, BlockStmt tryBlock, NodeList<CatchClause> catchClauses… in TryStmt()
150 public Optional<BlockStmt> getFinallyBlock() { in getFinallyBlock()
155 public BlockStmt getTryBlock() { in getTryBlock()
179 public TryStmt setFinallyBlock(final BlockStmt finallyBlock) { in setFinallyBlock()
192 public TryStmt setTryBlock(final BlockStmt tryBlock) { in setTryBlock()
[all …]
DBlockStmt.java44 public class BlockStmt extends Statement implements NodeWithStatements<BlockStmt> { class
48 public BlockStmt() { in BlockStmt() method in BlockStmt
53 public BlockStmt(final NodeList<Statement> statements) { in BlockStmt() method in BlockStmt
61 public BlockStmt(TokenRange tokenRange, NodeList<Statement> statements) { in BlockStmt() method in BlockStmt
85 public BlockStmt setStatements(final NodeList<Statement> statements) { in setStatements()
88 return (BlockStmt) this; in setStatements()
114 public BlockStmt clone() { in clone()
115 return (BlockStmt) accept(new CloneVisitor(), null); in clone()
146 public BlockStmt asBlockStmt() { in asBlockStmt()
151 public void ifBlockStmt(Consumer<BlockStmt> action) { in ifBlockStmt()
[all …]
DCatchClause.java50 private BlockStmt body;
53 this(null, new Parameter(), new BlockStmt()); in CatchClause()
56 …ations, final ClassOrInterfaceType exceptType, final SimpleName exceptName, final BlockStmt body) { in CatchClause()
61 public CatchClause(final Parameter parameter, final BlockStmt body) { in CatchClause()
69 public CatchClause(TokenRange tokenRange, Parameter parameter, BlockStmt body) { in CatchClause()
113 public BlockStmt getBody() { in getBody()
118 public CatchClause setBody(final BlockStmt body) { in setBody()
157 setBody((BlockStmt) replacementNode); in replace()
DSynchronizedStmt.java51 private BlockStmt body;
54 this(null, new NameExpr(), new BlockStmt()); in SynchronizedStmt()
58 public SynchronizedStmt(final Expression expression, final BlockStmt body) { in SynchronizedStmt()
66 public SynchronizedStmt(TokenRange tokenRange, Expression expression, BlockStmt body) { in SynchronizedStmt()
105 public BlockStmt getBody() { in getBody()
110 public SynchronizedStmt setBody(final BlockStmt body) { in setBody()
149 setBody((BlockStmt) replacementNode); in replace()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/nodeTypes/
DNodeWithBlockStmt.java25 import com.github.javaparser.ast.stmt.BlockStmt;
31 BlockStmt getBody(); in getBody()
33 N setBody(BlockStmt block); in setBody()
35 default BlockStmt createBody() { in createBody()
36 BlockStmt block = new BlockStmt(); in createBody()
DNodeWithOptionalBlockStmt.java25 import com.github.javaparser.ast.stmt.BlockStmt;
33 Optional<BlockStmt> getBody(); in getBody()
35 N setBody(BlockStmt block); in setBody()
39 default BlockStmt createBody() { in createBody()
40 BlockStmt block = new BlockStmt(); in createBody()
DNodeWithBody.java25 import com.github.javaparser.ast.stmt.BlockStmt;
34 default BlockStmt createBlockStatementAsBody() { in createBlockStatementAsBody()
35 BlockStmt b = new BlockStmt(); in createBlockStatementAsBody()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/nodeTypes/
DNodeWithBlockStmt.java4 import com.github.javaparser.ast.stmt.BlockStmt;
7 BlockStmt getBody(); in getBody()
9 T setBody(BlockStmt block); in setBody()
11 default BlockStmt createBody() { in createBody()
12 BlockStmt block = new BlockStmt(); in createBody()
DNodeWithBody.java4 import com.github.javaparser.ast.stmt.BlockStmt;
12 public default BlockStmt createBlockStatementAsBody() { in createBlockStatementAsBody()
13 BlockStmt b = new BlockStmt(); in createBlockStatementAsBody()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DUnnecessaryCopyInitialization.cpp100 const auto *BlockStmt = Result.Nodes.getNodeAs<Stmt>("blockStmt"); in check() local
126 handleCopyFromMethodReturn(*NewVar, *BlockStmt, IssueFix, ObjectArg, in check()
129 handleCopyFromLocalVar(*NewVar, *OldVar, *BlockStmt, IssueFix, in check()
135 const VarDecl &Var, const Stmt &BlockStmt, bool IssueFix, in handleCopyFromMethodReturn() argument
138 if (!IsConstQualified && !isOnlyUsedAsConst(Var, BlockStmt, Context)) in handleCopyFromMethodReturn()
141 !isOnlyUsedAsConst(*ObjectArg, BlockStmt, Context)) in handleCopyFromMethodReturn()
158 const VarDecl &NewVar, const VarDecl &OldVar, const Stmt &BlockStmt, in handleCopyFromLocalVar() argument
160 if (!isOnlyUsedAsConst(NewVar, BlockStmt, Context) || in handleCopyFromLocalVar()
161 !isOnlyUsedAsConst(OldVar, BlockStmt, Context)) in handleCopyFromLocalVar()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/javaparser-core/com/github/javaparser/ast/body/
DInitializerDeclaration.java27 import com.github.javaparser.ast.stmt.BlockStmt;
39 private BlockStmt block;
44 public InitializerDeclaration(boolean isStatic, BlockStmt block) { in InitializerDeclaration()
50 public InitializerDeclaration(Range range, boolean isStatic, BlockStmt block) { in InitializerDeclaration()
66 public BlockStmt getBlock() { in getBlock()
74 public InitializerDeclaration setBlock(BlockStmt block) { in setBlock()
/external/javaparser/javaparser-core/src/main/java/com/github/javaparser/ast/body/
DInitializerDeclaration.java27 import com.github.javaparser.ast.stmt.BlockStmt;
49 private BlockStmt body;
52 this(null, false, new BlockStmt()); in InitializerDeclaration()
56 public InitializerDeclaration(boolean isStatic, BlockStmt body) { in InitializerDeclaration()
64 public InitializerDeclaration(TokenRange tokenRange, boolean isStatic, BlockStmt body) { in InitializerDeclaration()
84 public BlockStmt getBody() { in getBody()
94 public InitializerDeclaration setBody(final BlockStmt body) { in setBody()
143 setBody((BlockStmt) replacementNode); in replace()
DConstructorDeclaration.java29 import com.github.javaparser.ast.stmt.BlockStmt;
56 private BlockStmt body;
59 …(), new NodeList<>(), new SimpleName(), new NodeList<>(), new NodeList<>(), new BlockStmt(), null); in ConstructorDeclaration()
63 …new NodeList<>(), new SimpleName(name), new NodeList<>(), new NodeList<>(), new BlockStmt(), null); in ConstructorDeclaration()
67 …new NodeList<>(), new SimpleName(name), new NodeList<>(), new NodeList<>(), new BlockStmt(), null); in ConstructorDeclaration()
70 …e name, NodeList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body) { in ConstructorDeclaration()
75 …deList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverPa… in ConstructorDeclaration()
83 …deList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverPa… in ConstructorDeclaration()
102 public BlockStmt getBody() { in getBody()
113 public ConstructorDeclaration setBody(final BlockStmt body) { in setBody()
[all …]
DMethodDeclaration.java29 import com.github.javaparser.ast.stmt.BlockStmt;
63 private BlockStmt body;
66 …assOrInterfaceType(), new SimpleName(), new NodeList<>(), new NodeList<>(), new BlockStmt(), null); in MethodDeclaration()
70 …deList<>(), type, new SimpleName(name), new NodeList<>(), new NodeList<>(), new BlockStmt(), null); in MethodDeclaration()
74 …new NodeList<>(), type, new SimpleName(name), parameters, new NodeList<>(), new BlockStmt(), null); in MethodDeclaration()
77 …List<Parameter> parameters, final NodeList<ReferenceType> thrownExceptions, final BlockStmt body) { in MethodDeclaration()
82 …eter> parameters, final NodeList<ReferenceType> thrownExceptions, final BlockStmt body, ReceiverPa… in MethodDeclaration()
90 …deList<Parameter> parameters, NodeList<ReferenceType> thrownExceptions, BlockStmt body, ReceiverPa… in MethodDeclaration()
110 public Optional<BlockStmt> getBody() { in getBody()
121 public MethodDeclaration setBody(final BlockStmt body) { in setBody()
[all …]
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_new_src/expected_output/
Dcom_github_javaparser_ast_stmt_BlockStmt.txt1 …Line 44) setStmts(stmts) ==> com.github.javaparser.ast.stmt.BlockStmt.setStmts(java.util.List<com.…
2 …Line 49) setStmts(stmts) ==> com.github.javaparser.ast.stmt.BlockStmt.setStmts(java.util.List<com.…
3 …com.github.javaparser.ast.visitor.GenericVisitor.visit(com.github.javaparser.ast.stmt.BlockStmt, A)
4 …=> com.github.javaparser.ast.visitor.VoidVisitor.visit(com.github.javaparser.ast.stmt.BlockStmt, A)
/external/javaparser/javaparser-core-testing/src/test/java/com/github/javaparser/ast/
DFindNodeTest.java4 import com.github.javaparser.ast.stmt.BlockStmt;
68 BlockStmt actual = methodCallExpr.findAncestor(BlockStmt.class, bs -> { in testFindAncestralFinallyBlock()
76 BlockStmt expected = cu.getType(0).getMember(0) in testFindAncestralFinallyBlock()
/external/javaparser/javaparser-symbol-solver-testing/src/test/test_sourcecode/javaparser_src/proper_source/com/github/javaparser/ast/body/
DConstructorDeclaration.java34 import com.github.javaparser.ast.stmt.BlockStmt;
54 private BlockStmt block;
65 … String name, List<Parameter> parameters, List<NameExpr> throws_, BlockStmt block) { in ConstructorDeclaration()
77 … List<Parameter> parameters, List<NameExpr> throws_, BlockStmt block) { in ConstructorDeclaration()
97 public BlockStmt getBlock() { in getBlock()
137 public void setBlock(BlockStmt block) { in setBlock()

1234567