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 MethodTransformMethodTransform.ACCEPT_ALLA method transform that passes all elements to the builder.Methods in java.lang.classfile that return MethodTransformModifier and TypeMethodDescriptiondefault MethodTransformMethodTransform.andThen(MethodTransform t) static MethodTransformMethodTransform.dropping(Predicate<MethodElement> filter) Creates a method transform that passes each element through to the builder, except for those that the suppliedPredicateis true for.static 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.static MethodTransformMethodTransform.ofStateful(Supplier<MethodTransform> supplier) Creates a stateful method transform from aSupplier.static MethodTransformMethodTransform.transformingCode(CodeTransform xform) Creates a method transform that transformsCodeModelelements with the supplied code transform, passing every other element through to the builder.Methods in java.lang.classfile with parameters of type MethodTransformModifier and TypeMethodDescriptiondefault MethodTransformMethodTransform.andThen(MethodTransform t) static ClassTransformClassTransform.transformingMethods(MethodTransform xform) Creates a class transform that transformsMethodModelelements with the supplied method transform, passing other elements through to the builder.static ClassTransformClassTransform.transformingMethods(Predicate<MethodModel> filter, MethodTransform xform) Creates a class transform that transformsMethodModelelements with the supplied method transform for methods that the suppliedPredicatereturns true for, passing other elements through to the builder.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 MethodTransformMethodTransform.ofStateful(Supplier<MethodTransform> supplier) Creates a stateful method transform from aSupplier.