Uses of Interface
java.lang.classfile.MethodTransform
Packages that use MethodTransform
Package
Description
Provides classfile parsing, generation, and transformation library.
-
Uses of MethodTransform in java.lang.classfile
Subinterfaces with type arguments of type MethodTransform in java.lang.classfileFields in java.lang.classfile declared as MethodTransformModifier and TypeFieldDescriptionstatic final MethodTransform
MethodTransform.ACCEPT_ALL
A method transform that sends all elements to the builder.Methods in java.lang.classfile that return MethodTransformModifier and TypeMethodDescriptiondefault MethodTransform
MethodTransform.andThen
(MethodTransform t) static MethodTransform
MethodTransform.dropping
(Predicate<MethodElement> filter) Create a method transform that passes each element through to the builder, except for those that the suppliedPredicate
is true for.static MethodTransform
MethodTransform.endHandler
(Consumer<MethodBuilder> finisher) Create a method transform that passes each element through to the builder, and calls the specified function when transformation is complete.static MethodTransform
MethodTransform.ofStateful
(Supplier<MethodTransform> supplier) Create a stateful method transform from aSupplier
.static MethodTransform
MethodTransform.transformingCode
(CodeTransform xform) Create a method transform that transformsCodeModel
elements with the supplied code transform.Methods in java.lang.classfile with parameters of type MethodTransformModifier and TypeMethodDescriptiondefault MethodTransform
MethodTransform.andThen
(MethodTransform t) static ClassTransform
ClassTransform.transformingMethods
(MethodTransform xform) Create a class transform that transformsMethodModel
elements with the supplied method transform.static ClassTransform
ClassTransform.transformingMethods
(Predicate<MethodModel> filter, MethodTransform xform) Create a class transform that transformsMethodModel
elements with the supplied method transform.ClassBuilder.transformMethod
(MethodModel method, MethodTransform transform) Adds a method by transforming a method from another class.Method parameters in java.lang.classfile with type arguments of type MethodTransformModifier and TypeMethodDescriptionstatic MethodTransform
MethodTransform.ofStateful
(Supplier<MethodTransform> supplier) Create a stateful method transform from aSupplier
.