public static interface MemberSubstitution.Substitution.Resolver
Modifier and Type | Interface 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 |
---|---|
StackManipulation |
apply(TypeDescription instrumentedType,
ByteCodeElement target,
TypeList.Generic arguments,
TypeDescription.Generic result)
Applies this resolver.
|
boolean |
isResolved()
Checks if this resolver was actually resolved, i.e.
|
boolean isResolved()
true
if a found member should be substituted.StackManipulation apply(TypeDescription instrumentedType, ByteCodeElement target, TypeList.Generic arguments, TypeDescription.Generic result)
instrumentedType
- The instrumented type.target
- The substituted byte code element.arguments
- The factual arguments to the byte code element.result
- The expected result type or void
if no result is expected.Copyright © 2014–2018. All rights reserved.