Uses of Interface
java.lang.classfile.MethodBuilder
Packages that use MethodBuilderPREVIEW
Package
Description
Provides classfile parsing, generation, and transformation library.
-
Uses of MethodBuilderPREVIEW in java.lang.classfilePREVIEW
Subinterfaces with type arguments of type MethodBuilderPREVIEW in java.lang.classfilePREVIEWModifier and TypeInterfaceDescriptioninterface
Preview.A builder for methods.interface
Preview.A transformation on streams ofMethodElement
PREVIEW.Methods in java.lang.classfilePREVIEW that return MethodBuilderPREVIEWModifier 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.Method parameters in java.lang.classfilePREVIEW with type arguments of type MethodBuilderPREVIEWModifier 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.