Modifier and Type | Field and Description |
---|---|
static ParseStart<BlockStmt> |
ParseStart.BLOCK |
Modifier and Type | Method and Description |
---|---|
static BlockStmt |
StaticJavaParser.parseBlock(String blockStatement)
|
Modifier and Type | Method and Description |
---|---|
ParseResult<BlockStmt> |
JavaParser.parseBlock(String blockStatement)
|
Modifier and Type | Method and Description |
---|---|
BlockStmt |
InitializerDeclaration.getBody() |
BlockStmt |
ConstructorDeclaration.getBody() |
Modifier and Type | Method and Description |
---|---|
Optional<BlockStmt> |
MethodDeclaration.getBody() |
Modifier and Type | Method and Description |
---|---|
InitializerDeclaration |
InitializerDeclaration.setBody(BlockStmt body) |
ConstructorDeclaration |
ConstructorDeclaration.setBody(BlockStmt body)
Sets the body
|
MethodDeclaration |
MethodDeclaration.setBody(BlockStmt body)
Sets the body
|
Constructor and Description |
---|
ConstructorDeclaration(NodeList<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
ConstructorDeclaration(NodeList<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body,
ReceiverParameter receiverParameter) |
ConstructorDeclaration(TokenRange tokenRange,
NodeList<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body,
ReceiverParameter receiverParameter)
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(NodeList<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
MethodDeclaration(NodeList<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body,
ReceiverParameter receiverParameter) |
MethodDeclaration(TokenRange tokenRange,
NodeList<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
Type type,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body,
ReceiverParameter receiverParameter)
This constructor is used by the parser and is considered private.
|
Constructor and Description |
---|
LambdaExpr(NodeList<Parameter> parameters,
BlockStmt body)
Creates a zero or multi-parameter lambda expression with its parameters wrapped in ( ).
|
LambdaExpr(Parameter parameter,
BlockStmt body)
Creates a single parameter lambda expression.
|
Modifier and Type | Method and Description |
---|---|
default BlockStmt |
NodeWithMembers.addInitializer()
Add an initializer block (
InitializerDeclaration ) to this. |
default BlockStmt |
NodeWithMembers.addStaticInitializer()
Add a static initializer block (
InitializerDeclaration ) to this. |
default BlockStmt |
NodeWithBody.createBlockStatementAsBody() |
default BlockStmt |
NodeWithOptionalBlockStmt.createBody() |
default BlockStmt |
NodeWithBlockStmt.createBody() |
BlockStmt |
NodeWithBlockStmt.getBody() |
Modifier and Type | Method and Description |
---|---|
Optional<BlockStmt> |
NodeWithOptionalBlockStmt.getBody() |
Modifier and Type | Method and Description |
---|---|
N |
NodeWithOptionalBlockStmt.setBody(BlockStmt block) |
N |
NodeWithBlockStmt.setBody(BlockStmt block) |
Modifier and Type | Method and Description |
---|---|
BlockStmt |
BlockStmt.asBlockStmt() |
BlockStmt |
Statement.asBlockStmt() |
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() |
Optional<BlockStmt> |
BlockStmt.toBlockStmt() |
Optional<BlockStmt> |
Statement.toBlockStmt() |
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) |
Modifier and Type | Method and Description |
---|---|
void |
BlockStmt.ifBlockStmt(Consumer<BlockStmt> action) |
void |
Statement.ifBlockStmt(Consumer<BlockStmt> action) |
Constructor and Description |
---|
CatchClause(NodeList<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<Expression> resources,
BlockStmt tryBlock,
NodeList<CatchClause> catchClauses,
BlockStmt finallyBlock) |
TryStmt(TokenRange tokenRange,
NodeList<Expression> 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 |
---|---|
Visitable |
ModifierVisitor.visit(BlockStmt n,
A arg) |
R |
GenericVisitor.visit(BlockStmt n,
A arg) |
void |
VoidVisitorAdapter.visit(BlockStmt n,
A arg) |
List<R> |
GenericListVisitorAdapter.visit(BlockStmt n,
A arg) |
R |
GenericVisitorWithDefaults.visit(BlockStmt n,
A arg) |
void |
VoidVisitor.visit(BlockStmt n,
A arg) |
void |
VoidVisitorWithDefaults.visit(BlockStmt n,
A arg) |
R |
GenericVisitorAdapter.visit(BlockStmt n,
A arg) |
Visitable |
CloneVisitor.visit(BlockStmt n,
Object arg) |
Boolean |
ObjectIdentityEqualsVisitor.visit(BlockStmt n,
Visitable arg) |
Boolean |
EqualsVisitor.visit(BlockStmt n,
Visitable arg) |
Boolean |
NoCommentEqualsVisitor.visit(BlockStmt n,
Visitable arg) |
Integer |
ObjectIdentityHashCodeVisitor.visit(BlockStmt n,
Void arg) |
Integer |
HashCodeVisitor.visit(BlockStmt n,
Void arg) |
Integer |
NoCommentHashCodeVisitor.visit(BlockStmt n,
Void arg) |
Modifier and Type | Method and Description |
---|---|
void |
PrettyPrintVisitor.visit(BlockStmt n,
Void arg)
Deprecated.
|
void |
DefaultPrettyPrinterVisitor.visit(BlockStmt n,
Void arg) |
Copyright © 2007–2021. All rights reserved.