Modifier and Type | Field | Description |
---|---|---|
static ParseStart<BlockStmt> |
ParseStart.BLOCK |
Modifier and Type | Method | Description |
---|---|---|
static BlockStmt |
JavaParser.parseBlock(String blockStatement) |
Modifier and Type | Method | Description |
---|---|---|
BlockStmt |
ConstructorDeclaration.getBody() |
|
BlockStmt |
InitializerDeclaration.getBody() |
Modifier and Type | Method | Description |
---|---|---|
Optional<BlockStmt> |
MethodDeclaration.getBody() |
Modifier and Type | Method | Description |
---|---|---|
ConstructorDeclaration |
ConstructorDeclaration.setBody(BlockStmt body) |
Sets the body
|
InitializerDeclaration |
InitializerDeclaration.setBody(BlockStmt body) |
|
MethodDeclaration |
MethodDeclaration.setBody(BlockStmt body) |
Sets the body
|
Constructor | Description |
---|---|
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.
|
ConstructorDeclaration(EnumSet<Modifier> modifiers,
NodeList<AnnotationExpr> annotations,
NodeList<TypeParameter> typeParameters,
SimpleName name,
NodeList<Parameter> parameters,
NodeList<ReferenceType> thrownExceptions,
BlockStmt body) |
|
InitializerDeclaration(boolean isStatic,
BlockStmt body) |
|
InitializerDeclaration(TokenRange tokenRange,
boolean isStatic,
BlockStmt body) |
This constructor is used by the parser and is considered private.
|
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.
|
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) |
Modifier and Type | Method | 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 | Description |
---|---|---|
Optional<BlockStmt> |
NodeWithOptionalBlockStmt.getBody() |
Modifier and Type | Method | Description |
---|---|---|
N |
NodeWithBlockStmt.setBody(BlockStmt block) |
|
N |
NodeWithOptionalBlockStmt.setBody(BlockStmt block) |
Modifier and Type | Method | Description |
---|---|---|
BlockStmt |
BlockStmt.clone() |
|
BlockStmt |
CatchClause.getBody() |
|
BlockStmt |
SynchronizedStmt.getBody() |
|
BlockStmt |
TryStmt.getTryBlock() |
|
BlockStmt |
BlockStmt.setStatements(NodeList<Statement> statements) |
Modifier and Type | Method | Description |
---|---|---|
Optional<BlockStmt> |
TryStmt.getFinallyBlock() |
Modifier and Type | Method | Description |
---|---|---|
CatchClause |
CatchClause.setBody(BlockStmt body) |
|
SynchronizedStmt |
SynchronizedStmt.setBody(BlockStmt body) |
|
TryStmt |
TryStmt.setFinallyBlock(BlockStmt finallyBlock) |
|
TryStmt |
TryStmt.setTryBlock(BlockStmt tryBlock) |
Constructor | Description |
---|---|
CatchClause(Parameter parameter,
BlockStmt body) |
|
CatchClause(TokenRange tokenRange,
Parameter parameter,
BlockStmt body) |
This constructor is used by the parser and is considered private.
|
CatchClause(EnumSet<Modifier> exceptModifier,
NodeList<AnnotationExpr> exceptAnnotations,
ClassOrInterfaceType exceptType,
SimpleName exceptName,
BlockStmt body) |
|
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(NodeList<VariableDeclarationExpr> resources,
BlockStmt tryBlock,
NodeList<CatchClause> catchClauses,
BlockStmt finallyBlock) |
|
TryStmt(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 | Description |
---|---|---|
Visitable |
CloneVisitor.visit(BlockStmt n,
Object arg) |
|
Boolean |
EqualsVisitor.visit(BlockStmt n,
Visitable arg) |
|
List<R> |
GenericListVisitorAdapter.visit(BlockStmt n,
A arg) |
|
R |
GenericVisitor.visit(BlockStmt n,
A arg) |
|
R |
GenericVisitorAdapter.visit(BlockStmt n,
A arg) |
|
Integer |
HashCodeVisitor.visit(BlockStmt n,
Void arg) |
|
Visitable |
ModifierVisitor.visit(BlockStmt n,
A arg) |
|
Boolean |
ObjectIdentityEqualsVisitor.visit(BlockStmt n,
Visitable arg) |
|
Integer |
ObjectIdentityHashCodeVisitor.visit(BlockStmt n,
Void arg) |
|
void |
VoidVisitor.visit(BlockStmt n,
A arg) |
|
void |
VoidVisitorAdapter.visit(BlockStmt n,
A arg) |
Modifier and Type | Method | Description |
---|---|---|
void |
PrettyPrintVisitor.visit(BlockStmt n,
Void arg) |
Copyright © 2007–2019. All rights reserved.