Class FieldLocator.ForClassHierarchy

  • All Implemented Interfaces:
    FieldLocator
    Enclosing interface:
    FieldLocator

    public static class FieldLocator.ForClassHierarchy
    extends FieldLocator.AbstractBase
    A field locator that looks up fields that are declared within a class's class hierarchy.
    • Constructor Detail

      • 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.