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 | Field and Description |
---|---|
static ParseContext<BlockStmt> |
ParseContext.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() |
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 |
NodeWithBody.createBlockStatementAsBody() |
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 |
SynchronizedStmt.getBlock()
Deprecated.
|
BlockStmt |
SynchronizedStmt.getBody() |
BlockStmt |
CatchClause.getBody() |
BlockStmt |
CatchClause.getCatchBlock()
Deprecated.
|
BlockStmt |
TryStmt.getFinallyBlock() |
BlockStmt |
TryStmt.getTryBlock() |
BlockStmt |
BlockStmt.setStmts(List<Statement> stmts) |
Modifier and Type | Method and Description |
---|---|
void |
SynchronizedStmt.setBlock(BlockStmt block)
Deprecated.
Use
SynchronizedStmt.setBody(BlockStmt) instead |
SynchronizedStmt |
SynchronizedStmt.setBody(BlockStmt block) |
CatchClause |
CatchClause.setBody(BlockStmt block) |
void |
CatchClause.setCatchBlock(BlockStmt catchBlock)
Deprecated.
|
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) |
ForeachStmt(VariableDeclarationExpr var,
String iterable,
BlockStmt body)
Will create a
NameExpr with the iterable param |
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.