Modifier and Type | Field and Description |
---|---|
static ParseStart<BlockStmt> |
ParseStart.BLOCK |
Modifier and Type | Method and Description |
---|---|
static BlockStmt |
JavaParser.parseBlock(String blockStatement)
|
Modifier and Type | Method and Description |
---|---|
BlockStmt |
InitializerDeclaration.getBlock() |
BlockStmt |
ConstructorDeclaration.getBody() |
Modifier and Type | Method and Description |
---|---|
Optional<BlockStmt> |
MethodDeclaration.getBody() |
Modifier and Type | Method and Description |
---|---|
InitializerDeclaration |
InitializerDeclaration.setBlock(BlockStmt block) |
ConstructorDeclaration |
ConstructorDeclaration.setBody(BlockStmt body) |
MethodDeclaration |
MethodDeclaration.setBody(BlockStmt body)
Sets the body
|
Modifier and Type | Method and Description |
---|---|
default BlockStmt |
NodeWithMembers.addInitializer() |
default BlockStmt |
NodeWithMembers.addStaticInitializer() |
default BlockStmt |
NodeWithBody.createBlockStatementAsBody() |
default BlockStmt |
NodeWithBlockStmt.createBody() |
default BlockStmt |
NodeWithOptionalBlockStmt.createBody() |
BlockStmt |
NodeWithBlockStmt.getBody() |
Modifier and Type | Method and Description |
---|---|
Optional<BlockStmt> |
NodeWithOptionalBlockStmt.getBody() |
Modifier and Type | Method and Description |
---|---|
N |
NodeWithBlockStmt.setBody(BlockStmt block) |
N |
NodeWithOptionalBlockStmt.setBody(BlockStmt block) |
Modifier and Type | Method and Description |
---|---|
BlockStmt |
SynchronizedStmt.getBlock()
Deprecated.
|
BlockStmt |
SynchronizedStmt.getBody() |
BlockStmt |
CatchClause.getBody() |
BlockStmt |
CatchClause.getCatchBlock()
Deprecated.
|
BlockStmt |
TryStmt.getFinallyBlock() |
BlockStmt |
TryStmt.getTryBlock() |
BlockStmt |
BlockStmt.setStmts(NodeList<Statement> stmts) |
Modifier and Type | Method and Description |
---|---|
SynchronizedStmt |
SynchronizedStmt.setBlock(BlockStmt block)
Deprecated.
Use
SynchronizedStmt.setBody(BlockStmt) instead |
SynchronizedStmt |
SynchronizedStmt.setBody(BlockStmt block) |
CatchClause |
CatchClause.setBody(BlockStmt block) |
CatchClause |
CatchClause.setCatchBlock(BlockStmt catchBlock)
Deprecated.
|
TryStmt |
TryStmt.setFinallyBlock(BlockStmt finallyBlock) |
TryStmt |
TryStmt.setTryBlock(BlockStmt tryBlock) |
Constructor and Description |
---|
CatchClause(EnumSet<Modifier> exceptModifier,
NodeList<AnnotationExpr> exceptAnnotations,
ClassOrInterfaceType exceptType,
VariableDeclaratorId exceptId,
BlockStmt catchBlock) |
CatchClause(Parameter param,
BlockStmt catchBlock) |
CatchClause(Range range,
Parameter parameter,
BlockStmt catchBlock) |
ForeachStmt(VariableDeclarationExpr var,
String iterable,
BlockStmt body) |
SynchronizedStmt(Expression expr,
BlockStmt block) |
SynchronizedStmt(Range range,
Expression expr,
BlockStmt block) |
TryStmt(BlockStmt tryBlock,
NodeList<CatchClause> catchs,
BlockStmt finallyBlock) |
TryStmt(Range range,
NodeList<VariableDeclarationExpr> resources,
BlockStmt tryBlock,
NodeList<CatchClause> catchs,
BlockStmt finallyBlock) |
Modifier and Type | Method and Description |
---|---|
R |
GenericVisitor.visit(BlockStmt n,
A arg) |
void |
VoidVisitor.visit(BlockStmt n,
A arg) |
void |
VoidVisitorAdapter.visit(BlockStmt n,
A arg) |
Visitable |
ModifierVisitorAdapter.visit(BlockStmt n,
A arg) |
R |
GenericVisitorAdapter.visit(BlockStmt n,
A arg) |
Visitable |
CloneVisitor.visit(BlockStmt _n,
Object _arg) |
Boolean |
EqualsVisitor.visit(BlockStmt n1,
Visitable arg) |
Modifier and Type | Method and Description |
---|---|
void |
PrettyPrintVisitor.visit(BlockStmt n,
Void arg) |
Copyright © 2007–2016. All rights reserved.