Class FieldLocator.ForClassHierarchy

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

@Enhance public static class FieldLocator.ForClassHierarchy extends FieldLocator.AbstractBase
A field locator that looks up fields that are declared within a class's class hierarchy.
  • Field Details

    • typeDescription

      private final TypeDescription typeDescription
      The type for which to look up a field within its class hierarchy.
  • Constructor Details

    • ForClassHierarchy

      public ForClassHierarchy(TypeDescription typeDescription)
      Creates a field locator that looks up fields that are declared within a class's class hierarchy.
      Parameters:
      typeDescription - The type for which to look up a field within its class hierarchy which is also the accessing type.
    • ForClassHierarchy

      public ForClassHierarchy(TypeDescription typeDescription, TypeDescription accessingType)
      Creates a field locator that looks up fields that are declared within a class's class hierarchy.
      Parameters:
      typeDescription - The type for which to look up a field within its class hierarchy.
      accessingType - The accessing type.
  • Method Details