Package | Description |
---|---|
com.github.javaparser | |
com.github.javaparser.ast.body | |
com.github.javaparser.ast.stmt | |
com.github.javaparser.ast.visitor |
Modifier and Type | Method and Description |
---|---|
static BlockStmt |
JavaParser.parseBlock(String blockStatement)
|
Modifier and Type | Method and Description |
---|---|
static void |
ASTHelper.addStmt(BlockStmt block,
Expression expr)
Adds the given expression to the specified block.
|
static void |
ASTHelper.addStmt(BlockStmt block,
Statement stmt)
Adds the given statement to the specified block.
|
Modifier and Type | Method and Description |
---|---|
BlockStmt |
ConstructorDeclaration.getBlock() |
BlockStmt |
InitializerDeclaration.getBlock() |
BlockStmt |
MethodDeclaration.getBody() |
Modifier and Type | Method and Description |
---|---|
void |
ConstructorDeclaration.setBlock(BlockStmt block) |
void |
InitializerDeclaration.setBlock(BlockStmt block) |
void |
MethodDeclaration.setBody(BlockStmt body) |
Constructor and Description |
---|
ConstructorDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
List<AnnotationExpr> annotations,
List<TypeParameter> typeParameters,
String name,
List<Parameter> parameters,
List<NameExpr> throws_,
BlockStmt block) |
ConstructorDeclaration(int modifiers,
List<AnnotationExpr> annotations,
List<TypeParameter> typeParameters,
String name,
List<Parameter> parameters,
List<NameExpr> throws_,
BlockStmt block) |
InitializerDeclaration(boolean isStatic,
BlockStmt block) |
InitializerDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
boolean isStatic,
BlockStmt block) |
MethodDeclaration(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int modifiers,
List<AnnotationExpr> annotations,
List<TypeParameter> typeParameters,
Type type,
String name,
List<Parameter> parameters,
int arrayCount,
List<NameExpr> throws_,
BlockStmt block) |
MethodDeclaration(int modifiers,
List<AnnotationExpr> annotations,
List<TypeParameter> typeParameters,
Type type,
String name,
List<Parameter> parameters,
int arrayCount,
List<NameExpr> throws_,
BlockStmt block) |
Modifier and Type | Method and Description |
---|---|
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(int beginLine,
int beginColumn,
int endLine,
int endColumn,
int exceptModifier,
List<AnnotationExpr> exceptAnnotations,
List<Type> exceptTypes,
VariableDeclaratorId exceptId,
BlockStmt catchBlock) |
CatchClause(int exceptModifier,
List<AnnotationExpr> exceptAnnotations,
List<Type> exceptTypes,
VariableDeclaratorId exceptId,
BlockStmt catchBlock) |
CatchClause(MultiTypeParameter except,
BlockStmt catchBlock) |
SynchronizedStmt(Expression expr,
BlockStmt block) |
SynchronizedStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
Expression expr,
BlockStmt block) |
TryStmt(BlockStmt tryBlock,
List<CatchClause> catchs,
BlockStmt finallyBlock) |
TryStmt(int beginLine,
int beginColumn,
int endLine,
int endColumn,
List<VariableDeclarationExpr> resources,
BlockStmt tryBlock,
List<CatchClause> catchs,
BlockStmt finallyBlock) |
Modifier and Type | Method and Description |
---|---|
void |
VoidVisitorAdapter.visit(BlockStmt n,
A arg) |
R |
GenericVisitorAdapter.visit(BlockStmt n,
A arg) |
void |
VoidVisitor.visit(BlockStmt n,
A arg) |
Node |
ModifierVisitorAdapter.visit(BlockStmt n,
A arg) |
R |
GenericVisitor.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-2015. All Rights Reserved.