Uses of Interface
java.lang.classfile.CodeBuilder.BlockCodeBuilder
Packages that use CodeBuilder.BlockCodeBuilderPREVIEW
Package
Description
Provides classfile parsing, generation, and transformation library.
-
Uses of CodeBuilder.BlockCodeBuilderPREVIEW in java.lang.classfilePREVIEW
Method parameters in java.lang.classfilePREVIEW with type arguments of type CodeBuilder.BlockCodeBuilderPREVIEWModifier and TypeMethodDescriptiondefault CodeBuilderPREVIEWCodeBuilder.block(Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> handler) Add a lexical block to the method being built.CodeBuilder.CatchBuilder.catching(ClassDesc exceptionType, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> catchHandler) Adds a catch block that catches an exception of the given type.voidCodeBuilder.CatchBuilder.catchingAll(Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> catchAllHandler) Adds a "catch" block that catches all exceptions.CodeBuilder.CatchBuilder.catchingMulti(List<ClassDesc> exceptionTypes, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> catchHandler) Adds a catch block that catches exceptions of the given types.default CodeBuilderPREVIEWAdd an "if-then" block that is conditional on the value(s) on top of the operand stack in accordance with the given opcode.default CodeBuilderPREVIEWCodeBuilder.ifThen(Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler) Add an "if-then" block that is conditional on the boolean value on top of the operand stack.default CodeBuilderPREVIEWCodeBuilder.ifThenElse(OpcodePREVIEW opcode, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> elseHandler) Add an "if-then-else" block that is conditional on the value(s) on top of the operand stack in accordance with the given opcode.default CodeBuilderPREVIEWCodeBuilder.ifThenElse(Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> thenHandler, Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> elseHandler) Add an "if-then-else" block that is conditional on the boolean value on top of the operand stack.default CodeBuilderPREVIEWCodeBuilder.trying(Consumer<CodeBuilder.BlockCodeBuilderPREVIEW> tryHandler, Consumer<CodeBuilder.CatchBuilderPREVIEW> catchesHandler) Adds a "try-catch" block comprising one try block and zero or more catch blocks.