Uses of Interface
java.lang.classfile.MethodBuilder
Package
Description
Provides classfile parsing, generation, and transformation library.
-
Uses of MethodBuilderPREVIEW in java.lang.classfilePREVIEW
Modifier and TypeInterfaceDescriptioninterface
Preview.A builder for methods.interface
Preview.A transformation on streams ofMethodElement
PREVIEW.Modifier and TypeMethodDescriptionMethodBuilder.transformCode
(CodeModelPREVIEW code, CodeTransformPREVIEW transform) Build the method body for this method by transforming the body of another method.MethodBuilder.withCode
(Consumer<? super CodeBuilderPREVIEW> code) Build the method body for this method.default MethodBuilderPREVIEW
MethodBuilder.withFlags
(int flags) Sets the method access flags.default MethodBuilderPREVIEW
MethodBuilder.withFlags
(AccessFlag... flags) Sets the method access flags.Modifier and TypeMethodDescriptionstatic MethodTransformPREVIEW
MethodTransform.endHandler
(Consumer<MethodBuilderPREVIEW> finisher) Create a method transform that passes each element through to the builder, and calls the specified function when transformation is complete.ClassBuilder.withMethod
(Utf8EntryPREVIEW name, Utf8EntryPREVIEW descriptor, int methodFlags, Consumer<? super MethodBuilderPREVIEW> handler) Adds a method.default ClassBuilderPREVIEW
ClassBuilder.withMethod
(String name, MethodTypeDesc descriptor, int methodFlags, Consumer<? super MethodBuilderPREVIEW> handler) Adds a method.