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 sends 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) Create 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) Create 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) Create a method transform that transformsCodeModelelements with the supplied code 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.Method parameters in java.lang.classfile with type arguments of type CodeTransformModifier and TypeMethodDescriptionstatic CodeTransformCodeTransform.ofStateful(Supplier<CodeTransform> supplier) Create a stateful code transform from aSupplier.