Uses of Class
com.github.javaparser.ast.stmt.BlockStmt
-
-
Uses of BlockStmt in com.github.javaparser
Fields in com.github.javaparser with type parameters of type BlockStmt Modifier and Type Field Description static ParseStart<BlockStmt>
ParseStart. BLOCK
Methods in com.github.javaparser that return BlockStmt Modifier and Type Method Description static BlockStmt
StaticJavaParser. parseBlock(String blockStatement)
Methods in com.github.javaparser that return types with arguments of type BlockStmt Modifier and Type Method Description ParseResult<BlockStmt>
JavaParser. parseBlock(String blockStatement)
-
Uses of BlockStmt in com.github.javaparser.ast.body
Methods in com.github.javaparser.ast.body that return BlockStmt Modifier and Type Method Description BlockStmt
ConstructorDeclaration. getBody()
BlockStmt
InitializerDeclaration. getBody()
Methods in com.github.javaparser.ast.body that return types with arguments of type BlockStmt Modifier and Type Method Description Optional<BlockStmt>
MethodDeclaration. getBody()
Methods in com.github.javaparser.ast.body with parameters of type BlockStmt Modifier and Type Method Description ConstructorDeclaration
ConstructorDeclaration. setBody(BlockStmt body)
Sets the bodyInitializerDeclaration
InitializerDeclaration. setBody(BlockStmt body)
MethodDeclaration
MethodDeclaration. setBody(BlockStmt body)
Sets the bodyConstructors in com.github.javaparser.ast.body with parameters of type BlockStmt Constructor 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. -
Uses of BlockStmt in com.github.javaparser.ast.expr
Constructors in com.github.javaparser.ast.expr with parameters of type BlockStmt Constructor Description LambdaExpr(Parameter parameter, BlockStmt body)
Creates a single parameter lambda expression.LambdaExpr(NodeList<Parameter> parameters, BlockStmt body)
Creates a zero or multi-parameter lambda expression with its parameters wrapped in ( ). -
Uses of BlockStmt in com.github.javaparser.ast.nodeTypes
Methods in com.github.javaparser.ast.nodeTypes that return BlockStmt Modifier and Type Method 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
NodeWithBlockStmt. createBody()
default BlockStmt
NodeWithOptionalBlockStmt. createBody()
BlockStmt
NodeWithBlockStmt. getBody()
Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type BlockStmt Modifier and Type Method Description Optional<BlockStmt>
NodeWithOptionalBlockStmt. getBody()
Methods in com.github.javaparser.ast.nodeTypes with parameters of type BlockStmt Modifier and Type Method Description N
NodeWithBlockStmt. setBody(BlockStmt block)
N
NodeWithOptionalBlockStmt. setBody(BlockStmt block)
-
Uses of BlockStmt in com.github.javaparser.ast.stmt
Methods in com.github.javaparser.ast.stmt that return BlockStmt Modifier and Type Method Description BlockStmt
BlockStmt. asBlockStmt()
BlockStmt
Statement. asBlockStmt()
BlockStmt
BlockStmt. clone()
BlockStmt
CatchClause. getBody()
BlockStmt
SynchronizedStmt. getBody()
BlockStmt
TryStmt. getTryBlock()
BlockStmt
BlockStmt. setStatements(NodeList<Statement> statements)
Methods in com.github.javaparser.ast.stmt that return types with arguments of type BlockStmt Modifier and Type Method Description Optional<BlockStmt>
TryStmt. getFinallyBlock()
Optional<BlockStmt>
BlockStmt. toBlockStmt()
Optional<BlockStmt>
Statement. toBlockStmt()
Methods in com.github.javaparser.ast.stmt with parameters of type BlockStmt 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)
Method parameters in com.github.javaparser.ast.stmt with type arguments of type BlockStmt Modifier and Type Method Description void
BlockStmt. ifBlockStmt(Consumer<BlockStmt> action)
void
Statement. ifBlockStmt(Consumer<BlockStmt> action)
Constructors in com.github.javaparser.ast.stmt with parameters of type BlockStmt Constructor Description CatchClause(Parameter parameter, BlockStmt body)
CatchClause(NodeList<Modifier> exceptModifier, NodeList<AnnotationExpr> exceptAnnotations, ClassOrInterfaceType exceptType, SimpleName exceptName, 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(NodeList<Expression> resources, BlockStmt tryBlock, NodeList<CatchClause> catchClauses, BlockStmt finallyBlock)
TryStmt(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. -
Uses of BlockStmt in com.github.javaparser.ast.visitor
Methods in com.github.javaparser.ast.visitor with parameters of type BlockStmt 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)
R
GenericVisitorWithDefaults. visit(BlockStmt n, A arg)
Integer
HashCodeVisitor. visit(BlockStmt n, Void arg)
Visitable
ModifierVisitor. visit(BlockStmt n, A arg)
Boolean
NoCommentEqualsVisitor. visit(BlockStmt n, Visitable arg)
Integer
NoCommentHashCodeVisitor. visit(BlockStmt n, Void 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)
void
VoidVisitorWithDefaults. visit(BlockStmt n, A arg)
-
Uses of BlockStmt in com.github.javaparser.printer
Methods in com.github.javaparser.printer with parameters of type BlockStmt Modifier and Type Method Description void
PrettyPrintVisitor. visit(BlockStmt n, Void arg)
-