Uses of Interface
java.lang.classfile.CodeTransform
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 CodeTransformPREVIEW in java.lang.classfilePREVIEW
Modifier and TypeInterfaceDescriptioninterface
Preview.A transformation on streams ofCodeElement
PREVIEW.Modifier and TypeFieldDescriptionstatic final CodeTransformPREVIEW
CodeTransform.ACCEPT_ALL
A code transform that sends all elements to the builder.Modifier and TypeMethodDescriptiondefault CodeTransformPREVIEW
CodeTransform.andThen
(CodeTransformPREVIEW t) static CodeTransformPREVIEW
CodeTransform.endHandler
(Consumer<CodeBuilderPREVIEW> finisher) Create a code transform that passes each element through to the builder, and calls the specified function when transformation is complete.static CodeTransformPREVIEW
CodeTransform.ofStateful
(Supplier<CodeTransformPREVIEW> supplier) Create a stateful code transform from aSupplier
.Modifier and TypeMethodDescriptiondefault CodeTransformPREVIEW
CodeTransform.andThen
(CodeTransformPREVIEW t) MethodBuilder.transformCode
(CodeModelPREVIEW code, CodeTransformPREVIEW transform) Build the method body for this method by transforming the body of another method.default CodeBuilderPREVIEW
CodeBuilder.transforming
(CodeTransformPREVIEW transform, Consumer<CodeBuilderPREVIEW> handler) Apply a transform to the code built by a handler, directing results to this builder.static MethodTransformPREVIEW
MethodTransform.transformingCode
(CodeTransformPREVIEW xform) static ClassTransformPREVIEW
ClassTransform.transformingMethodBodies
(CodeTransformPREVIEW xform) Create a class transform that transforms theCodeAttribute
PREVIEW (method body) ofMethodModel
PREVIEW elements with the supplied code transform.static ClassTransformPREVIEW
ClassTransform.transformingMethodBodies
(Predicate<MethodModelPREVIEW> filter, CodeTransformPREVIEW xform) Create a class transform that transforms theCodeAttribute
PREVIEW (method body) ofMethodModel
PREVIEW elements with the supplied code transform.Modifier and TypeMethodDescriptionstatic CodeTransformPREVIEW
CodeTransform.ofStateful
(Supplier<CodeTransformPREVIEW> supplier) Create a stateful code transform from aSupplier
. -
Uses of CodeTransformPREVIEW in java.lang.classfile.componentsPREVIEW
Modifier and TypeInterfaceDescriptioninterface
Preview.CodeLocalsShifter
PREVIEW is aCodeTransform
PREVIEW shifting locals to newly allocated positions to avoid conflicts during code injection.interface
Preview.A code relabeler is aCodeTransform
PREVIEW replacing all occurrences ofLabel
PREVIEW in the transformed code with new instances.interface
Preview.CodeStackTracker
PREVIEW is aCodeTransform
PREVIEW tracking stack content and calculating max stack size.