Package net.bytebuddy.asm
Interface MemberSubstitution.Substitution.ForFieldAccess.FieldResolver
- All Known Implementing Classes:
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.ForElementMatcher
,MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.Simple
- Enclosing class:
- MemberSubstitution.Substitution.ForFieldAccess
public static interface MemberSubstitution.Substitution.ForFieldAccess.FieldResolver
A method resolver for locating a field for a substitute.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic class
A field matcher that resolves a non-static field on the first parameter type of the substituted member usage.static class
A simple field resolver that returns a specific field. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the field to substitute with.
-
Method Details
-
resolve
FieldDescription resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result) Resolves the field to substitute with.- Parameters:
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 orvoid
if no result is expected.- Returns:
- The field to substitute with.
-