Uses of Interface
java.lang.classfile.ClassTransform
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 ClassTransformPREVIEW in java.lang.classfilePREVIEW
Modifier and TypeInterfaceDescriptioninterface
Preview.A transformation on streams ofClassElement
PREVIEW.Modifier and TypeFieldDescriptionstatic final ClassTransformPREVIEW
ClassTransform.ACCEPT_ALL
A class transform that sends all elements to the builder.Modifier and TypeMethodDescriptiondefault ClassTransformPREVIEW
ClassTransform.andThen
(ClassTransformPREVIEW t) static ClassTransformPREVIEW
ClassTransform.dropping
(Predicate<ClassElementPREVIEW> filter) Create a class transform that passes each element through to the builder, except for those that the suppliedPredicate
is true for.static ClassTransformPREVIEW
ClassTransform.endHandler
(Consumer<ClassBuilderPREVIEW> finisher) Create a class transform that passes each element through to the builder, and calls the specified function when transformation is complete.static ClassTransformPREVIEW
ClassTransform.ofStateful
(Supplier<ClassTransformPREVIEW> supplier) Create a stateful class transform from aSupplier
.static ClassTransformPREVIEW
ClassTransform.transformingFields
(FieldTransformPREVIEW xform) Create a class transform that transformsFieldModel
PREVIEW elements with the supplied field transform.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.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.Modifier and TypeMethodDescriptiondefault ClassTransformPREVIEW
ClassTransform.andThen
(ClassTransformPREVIEW t) default byte[]
ClassFile.transformClass
(ClassModelPREVIEW model, ClassTransformPREVIEW transform) Transform one classfile into a new classfile with the aid of aClassTransform
PREVIEW.byte[]
ClassFile.transformClass
(ClassModelPREVIEW model, ClassEntryPREVIEW newClassName, ClassTransformPREVIEW transform) Transform one classfile into a new classfile with the aid of aClassTransform
PREVIEW.default byte[]
ClassFile.transformClass
(ClassModelPREVIEW model, ClassDesc newClassName, ClassTransformPREVIEW transform) Transform one classfile into a new classfile with the aid of aClassTransform
PREVIEW.Modifier and TypeMethodDescriptionstatic ClassTransformPREVIEW
ClassTransform.ofStateful
(Supplier<ClassTransformPREVIEW> supplier) Create a stateful class transform from aSupplier
. -
Uses of ClassTransformPREVIEW in java.lang.classfile.componentsPREVIEW
Modifier and TypeInterfaceDescriptioninterface
Preview.ClassRemapper
is aClassTransform
PREVIEW,FieldTransform
PREVIEW,MethodTransform
PREVIEW andCodeTransform
PREVIEW deeply re-mapping all class references in any form, according to given map or map function.