Uses of Interface
java.lang.classfile.MethodBuilder
Packages that use MethodBuilder
Package
Description
Provides classfile parsing, generation, and transformation library.
-
Uses of MethodBuilder in java.lang.classfile
Subinterfaces with type arguments of type MethodBuilder in java.lang.classfileModifier and TypeInterfaceDescriptioninterfaceA builder for methods.interfaceA transformation on streams ofMethodElement.Methods in java.lang.classfile that return MethodBuilderModifier and TypeMethodDescriptionMethodBuilder.transformCode(CodeModel code, CodeTransform transform) Build the method body for this method by transforming the body of another method.MethodBuilder.withCode(Consumer<? super CodeBuilder> code) Build the method body for this method.default MethodBuilderMethodBuilder.withFlags(int flags) Sets the method access flags.default MethodBuilderMethodBuilder.withFlags(AccessFlag... flags) Sets the method access flags.Method parameters in java.lang.classfile with type arguments of type MethodBuilderModifier and TypeMethodDescriptionstatic MethodTransformMethodTransform.endHandler(Consumer<MethodBuilder> finisher) Creates a method transform that passes each element through to the builder, and calls the specified function when transformation is complete.ClassBuilder.withMethod(Utf8Entry name, Utf8Entry descriptor, int methodFlags, Consumer<? super MethodBuilder> handler) Adds a method.default ClassBuilderClassBuilder.withMethod(String name, MethodTypeDesc descriptor, int methodFlags, Consumer<? super MethodBuilder> handler) Adds a method.