Uses of Interface
java.lang.classfile.CodeTransform
Packages that use CodeTransform
Package
Description
Provides classfile parsing, generation, and transformation library.
-
Uses of CodeTransform in java.lang.classfile
Subinterfaces with type arguments of type CodeTransform in java.lang.classfileFields in java.lang.classfile declared as CodeTransformModifier and TypeFieldDescriptionstatic final CodeTransformCodeTransform.ACCEPT_ALLA code transform that passes all elements to the builder.Methods in java.lang.classfile that return CodeTransformModifier and TypeMethodDescriptiondefault CodeTransformCodeTransform.andThen(CodeTransform t) static CodeTransformCodeTransform.endHandler(Consumer<CodeBuilder> finisher) Creates a code transform that passes each element through to the builder, and calls the specified function when transformation is complete.static CodeTransformCodeTransform.ofStateful(Supplier<CodeTransform> supplier) Creates a stateful code transform from aSupplier.Methods in java.lang.classfile with parameters of type CodeTransformModifier and TypeMethodDescriptiondefault CodeTransformCodeTransform.andThen(CodeTransform t) MethodBuilder.transformCode(CodeModel code, CodeTransform transform) Build the method body for this method by transforming the body of another method.default CodeBuilderCodeBuilder.transforming(CodeTransform transform, Consumer<CodeBuilder> handler) Apply a transform to the code built by a handler, directing results to this builder.static MethodTransformMethodTransform.transformingCode(CodeTransform xform) Creates a method transform that transformsCodeModelelements with the supplied code transform, passing every other element 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.Method parameters in java.lang.classfile with type arguments of type CodeTransformModifier and TypeMethodDescriptionstatic CodeTransformCodeTransform.ofStateful(Supplier<CodeTransform> supplier) Creates a stateful code transform from aSupplier.