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 ClassTransformClassTransform.ACCEPT_ALLA class transform that passes 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) Creates a class transform that passes each element through to the builder, except for those that the suppliedPredicatereturns true for.static ClassTransformClassTransform.endHandler(Consumer<ClassBuilder> finisher) Creates 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) Creates a stateful class transform from aSupplier.static ClassTransformClassTransform.transformingFields(FieldTransform xform) Creates a class transform that transformsFieldModelelements with the supplied field transform, passing other elements through to the builder.static ClassTransformClassTransform.transformingMethodBodies(CodeTransform xform) Creates a class transform that transforms theCodeAttribute(method body) ofMethodModelelements with the supplied code transform, passing other elements through to the builder.static ClassTransformClassTransform.transformingMethodBodies(Predicate<MethodModel> filter, CodeTransform xform) Creates a class transform that transforms theCodeAttribute(method body) ofMethodModelelements with the supplied code transform for methods that the suppliedPredicatereturns true for, passing other elements through to the builder.static ClassTransformClassTransform.transformingMethods(MethodTransform xform) Creates a class transform that transformsMethodModelelements with the supplied method transform, passing other elements through to the builder.static ClassTransformClassTransform.transformingMethods(Predicate<MethodModel> filter, MethodTransform xform) Creates a class transform that transformsMethodModelelements with the supplied method transform for methods that the suppliedPredicatereturns true for, passing other elements through to the builder.Methods in java.lang.classfile with parameters of type ClassTransformModifier and TypeMethodDescriptiondefault ClassTransformClassTransform.andThen(ClassTransform t) default byte[]ClassFile.transformClass(ClassModel model, ClassTransform transform) byte[]ClassFile.transformClass(ClassModel model, ClassEntry newClassName, ClassTransform transform) default byte[]ClassFile.transformClass(ClassModel model, ClassDesc newClassName, ClassTransform transform) Method parameters in java.lang.classfile with type arguments of type ClassTransformModifier and TypeMethodDescriptionstatic ClassTransformClassTransform.ofStateful(Supplier<ClassTransform> supplier) Creates a stateful class transform from aSupplier.