Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
Modifier and Type | Method and Description |
---|---|
MemberSubstitution.WithoutSpecification<MemberSubstitution.Target.ForMember> |
MemberSubstitution.constructor(ElementMatcher<? super MethodDescription> matcher)
Substitutes any constructor invocation that matches the given matcher.
|
MemberSubstitution.WithoutSpecification<MemberSubstitution.Target.ForMember> |
MemberSubstitution.element(ElementMatcher<? super ByteCodeElement.Member> matcher)
Substitutes any interaction with a field or method that matches the given matcher.
|
MemberSubstitution.WithoutSpecification<MemberSubstitution.Target.ForMember> |
MemberSubstitution.invokable(ElementMatcher<? super MethodDescription> matcher)
Substitutes any method or constructor invocation that matches the given matcher.
|
MemberSubstitution.WithoutSpecification<MemberSubstitution.Target.ForMember> |
MemberSubstitution.WithoutSpecification.ForMatchedField.onRead()
When invoked, only read access of the previously matched field is substituted.
|
MemberSubstitution.WithoutSpecification<MemberSubstitution.Target.ForMember> |
MemberSubstitution.WithoutSpecification.ForMatchedMethod.onSuperCall()
Limits the substituted method calls to method calls that invoke a method as a
super call. |
MemberSubstitution.WithoutSpecification<MemberSubstitution.Target.ForMember> |
MemberSubstitution.WithoutSpecification.ForMatchedMethod.onVirtualCall()
Limits the substituted method calls to method calls that invoke a method virtually (as opposed to a
super invocation). |
MemberSubstitution.WithoutSpecification<MemberSubstitution.Target.ForMember> |
MemberSubstitution.WithoutSpecification.ForMatchedField.onWrite()
When invoked, only write access of the previously matched field is substituted.
|
Modifier and Type | Method and Description |
---|---|
protected 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 |
MemberSubstitution.WithoutSpecification.ForMatchedByteCodeElement.replaceWith(MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> substitutionFactory)
Replaces any interaction with the supplied substitution.
|
MemberSubstitution |
MemberSubstitution.WithoutSpecification.ForMatchedField.replaceWith(MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> substitutionFactory)
Replaces any interaction with the supplied substitution.
|
MemberSubstitution |
MemberSubstitution.WithoutSpecification.ForMatchedMethod.replaceWith(MemberSubstitution.Substitution.Factory<? super MemberSubstitution.Target.ForMember> substitutionFactory)
Replaces any interaction with the supplied substitution.
|
Constructor and Description |
---|
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.
|
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.
|
ForMember(TypeDescription receiver,
ByteCodeElement.Member member,
MemberSubstitution.Substitution<? super MemberSubstitution.Target.ForMember> substitution)
Creates a new resolved binding.
|
Copyright © 2014–2025. All rights reserved.