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.Resolver.FieldAccessing
A resolver that replaces an interaction with a byte code element with a field access.
|
static class |
MemberSubstitution.Substitution.Resolver.MethodInvoking
A resolver that invokes a method.
|
static class |
MemberSubstitution.Substitution.Resolver.Stubbing
A resolver that stubs any interaction with a byte code element.
|
static class |
MemberSubstitution.Substitution.Resolver.Unresolved
An unresolved resolver that does not apply a substitution.
|
Modifier and Type | Method and Description |
---|---|
protected static MemberSubstitution.Substitution |
MemberSubstitution.Substitution.ForElementMatchers.of(ElementMatcher<? super ByteCodeElement> matcher,
MemberSubstitution.Substitution.Resolver resolver)
Creates a substitution for any byte code element that matches the supplied matcher.
|
protected static MemberSubstitution.Substitution |
MemberSubstitution.Substitution.ForElementMatchers.ofField(ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
boolean matchFieldRead,
boolean matchFieldWrite,
MemberSubstitution.Substitution.Resolver resolver)
Creates a substitution for any method that matches the supplied matcher.
|
protected static MemberSubstitution.Substitution |
MemberSubstitution.Substitution.ForElementMatchers.ofMethod(ElementMatcher<? super MethodDescription> matcher,
boolean includeVirtualCalls,
boolean includeSuperCalls,
MemberSubstitution.Substitution.Resolver resolver)
Creates a substitution for any method that matches the supplied matcher.
|
Constructor and Description |
---|
ForElementMatchers(ElementMatcher<? super FieldDescription.InDefinedShape> fieldMatcher,
ElementMatcher<? super MethodDescription> methodMatcher,
boolean matchFieldRead,
boolean matchFieldWrite,
boolean includeVirtualCalls,
boolean includeSuperCalls,
MemberSubstitution.Substitution.Resolver resolver)
Creates a new subsitution that applies element matchers to determine what byte code elements to substitute.
|
Copyright © 2014–2017. All rights reserved.