Package | Description |
---|---|
com.github.javaparser | |
com.github.javaparser.ast.body | |
com.github.javaparser.ast.nodeTypes | |
com.github.javaparser.ast.stmt | |
com.github.javaparser.ast.visitor |
Modifier and Type | Method and Description |
---|---|
BlockStmt |
JavaParser.parseBlock()
Parses the Java block and returns a
BlockStmt that represents it. |
static BlockStmt |
JavaParser.parseBlock(String blockStatement)
|
Modifier and Type | Method and Description |
---|---|
BlockStmt |
InitializerDeclaration.getBlock() |
BlockStmt |
ConstructorDeclaration.getBody() |
BlockStmt |
MethodDeclaration.getBody() |
Modifier and Type | Method and Description |
---|---|
void |
InitializerDeclaration.setBlock(BlockStmt block) |
ConstructorDeclaration |
ConstructorDeclaration.setBody(BlockStmt body) |
MethodDeclaration |
MethodDeclaration.setBody(BlockStmt body) |
Modifier and Type | Method and Description |
---|---|
default BlockStmt |
NodeWithMembers.addInitializer() |
default BlockStmt |
NodeWithMembers.addStaticInitializer() |
default BlockStmt |
NodeWithBlockStmt.createBody() |
BlockStmt |
NodeWithBlockStmt.getBody() |
Modifier and Type | Method and Description |
---|---|
T |
NodeWithBlockStmt.setBody(BlockStmt block) |
Modifier and Type | Method and Description |
---|---|
BlockStmt |
BlockStmt.addStatement(Expression expr) |
BlockStmt |
BlockStmt.addStatement(Statement statement) |
BlockStmt |
BlockStmt.addStatement(String statement) |
BlockStmt |
SynchronizedStmt.getBlock() |
BlockStmt |
CatchClause.getCatchBlock() |
BlockStmt |
TryStmt.getFinallyBlock() |
BlockStmt |
TryStmt.getTryBlock() |
Modifier and Type | Method and Description |
---|---|
void |
SynchronizedStmt.setBlock(BlockStmt block) |
void |
CatchClause.setCatchBlock(BlockStmt catchBlock) |
void |
TryStmt.setFinallyBlock(BlockStmt finallyBlock) |
void |
TryStmt.setTryBlock(BlockStmt tryBlock) |
Constructor and Description |
---|
CatchClause(Parameter param,
BlockStmt catchBlock) |
CatchClause(Range range,
EnumSet<Modifier> exceptModifier,
List<AnnotationExpr> exceptAnnotations,
Type exceptTypes,
VariableDeclaratorId exceptId,
BlockStmt catchBlock) |
SynchronizedStmt(Expression expr,
BlockStmt block) |
SynchronizedStmt(Range range,
Expression expr,
BlockStmt block) |
TryStmt(BlockStmt tryBlock,
List<CatchClause> catchs,
BlockStmt finallyBlock) |
TryStmt(Range range,
List<VariableDeclarationExpr> resources,
BlockStmt tryBlock,
List<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) |
Node |
ModifierVisitorAdapter.visit(BlockStmt n,
A arg) |
R |
GenericVisitorAdapter.visit(BlockStmt n,
A arg) |
Boolean |
EqualsVisitor.visit(BlockStmt n1,
Node arg) |
void |
DumpVisitor.visit(BlockStmt n,
Object arg) |
Node |
CloneVisitor.visit(BlockStmt _n,
Object _arg) |
Copyright © 2007–2016. All rights reserved.