Class AuxiliaryType.NamingStrategy.Enumerating

java.lang.Object
net.bytebuddy.implementation.auxiliary.AuxiliaryType.NamingStrategy.Enumerating
All Implemented Interfaces:
AuxiliaryType.NamingStrategy
Enclosing interface:
AuxiliaryType.NamingStrategy

public static class AuxiliaryType.NamingStrategy.Enumerating extends Object implements AuxiliaryType.NamingStrategy
A naming strategy for an auxiliary type which attempts an enumeration of types by using the hash code of the instrumenting instance.
  • Field Details

    • suffix

      private final String suffix
      The suffix to append to the instrumented type for creating names for the auxiliary types.
  • Constructor Details

    • Enumerating

      public Enumerating(String suffix)
      Creates a new suffixing random naming strategy.
      Parameters:
      suffix - The suffix to extend to the instrumented type.
  • Method Details

    • name

      public String name(TypeDescription instrumentedType, AuxiliaryType auxiliaryType)
      Names an auxiliary type.
      Specified by:
      name in interface AuxiliaryType.NamingStrategy
      Parameters:
      instrumentedType - The instrumented type for which an auxiliary type is registered.
      auxiliaryType - The named auxiliary type.
      Returns:
      The fully qualified name for the given auxiliary type.