Uses of Interface
java.lang.classfile.ClassTransform
Packages that use ClassTransform
Package
Description
Provides classfile parsing, generation, and transformation library.
Provides specific components, transformations, and tools built on top of the
java.lang.classfile 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 ClassTransformClassTransform.ACCEPT_ALLA class transform that sends all elements to the builder.Methods in java.lang.classfile that return ClassTransformModifier and TypeMethodDescriptiondefault ClassTransformClassTransform.andThen(ClassTransform t) static ClassTransformClassTransform.dropping(Predicate<ClassElement> filter) Create a class transform that passes each element through to the builder, except for those that the suppliedPredicateis true for.static ClassTransformClassTransform.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 ClassTransformClassTransform.ofStateful(Supplier<ClassTransform> supplier) Create a stateful class transform from aSupplier.static ClassTransformClassTransform.transformingFields(FieldTransform xform) Create a class transform that transformsFieldModelelements with the supplied field transform.static ClassTransformClassTransform.transformingMethodBodies(CodeTransform xform) Create a class transform that transforms theCodeAttribute(method body) ofMethodModelelements with the supplied code transform.static ClassTransformClassTransform.transformingMethodBodies(Predicate<MethodModel> filter, CodeTransform xform) Create a class transform that transforms theCodeAttribute(method body) ofMethodModelelements with the supplied code transform.static ClassTransformClassTransform.transformingMethods(MethodTransform xform) Create a class transform that transformsMethodModelelements with the supplied method transform.static ClassTransformClassTransform.transformingMethods(Predicate<MethodModel> filter, MethodTransform xform) Create a class transform that transformsMethodModelelements with the supplied method transform.Methods in java.lang.classfile with parameters of type ClassTransformModifier and TypeMethodDescriptiondefault ClassTransformClassTransform.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 ClassTransformClassTransform.ofStateful(Supplier<ClassTransform> supplier) Create a stateful class transform from aSupplier. -
Uses of ClassTransform in java.lang.classfile.components
Subinterfaces of ClassTransform in java.lang.classfile.componentsModifier and TypeInterfaceDescriptioninterfaceClassRemapperis aClassTransform,FieldTransform,MethodTransformandCodeTransformdeeply re-mapping all class references in any form, according to given map or map function.