Class MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.ForElementMatcher

java.lang.Object
net.bytebuddy.asm.MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.ForElementMatcher
All Implemented Interfaces:
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver
Enclosing interface:
MemberSubstitution.Substitution.ForFieldAccess.FieldResolver

@Enhance public static class MemberSubstitution.Substitution.ForFieldAccess.FieldResolver.ForElementMatcher extends Object implements MemberSubstitution.Substitution.ForFieldAccess.FieldResolver
A field matcher that resolves a non-static field on the first parameter type of the substituted member usage.
  • Field Details

    • instrumentedType

      private final TypeDescription instrumentedType
      The instrumented type.
    • matcher

      private final ElementMatcher<? super FieldDescription> matcher
      The matcher to use for locating the field to substitute with.
  • Constructor Details

    • ForElementMatcher

      protected ForElementMatcher(TypeDescription instrumentedType, ElementMatcher<? super FieldDescription> matcher)
      Creates a new field resolver that locates a field on the receiver type using a matcher.
      Parameters:
      instrumentedType - The instrumented type.
      matcher - The matcher to use for locating the field to substitute with.
  • Method Details