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.Compound
A compound substitution.
|
static class |
MemberSubstitution.Substitution.ForElementMatchers
A substitution that uses element matchers for determining if a byte code element should be substituted.
|
static class |
MemberSubstitution.Substitution.NoOp
A substitution that does not substitute any byte code elements.
|
Modifier and Type | Field and Description |
---|---|
protected MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.substitution
The substitution to apply.
|
Modifier and Type | Method and Description |
---|---|
protected abstract MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.doReplaceWith(FieldDescription fieldDescription)
Creates a substitution for replacing the byte code elements matched by this instance with an access of the specified field.
|
protected MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.ForMatchedByteCodeElement.doReplaceWith(FieldDescription fieldDescription) |
protected MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.ForMatchedField.doReplaceWith(FieldDescription fieldDescription) |
protected MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.ForMatchedMethod.doReplaceWith(FieldDescription fieldDescription) |
protected abstract MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.doReplaceWith(MethodDescription methodDescription)
Creates a substitution for replacing the byte code elements matched by this instance with an invocation of the specified method.
|
protected MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.ForMatchedByteCodeElement.doReplaceWith(MethodDescription methodDescription) |
protected MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.ForMatchedField.doReplaceWith(MethodDescription methodDescription) |
protected MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.ForMatchedMethod.doReplaceWith(MethodDescription methodDescription) |
protected abstract MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.doStub()
Applies the stubbing for this instance.
|
protected MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.ForMatchedByteCodeElement.doStub() |
protected MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.ForMatchedField.doStub() |
protected MemberSubstitution.Substitution |
MemberSubstitution.WithoutSpecification.ForMatchedMethod.doStub() |
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 |
---|
Compound(MemberSubstitution.Substitution... substitution)
Creates a new compound substitution.
|
ForMatchedByteCodeElement(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Substitution substitution,
ElementMatcher<? super ByteCodeElement> matcher)
Creates a new member substitution for a matched byte code element that requires a specification for how to perform a substitution.
|
ForMatchedField(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Substitution substitution,
ElementMatcher<? super FieldDescription.InDefinedShape> matcher)
Creates a new member substitution for a matched field that requires a specification for how to perform a substitution.
|
ForMatchedField(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Substitution substitution,
ElementMatcher<? super FieldDescription.InDefinedShape> matcher,
boolean matchRead,
boolean matchWrite)
Creates a new member substitution for a matched field that requires a specification for how to perform a substitution.
|
ForMatchedMethod(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Substitution substitution,
ElementMatcher<? super MethodDescription> matcher)
Creates a new member substitution for a matched method that requires a specification for how to perform a substitution.
|
ForMatchedMethod(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Substitution substitution,
ElementMatcher<? super MethodDescription> matcher,
boolean includeVirtualCalls,
boolean includeSuperCalls)
Creates a new member substitution for a matched method that requires a specification for how to perform a substitution.
|
SubstitutingMethodVisitor(org.objectweb.asm.MethodVisitor methodVisitor,
MethodGraph.Compiler methodGraphCompiler,
boolean strict,
MemberSubstitution.Substitution substitution,
TypeDescription instrumentedType,
Implementation.Context implementationContext,
TypePool typePool)
Creates a new substituting method visitor.
|
WithoutSpecification(MethodGraph.Compiler methodGraphCompiler,
MemberSubstitution.TypePoolResolver typePoolResolver,
boolean strict,
MemberSubstitution.Substitution substitution)
Creates a new member substitution that requires a specification for how to perform a substitution.
|
Constructor and Description |
---|
Compound(List<? extends MemberSubstitution.Substitution> substitutions)
Creates a new compound substitution.
|
Copyright © 2014–2018. All rights reserved.