@HashCodeAndEqualsPlugin.Enhance public static class MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.Simple extends Object implements MemberSubstitution.Substitution.ForFieldAccess.FieldResolver
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.ForElementMatcher, MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.Simple
Constructor and Description |
---|
Simple(FieldDescription fieldDescription)
Creates a simple field resolver.
|
Modifier and Type | Method and Description |
---|---|
FieldDescription |
resolve(TypeDescription targetType,
ByteCodeElement target,
TypeList.Generic parameters,
TypeDescription.Generic result)
Resolves the field to substitute with.
|
public Simple(FieldDescription fieldDescription)
fieldDescription
- The field to access.public FieldDescription resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result)
resolve
in interface MemberSubstitution.Substitution.ForFieldAccess.FieldResolver
targetType
- The target type on which a member is accessed.target
- The target field, method or constructor that is substituted,parameters
- All parameters that serve as input to this access.result
- The result that is expected from the interaction or void
if no result is expected.Copyright © 2014–2020. All rights reserved.