Uses of Class
net.bytebuddy.asm.MemberSubstitution.Target.ForMember
Packages that use MemberSubstitution.Target.ForMember
Package
Description
The ASM package contains classes that are meant for direct interaction with the ASM API.
-
Uses of MemberSubstitution.Target.ForMember in net.bytebuddy.asm
Fields in net.bytebuddy.asm with type parameters of type MemberSubstitution.Target.ForMemberModifier and TypeFieldDescriptionprivate final MemberSubstitution.Substitution
<? super MemberSubstitution.Target.ForMember> MemberSubstitution.Replacement.Binding.ForMember.substitution
The substitution to apply.private final MemberSubstitution.Substitution
<? super MemberSubstitution.Target.ForMember> MemberSubstitution.Replacement.ForElementMatchers.substitution
The substitution to trigger if a member is matched.private final MemberSubstitution.Substitution.Factory
<? super MemberSubstitution.Target.ForMember> MemberSubstitution.Replacement.ForElementMatchers.Factory.substitutionFactory
The substitution factory to create a substitution from.Methods in net.bytebuddy.asm that return types with arguments of type MemberSubstitution.Target.ForMemberModifier and TypeMethodDescriptionMemberSubstitution.constructor
(ElementMatcher<? super MethodDescription> matcher) Substitutes any constructor invocation that matches the given matcher.MemberSubstitution.element
(ElementMatcher<? super ByteCodeElement.Member> matcher) Substitutes any interaction with a field or method that matches the given matcher.MemberSubstitution.invokable
(ElementMatcher<? super MethodDescription> matcher) Substitutes any method or constructor invocation that matches the given matcher.MemberSubstitution.WithoutSpecification.ForMatchedField.onRead()
When invoked, only read access of the previously matched field is substituted.MemberSubstitution.WithoutSpecification.ForMatchedMethod.onSuperCall()
Limits the substituted method calls to method calls that invoke a method as asuper
call.MemberSubstitution.WithoutSpecification.ForMatchedMethod.onVirtualCall()
Limits the substituted method calls to method calls that invoke a method virtually (as opposed to asuper
invocation).MemberSubstitution.WithoutSpecification.ForMatchedField.onWrite()
When invoked, only write access of the previously matched field is substituted.Method parameters in net.bytebuddy.asm with type arguments of type MemberSubstitution.Target.ForMemberModifier and TypeMethodDescriptionprotected static MemberSubstitution.Replacement.Factory
MemberSubstitution.Replacement.ForElementMatchers.Factory.of
(ElementMatcher<? super ByteCodeElement.Member> matcher, MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> factory) Creates a factory for applying a substitution on all matched byte code elements for all access types.protected static MemberSubstitution.Replacement.Factory
MemberSubstitution.Replacement.ForElementMatchers.Factory.ofField
(ElementMatcher<? super FieldDescription> matcher, boolean matchFieldRead, boolean matchFieldWrite, MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> factory) Creates a factory that only matches field access for given access types.protected static MemberSubstitution.Replacement.Factory
MemberSubstitution.Replacement.ForElementMatchers.Factory.ofMethod
(ElementMatcher<? super MethodDescription> matcher, boolean includeVirtualCalls, boolean includeSuperCalls, MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> factory) Creates a factory that only matches method and constructor invocations for given invocation types.MemberSubstitution.WithoutSpecification.ForMatchedByteCodeElement.replaceWith
(MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> substitutionFactory) Replaces any interaction with the supplied substitution.MemberSubstitution.WithoutSpecification.ForMatchedField.replaceWith
(MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> substitutionFactory) Replaces any interaction with the supplied substitution.MemberSubstitution.WithoutSpecification.ForMatchedMethod.replaceWith
(MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> substitutionFactory) Replaces any interaction with the supplied substitution.Constructor parameters in net.bytebuddy.asm with type arguments of type MemberSubstitution.Target.ForMemberModifierConstructorDescriptionprotected
Factory
(ElementMatcher<? super FieldDescription> fieldMatcher, ElementMatcher<? super MethodDescription> methodMatcher, boolean matchFieldRead, boolean matchFieldWrite, boolean includeVirtualCalls, boolean includeSuperCalls, MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> substitutionFactory) Creates a new replacement that triggers a substitution based on a row of matchers.protected
ForElementMatchers
(ElementMatcher<? super FieldDescription> fieldMatcher, ElementMatcher<? super MethodDescription> methodMatcher, boolean matchFieldRead, boolean matchFieldWrite, boolean includeVirtualCalls, boolean includeSuperCalls, MemberSubstitution.Substitution<? super MemberSubstitution.Target.ForMember> substitution) Creates a new replacement that triggers a substitution based on a row of matchers.protected
ForMember
(TypeDescription receiver, ByteCodeElement.Member member, MemberSubstitution.Substitution<? super MemberSubstitution.Target.ForMember> substitution) Creates a new resolved binding.