Uses of Interface
java.lang.classfile.ClassTransform
Packages that use ClassTransform
Package
Description
Provides classfile parsing, generation, and transformation library.
-
Uses of ClassTransform in java.lang.classfile
Subinterfaces with type arguments of type ClassTransform in java.lang.classfileFields in java.lang.classfile declared as ClassTransformModifier and TypeFieldDescriptionstatic final ClassTransform
ClassTransform.ACCEPT_ALL
A class transform that sends all elements to the builder.Methods in java.lang.classfile that return ClassTransformModifier and TypeMethodDescriptiondefault ClassTransform
ClassTransform.andThen
(ClassTransform t) static ClassTransform
ClassTransform.dropping
(Predicate<ClassElement> filter) Create a class transform that passes each element through to the builder, except for those that the suppliedPredicate
is true for.static ClassTransform
ClassTransform.endHandler
(Consumer<ClassBuilder> finisher) Create a class transform that passes each element through to the builder, and calls the specified function when transformation is complete.static ClassTransform
ClassTransform.ofStateful
(Supplier<ClassTransform> supplier) Create a stateful class transform from aSupplier
.static ClassTransform
ClassTransform.transformingFields
(FieldTransform xform) Create a class transform that transformsFieldModel
elements with the supplied field transform.static ClassTransform
ClassTransform.transformingMethodBodies
(CodeTransform xform) Create a class transform that transforms theCodeAttribute
(method body) ofMethodModel
elements with the supplied code transform.static ClassTransform
ClassTransform.transformingMethodBodies
(Predicate<MethodModel> filter, CodeTransform xform) Create a class transform that transforms theCodeAttribute
(method body) ofMethodModel
elements with the supplied code transform.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.Methods in java.lang.classfile with parameters of type ClassTransformModifier and TypeMethodDescriptiondefault ClassTransform
ClassTransform.andThen
(ClassTransform t) default byte[]
ClassFile.transformClass
(ClassModel model, ClassTransform transform) Transform one classfile into a new classfile with the aid of aClassTransform
.byte[]
ClassFile.transformClass
(ClassModel model, ClassEntry newClassName, ClassTransform transform) Transform one classfile into a new classfile with the aid of aClassTransform
.default byte[]
ClassFile.transformClass
(ClassModel model, ClassDesc newClassName, ClassTransform transform) Transform one classfile into a new classfile with the aid of aClassTransform
.Method parameters in java.lang.classfile with type arguments of type ClassTransformModifier and TypeMethodDescriptionstatic ClassTransform
ClassTransform.ofStateful
(Supplier<ClassTransform> supplier) Create a stateful class transform from aSupplier
.