Uses of Interface
java.lang.classfile.MethodModel
Packages that use MethodModel
Package
Description
Provides classfile parsing, generation, and transformation library.
-
Uses of MethodModel in java.lang.classfile
Methods in java.lang.classfile that return types with arguments of type MethodModelModifier and TypeMethodDescriptionClassModel.methods()
Returns the methods of this class.CodeModel.parent()
Returns the enclosing method, if known.Methods in java.lang.classfile with parameters of type MethodModelModifier and TypeMethodDescriptionClassBuilder.transformMethod
(MethodModel method, MethodTransform transform) Adds a method by transforming a method from another class.Method parameters in java.lang.classfile with type arguments of type MethodModelModifier and TypeMethodDescriptionstatic ClassTransform
ClassTransform.transformingMethodBodies
(Predicate<MethodModel> filter, CodeTransform xform) Creates a class transform that transforms theCodeAttribute
(method body) ofMethodModel
elements with the supplied code transform for methods that the suppliedPredicate
returns true for, passing other elements through to the builder.static ClassTransform
ClassTransform.transformingMethods
(Predicate<MethodModel> filter, MethodTransform xform) Creates a class transform that transformsMethodModel
elements with the supplied method transform for methods that the suppliedPredicate
returns true for, passing other elements through to the builder.