Uses of Class
net.bytebuddy.asm.MemberSubstitution
Packages that use MemberSubstitution
Package
Description
The ASM package contains classes that are meant for direct interaction with the ASM API.
-
Uses of MemberSubstitution in net.bytebuddy.asm
Methods in net.bytebuddy.asm that return MemberSubstitutionModifier and TypeMethodDescriptionMemberSubstitution.failIfNoMatch
(boolean failIfNoMatch) Specifies if this substitution should fail if applied on a method without a match.static MemberSubstitution
MemberSubstitution.relaxed()
Creates a member substitution that skips any unresolvable fields or methods that are referenced within a method body.MemberSubstitution.WithoutSpecification.ForMatchedByteCodeElement.replaceWith
(MemberSubstitution.Substitution.Factory substitutionFactory) Replaces any interaction with the supplied substitution.MemberSubstitution.WithoutSpecification.ForMatchedDynamicInvocation.replaceWith
(MemberSubstitution.Substitution.Factory substitutionFactory) MemberSubstitution.WithoutSpecification.ForMatchedField.replaceWith
(MemberSubstitution.Substitution.Factory substitutionFactory) Replaces any interaction with the supplied substitution.MemberSubstitution.WithoutSpecification.ForMatchedMethod.replaceWith
(MemberSubstitution.Substitution.Factory substitutionFactory) Replaces any interaction with the supplied substitution.MemberSubstitution.WithoutSpecification.replaceWith
(Field field) Replaces any interaction with a matched byte code element by an interaction with the specified field.MemberSubstitution.WithoutSpecification.replaceWith
(Method method) Replaces any interaction with a matched byte code element by an invocation of the specified method.abstract MemberSubstitution
MemberSubstitution.WithoutSpecification.replaceWith
(MemberSubstitution.Substitution.Factory factory) Replaces any interaction with the supplied substitution.MemberSubstitution.WithoutSpecification.replaceWith
(FieldDescription fieldDescription) Replaces any interaction with a matched byte code element by an interaction with the specified field.MemberSubstitution.WithoutSpecification.replaceWith
(MethodDescription methodDescription) Replaces any interaction with a matched byte code element by an invocation of the specified method.MemberSubstitution.WithoutSpecification.replaceWithChain
(List<? extends MemberSubstitution.Substitution.Chain.Step.Factory> steps) Replaces the matched byte code elements with a chain of substitutions that can operate on the same values as the substituted element.MemberSubstitution.WithoutSpecification.replaceWithChain
(MemberSubstitution.Substitution.Chain.Step.Factory... step) Replaces the matched byte code elements with a chain of substitutions that can operate on the same values as the substituted element.MemberSubstitution.WithoutSpecification.replaceWithConstant
(Object value) Replaces any interaction with a matched byte code element with the provided compile-time constant.MemberSubstitution.WithoutSpecification.replaceWithField
(ElementMatcher<? super FieldDescription> matcher) Replaces any interaction with a matched byte code element with a non-static field access on the first parameter of the matched element.MemberSubstitution.WithoutSpecification.replaceWithInstrumentedMethod()
Replaces any interaction with a matched byte code element with an invocation of the instrumented method.MemberSubstitution.WithoutSpecification.replaceWithMethod
(ElementMatcher<? super MethodDescription> matcher) Replaces any interaction with a matched byte code element with a non-static method access on the first parameter of the matched element.MemberSubstitution.WithoutSpecification.replaceWithMethod
(ElementMatcher<? super MethodDescription> matcher, MethodGraph.Compiler methodGraphCompiler) Replaces any interaction with a matched byte code element with a non-static method access on the first parameter of the matched element.static MemberSubstitution
MemberSubstitution.strict()
Creates a member substitution that requires the resolution of all fields and methods that are referenced within a method body.MemberSubstitution.WithoutSpecification.stub()
Subs any interaction with a matched byte code element.MemberSubstitution.with
(MemberSubstitution.TypePoolResolver typePoolResolver) Specifies a type pool resolver to be used for locating members.MemberSubstitution.with
(MethodGraph.Compiler methodGraphCompiler) Specifies the use of a specific method graph compiler for the resolution of virtual methods.