Class FieldLocator.ForExactType

java.lang.Object
net.bytebuddy.dynamic.scaffold.FieldLocator.AbstractBase
net.bytebuddy.dynamic.scaffold.FieldLocator.ForExactType
All Implemented Interfaces:
FieldLocator
Enclosing interface:
FieldLocator

@Enhance public static class FieldLocator.ForExactType extends FieldLocator.AbstractBase
A field locator that only looks up fields that are declared by a specific type.
  • Field Details

    • typeDescription

      private final TypeDescription typeDescription
      The type for which to look up fields.
  • Constructor Details

    • ForExactType

      public ForExactType(TypeDescription typeDescription)
      Creates a new field locator for locating fields from a declared type.
      Parameters:
      typeDescription - The type for which to look up fields that is also providing the accessing type.
    • ForExactType

      public ForExactType(TypeDescription typeDescription, TypeDescription accessingType)
      Creates a new field locator for locating fields from a declared type.
      Parameters:
      typeDescription - The type for which to look up fields.
      accessingType - The accessing type.
  • Method Details