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 Classes Modifier and Type Interface Description static class
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.ForElementMatcher
A field matcher that resolves a non-static field on the first parameter type of the substituted member usage.static class
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.Simple
A simple field resolver that returns a specific field.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description FieldDescription
resolve(TypeDescription targetType, ByteCodeElement target, TypeList.Generic parameters, TypeDescription.Generic result)
Resolves the field to substitute with.
-
-
-
Method Detail
-
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.
-
-