Package | Description |
---|---|
net.bytebuddy.asm |
The ASM package contains classes that are meant for direct interaction with the ASM API.
|
Modifier and Type | Class and Description |
---|---|
static class |
MemberSubstitution.Substitution.Chain.Factory
A factory for creating a substitution chain.
|
static class |
MemberSubstitution.Substitution.ForFieldAccess.OfGivenField
A factory for a substitution that substitutes with a given field.
|
static class |
MemberSubstitution.Substitution.ForFieldAccess.OfMatchedField
A factory for a substitution that locates a field on the receiver type using a matcher.
|
static class |
MemberSubstitution.Substitution.ForMethodInvocation.OfGivenMethod
A factory for a substitution that invokes a given method.
|
static class |
MemberSubstitution.Substitution.ForMethodInvocation.OfMatchedMethod
A factory for a substitution that locates a method on the receiver type using a matcher.
|
static class |
MemberSubstitution.Substitution.Stubbing
A substitution that drops any field or method access and returns the expected return type's default value, i.e
null or zero for primitive types. |
Modifier and Type | Method and Description |
---|---|
protected static MemberSubstitution.Replacement.Factory |
MemberSubstitution.Replacement.ForElementMatchers.Factory.of(ElementMatcher<? super ByteCodeElement> matcher,
MemberSubstitution.Substitution.Factory 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.InDefinedShape> matcher,
boolean matchFieldRead,
boolean matchFieldWrite,
MemberSubstitution.Substitution.Factory 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 factory)
Creates a factory that only matches method and constructor invocations for given invocation types.
|
abstract MemberSubstitution |
MemberSubstitution.WithoutSpecification.replaceWith(MemberSubstitution.Substitution.Factory factory)
Replaces any interaction with the supplied substitution.
|
MemberSubstitution |
MemberSubstitution.WithoutSpecification.ForMatchedByteCodeElement.replaceWith(MemberSubstitution.Substitution.Factory substitutionFactory)
Replaces any interaction with the supplied substitution.
|
MemberSubstitution |
MemberSubstitution.WithoutSpecification.ForMatchedField.replaceWith(MemberSubstitution.Substitution.Factory substitutionFactory)
Replaces any interaction with the supplied substitution.
|
MemberSubstitution |
MemberSubstitution.WithoutSpecification.ForMatchedMethod.replaceWith(MemberSubstitution.Substitution.Factory substitutionFactory)
Replaces any interaction with the supplied substitution.
|
Constructor and Description |
---|
Factory(ElementMatcher<? super FieldDescription.InDefinedShape> fieldMatcher,
ElementMatcher<? super MethodDescription> methodMatcher,
boolean matchFieldRead,
boolean matchFieldWrite,
boolean includeVirtualCalls,
boolean includeSuperCalls,
MemberSubstitution.Substitution.Factory substitutionFactory)
Creates a new replacement that triggers a substitution based on a row of matchers.
|
Copyright © 2014–2020. All rights reserved.