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 |
ConstructorDeclaration.getBody() |
BlockStmt |
InitializerDeclaration.getBody() |
Modifier and Type | Method and Description |
---|---|
Optional<BlockStmt> |
MethodDeclaration.getBody() |
Modifier and Type | Method and Description |
---|---|
ConstructorDeclaration |
ConstructorDeclaration.setBody(BlockStmt body)
Sets the body
|
MethodDeclaration |
MethodDeclaration.setBody(BlockStmt body)
Sets the body
|
InitializerDeclaration |
InitializerDeclaration.setBody(BlockStmt body) |
Constructor and Description |
---|
ConstructorDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
ConstructorDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body)
This constructor is used by the parser and is considered private.
|
InitializerDeclaration(boolean isStatic,
BlockStmt body) |
InitializerDeclaration(TokenRange tokenRange,
boolean isStatic,
BlockStmt body)
This constructor is used by the parser and is considered private.
|
MethodDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
boolean isDefault,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body)
Deprecated.
this constructor allows you to set "isDefault", but this is no longer a field of this node, but simply one of the modifiers. Use setDefault(boolean) or add DEFAULT to the modifiers set.
|
MethodDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
MethodDeclaration(TokenRange tokenRange,
EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body)
This constructor is used by the parser and is considered private.
|
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 |
BlockStmt.clone() |
BlockStmt |
SynchronizedStmt.getBody() |
BlockStmt |
CatchClause.getBody() |
BlockStmt |
TryStmt.getTryBlock() |
BlockStmt |
BlockStmt.setStatements(NodeList<Statement> statements) |
Modifier and Type | Method and Description |
---|---|
Optional<BlockStmt> |
TryStmt.getFinallyBlock() |
Modifier and Type | Method and Description |
---|---|
SynchronizedStmt |
SynchronizedStmt.setBody(BlockStmt body) |
CatchClause |
CatchClause.setBody(BlockStmt body) |
TryStmt |
TryStmt.setFinallyBlock(BlockStmt finallyBlock) |
TryStmt |
TryStmt.setTryBlock(BlockStmt tryBlock) |
Constructor and Description |
---|
CatchClause(EnumSet<Modifier> exceptModifier,
NodeList<AnnotationExpr> exceptAnnotations,
ClassOrInterfaceType exceptType,
SimpleName exceptName,
BlockStmt body) |
CatchClause(Parameter parameter,
BlockStmt body) |
CatchClause(TokenRange tokenRange,
Parameter parameter,
BlockStmt body)
This constructor is used by the parser and is considered private.
|
ForeachStmt(VariableDeclarationExpr variable,
String iterable,
BlockStmt body) |
SynchronizedStmt(Expression expression,
BlockStmt body) |
SynchronizedStmt(TokenRange tokenRange,
Expression expression,
BlockStmt body)
This constructor is used by the parser and is considered private.
|
TryStmt(BlockStmt tryBlock,
NodeList<CatchClause> catchClauses,
BlockStmt finallyBlock) |
TryStmt(NodeList<VariableDeclarationExpr> resources,
BlockStmt tryBlock,
NodeList<CatchClause> catchClauses,
BlockStmt finallyBlock) |
TryStmt(TokenRange tokenRange,
NodeList<VariableDeclarationExpr> resources,
BlockStmt tryBlock,
NodeList<CatchClause> catchClauses,
BlockStmt finallyBlock)
This constructor is used by the parser and is considered private.
|
Modifier and Type | Method and Description |
---|---|
R |
GenericVisitor.visit(BlockStmt n,
A arg) |
Visitable |
ModifierVisitor.visit(BlockStmt n,
A arg) |
void |
VoidVisitor.visit(BlockStmt n,
A arg) |
void |
VoidVisitorAdapter.visit(BlockStmt n,
A arg) |
R |
GenericVisitorAdapter.visit(BlockStmt n,
A arg) |
List<R> |
GenericListVisitorAdapter.visit(BlockStmt n,
A arg) |
Visitable |
CloneVisitor.visit(BlockStmt n,
Object arg) |
Boolean |
EqualsVisitor.visit(BlockStmt n,
Visitable arg) |
Integer |
HashCodeVisitor.visit(BlockStmt n,
Void arg) |
Modifier and Type | Method and Description |
---|---|
void |
PrettyPrintVisitor.visit(BlockStmt n,
Void arg) |
Copyright © 2007–2017. All rights reserved.