@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.Resolver.FieldAccessing extends Object implements MemberSubstitution.Substitution.Resolver
MemberSubstitution.Substitution.Resolver.FieldAccessing, MemberSubstitution.Substitution.Resolver.MethodInvoking, MemberSubstitution.Substitution.Resolver.Stubbing, MemberSubstitution.Substitution.Resolver.Unresolved| Modifier | Constructor and Description |
|---|---|
protected |
FieldAccessing(FieldDescription fieldDescription)
Creates a resolver for a field access.
|
| 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.
|
protected FieldAccessing(FieldDescription fieldDescription)
fieldDescription - The field that is used for substitution.public boolean isResolved()
MemberSubstitution.Substitution.ResolverisResolved in interface MemberSubstitution.Substitution.Resolvertrue if a found member should be substituted.public StackManipulation apply(TypeDescription instrumentedType, ByteCodeElement target, TypeList.Generic arguments, TypeDescription.Generic result)
MemberSubstitution.Substitution.Resolverapply in interface MemberSubstitution.Substitution.ResolverinstrumentedType - 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.