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
A substitution chain allows for chaining multiple substitution steps for a byte code element being replaced.
|
static class |
MemberSubstitution.Substitution.ForFieldAccess
A substitution with a field access.
|
static class |
MemberSubstitution.Substitution.ForMethodInvocation
A substitution with a method invocation.
|
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 |
---|---|
MemberSubstitution.Substitution |
MemberSubstitution.Substitution.Factory.make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a substitution for an instrumented method.
|
MemberSubstitution.Substitution |
MemberSubstitution.Substitution.Stubbing.make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a substitution for an instrumented method.
|
MemberSubstitution.Substitution |
MemberSubstitution.Substitution.ForFieldAccess.OfGivenField.make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a substitution for an instrumented method.
|
MemberSubstitution.Substitution |
MemberSubstitution.Substitution.ForFieldAccess.OfMatchedField.make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a substitution for an instrumented method.
|
MemberSubstitution.Substitution |
MemberSubstitution.Substitution.ForMethodInvocation.OfGivenMethod.make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a substitution for an instrumented method.
|
MemberSubstitution.Substitution |
MemberSubstitution.Substitution.ForMethodInvocation.OfMatchedMethod.make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a substitution for an instrumented method.
|
MemberSubstitution.Substitution |
MemberSubstitution.Substitution.Chain.Factory.make(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypePool typePool)
Creates a substitution for an instrumented method.
|
Constructor and Description |
---|
ForElementMatchers(ElementMatcher<? super FieldDescription.InDefinedShape> fieldMatcher,
ElementMatcher<? super MethodDescription> methodMatcher,
boolean matchFieldRead,
boolean matchFieldWrite,
boolean includeVirtualCalls,
boolean includeSuperCalls,
MemberSubstitution.Substitution substitution)
Creates a new replacement that triggers a substitution based on a row of matchers.
|
Resolved(TypeDescription instrumentedType,
MethodDescription instrumentedMethod,
TypeDescription targetType,
ByteCodeElement target,
MemberSubstitution.Substitution substitution)
Creates a new resolved binding.
|
Copyright © 2014–2020. All rights reserved.