Package net.bytebuddy

Class NamingStrategy.AbstractBase

java.lang.Object
net.bytebuddy.NamingStrategy.AbstractBase
All Implemented Interfaces:
NamingStrategy
Direct Known Subclasses:
NamingStrategy.PrefixingRandom, NamingStrategy.Suffixing
Enclosing interface:
NamingStrategy

public abstract static class NamingStrategy.AbstractBase extends Object implements NamingStrategy
An abstract base implementation where the names of redefined and rebased types are retained.
  • Constructor Details

    • AbstractBase

      public AbstractBase()
  • Method Details

    • subclass

      public String subclass(TypeDescription.Generic superClass)
      Determines a new name when creating a new type that subclasses the provided type.
      Specified by:
      subclass in interface NamingStrategy
      Parameters:
      superClass - The super type of the created type.
      Returns:
      The name of the dynamic type.
    • name

      protected abstract String name(TypeDescription superClass)
      Determines a new name when creating a new type that subclasses the provided type.
      Parameters:
      superClass - The super type of the created type.
      Returns:
      The name of the dynamic type.
    • redefine

      public String redefine(TypeDescription typeDescription)
      Determines a name for the dynamic type when redefining the provided type.
      Specified by:
      redefine in interface NamingStrategy
      Parameters:
      typeDescription - The type being redefined.
      Returns:
      The name of the dynamic type.
    • rebase

      public String rebase(TypeDescription typeDescription)
      Determines a name for the dynamic type when rebasing the provided type.
      Specified by:
      rebase in interface NamingStrategy
      Parameters:
      typeDescription - The type being redefined.
      Returns:
      The name of the dynamic type.