Uses of Interface
java.lang.classfile.MethodTransform
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides specific components, transformations, and tools built on top of the
java.lang.classfile
PREVIEW library.-
Uses of MethodTransformPREVIEW in java.lang.classfilePREVIEW
Modifier and TypeInterfaceDescriptioninterface
Preview.A transformation on streams ofMethodElement
PREVIEW.Modifier and TypeFieldDescriptionstatic final MethodTransformPREVIEW
MethodTransform.ACCEPT_ALL
A method transform that sends all elements to the builder.Modifier and TypeMethodDescriptiondefault MethodTransformPREVIEW
MethodTransform.andThen
(MethodTransformPREVIEW t) static MethodTransformPREVIEW
MethodTransform.dropping
(Predicate<MethodElementPREVIEW> filter) Create a method transform that passes each element through to the builder, except for those that the suppliedPredicate
is true for.static 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.static MethodTransformPREVIEW
MethodTransform.ofStateful
(Supplier<MethodTransformPREVIEW> supplier) Create a stateful method transform from aSupplier
.static MethodTransformPREVIEW
MethodTransform.transformingCode
(CodeTransformPREVIEW xform) Modifier and TypeMethodDescriptiondefault MethodTransformPREVIEW
MethodTransform.andThen
(MethodTransformPREVIEW t) static ClassTransformPREVIEW
ClassTransform.transformingMethods
(MethodTransformPREVIEW xform) Create a class transform that transformsMethodModel
PREVIEW elements with the supplied method transform.static ClassTransformPREVIEW
ClassTransform.transformingMethods
(Predicate<MethodModelPREVIEW> filter, MethodTransformPREVIEW xform) Create a class transform that transformsMethodModel
PREVIEW elements with the supplied method transform.ClassBuilder.transformMethod
(MethodModelPREVIEW method, MethodTransformPREVIEW transform) Adds a method by transforming a method from another class.Modifier and TypeMethodDescriptionstatic MethodTransformPREVIEW
MethodTransform.ofStateful
(Supplier<MethodTransformPREVIEW> supplier) Create a stateful method transform from aSupplier
. -
Uses of MethodTransformPREVIEW in java.lang.classfile.componentsPREVIEW