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. BLOCKMethods in com.github.javaparser that return BlockStmt Modifier and Type Method Description BlockStmtGeneratedJavaParser. Block()https://docs.oracle.com/javase/specs/jls/se15/html/jls-14.html#jls-14.2BlockStmtGeneratedJavaParser. BlockParseStart()BlockStmtJavaParserAdapter. parseBlock(java.lang.String blockStatement)static BlockStmtStaticJavaParser. parseBlock(java.lang.String blockStatement)Parses the Java block contained in aStringand returns aBlockStmtthat represents it.Methods in com.github.javaparser that return types with arguments of type BlockStmt Modifier and Type Method Description ParseResult<BlockStmt>JavaParser. parseBlock(java.lang.String blockStatement)Parses the Java block contained in aStringand returns aBlockStmtthat represents it. -
Uses of BlockStmt in com.github.javaparser.ast.body
Fields in com.github.javaparser.ast.body declared as BlockStmt Modifier and Type Field Description private BlockStmtCompactConstructorDeclaration. bodyprivate BlockStmtConstructorDeclaration. bodyprivate BlockStmtInitializerDeclaration. bodyprivate BlockStmtMethodDeclaration. bodyMethods in com.github.javaparser.ast.body that return BlockStmt Modifier and Type Method Description BlockStmtCompactConstructorDeclaration. getBody()BlockStmtConstructorDeclaration. getBody()BlockStmtInitializerDeclaration. getBody()Methods in com.github.javaparser.ast.body that return types with arguments of type BlockStmt Modifier and Type Method Description java.util.Optional<BlockStmt>MethodDeclaration. getBody()Methods in com.github.javaparser.ast.body with parameters of type BlockStmt Modifier and Type Method Description CompactConstructorDeclarationCompactConstructorDeclaration. setBody(BlockStmt body)Sets the bodyConstructorDeclarationConstructorDeclaration. setBody(BlockStmt body)Sets the bodyInitializerDeclarationInitializerDeclaration. setBody(BlockStmt body)MethodDeclarationMethodDeclaration. setBody(BlockStmt body)Sets the bodyConstructors in com.github.javaparser.ast.body with parameters of type BlockStmt Constructor Description CompactConstructorDeclaration(NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<ReferenceType> thrownExceptions, BlockStmt body)CompactConstructorDeclaration(TokenRange tokenRange, NodeList<AnnotationExpr> annotations, BlockStmt body)This constructor is used by the parser and is considered private.CompactConstructorDeclaration(TokenRange tokenRange, NodeList<Modifier> modifiers, NodeList<AnnotationExpr> annotations, NodeList<TypeParameter> typeParameters, SimpleName name, NodeList<ReferenceType> thrownExceptions, BlockStmt body)This constructor is used by the parser and is considered private.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 BlockStmtNodeWithMembers. addInitializer()Add an initializer block (InitializerDeclaration) to this.default BlockStmtNodeWithMembers. addStaticInitializer()Add a static initializer block (InitializerDeclaration) to this.default BlockStmtNodeWithBody. createBlockStatementAsBody()default BlockStmtNodeWithBlockStmt. createBody()default BlockStmtNodeWithOptionalBlockStmt. createBody()BlockStmtNodeWithBlockStmt. getBody()Methods in com.github.javaparser.ast.nodeTypes that return types with arguments of type BlockStmt Modifier and Type Method Description java.util.Optional<BlockStmt>NodeWithOptionalBlockStmt. getBody()Methods in com.github.javaparser.ast.nodeTypes with parameters of type BlockStmt Modifier and Type Method Description NNodeWithBlockStmt. setBody(BlockStmt block)NNodeWithOptionalBlockStmt. setBody(BlockStmt block) -
Uses of BlockStmt in com.github.javaparser.ast.stmt
Fields in com.github.javaparser.ast.stmt declared as BlockStmt Modifier and Type Field Description private BlockStmtCatchClause. bodyprivate BlockStmtSynchronizedStmt. bodyprivate BlockStmtTryStmt. finallyBlockprivate BlockStmtTryStmt. tryBlockMethods in com.github.javaparser.ast.stmt that return BlockStmt Modifier and Type Method Description BlockStmtBlockStmt. asBlockStmt()BlockStmtStatement. asBlockStmt()BlockStmtBlockStmt. clone()BlockStmtCatchClause. getBody()BlockStmtSynchronizedStmt. getBody()BlockStmtTryStmt. getTryBlock()BlockStmtBlockStmt. setStatements(NodeList<Statement> statements)Methods in com.github.javaparser.ast.stmt that return types with arguments of type BlockStmt Modifier and Type Method Description java.util.Optional<BlockStmt>TryStmt. getFinallyBlock()java.util.Optional<BlockStmt>BlockStmt. toBlockStmt()java.util.Optional<BlockStmt>Statement. toBlockStmt()Methods in com.github.javaparser.ast.stmt with parameters of type BlockStmt Modifier and Type Method Description CatchClauseCatchClause. setBody(BlockStmt body)SynchronizedStmtSynchronizedStmt. setBody(BlockStmt body)TryStmtTryStmt. setFinallyBlock(BlockStmt finallyBlock)TryStmtTryStmt. setTryBlock(BlockStmt tryBlock)Method parameters in com.github.javaparser.ast.stmt with type arguments of type BlockStmt Modifier and Type Method Description voidBlockStmt. ifBlockStmt(java.util.function.Consumer<BlockStmt> action)voidStatement. ifBlockStmt(java.util.function.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, java.lang.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 VisitableCloneVisitor. visit(BlockStmt n, java.lang.Object arg)java.lang.BooleanEqualsVisitor. visit(BlockStmt n, Visitable arg)java.util.List<R>GenericListVisitorAdapter. visit(BlockStmt n, A arg)RGenericVisitor. visit(BlockStmt n, A arg)RGenericVisitorAdapter. visit(BlockStmt n, A arg)RGenericVisitorWithDefaults. visit(BlockStmt n, A arg)java.lang.IntegerHashCodeVisitor. visit(BlockStmt n, java.lang.Void arg)VisitableModifierVisitor. visit(BlockStmt n, A arg)java.lang.BooleanNoCommentEqualsVisitor. visit(BlockStmt n, Visitable arg)java.lang.IntegerNoCommentHashCodeVisitor. visit(BlockStmt n, java.lang.Void arg)voidNodeFinderVisitor. visit(BlockStmt n, Range arg)java.lang.BooleanObjectIdentityEqualsVisitor. visit(BlockStmt n, Visitable arg)java.lang.IntegerObjectIdentityHashCodeVisitor. visit(BlockStmt n, java.lang.Void arg)voidVoidVisitor. visit(BlockStmt n, A arg)voidVoidVisitorAdapter. visit(BlockStmt n, A arg)voidVoidVisitorWithDefaults. 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 voidDefaultPrettyPrinterVisitor. visit(BlockStmt n, java.lang.Void arg)voidPrettyPrintVisitor. visit(BlockStmt n, java.lang.Void arg)Deprecated. -
Uses of BlockStmt in com.github.javaparser.symbolsolver.javaparsermodel
Methods in com.github.javaparser.symbolsolver.javaparsermodel with parameters of type BlockStmt Modifier and Type Method Description ResolvedTypeDefaultVisitorAdapter. visit(BlockStmt node, java.lang.Boolean aBoolean)java.lang.BooleanNormalCompletionVisitor. visit(BlockStmt block, java.lang.Void unused)An empty block that is not a switch block can complete normally iff it is reachable. -
Uses of BlockStmt in com.github.javaparser.symbolsolver.javaparsermodel.contexts
Constructors in com.github.javaparser.symbolsolver.javaparsermodel.contexts with parameters of type BlockStmt Constructor Description BlockStmtContext(BlockStmt wrappedNode, TypeSolver typeSolver) -
Uses of BlockStmt in com.github.javaparser.symbolsolver.resolution.typeinference.constraintformulas
Methods in com.github.javaparser.symbolsolver.resolution.typeinference.constraintformulas with parameters of type BlockStmt Modifier and Type Method Description private java.util.List<Expression>ExpressionCompatibleWithType. getAllReturnExpressions(BlockStmt blockStmt)private java.util.List<Expression>ExpressionCompatibleWithType. getResultExpressions(BlockStmt blockStmt)
-