Package net.bytebuddy

Interface NamingStrategy

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Interface Description
      static class  NamingStrategy.AbstractBase
      An abstract base implementation where the names of redefined and rebased types are retained.
      static class  NamingStrategy.PrefixingRandom
      A naming strategy that creates a name by prefixing a given class and its package with another package and by appending a random number to the class's simple name.
      static class  NamingStrategy.Suffixing
      A naming strategy that appends a given suffix to a name, without a randomized element.
      static class  NamingStrategy.SuffixingRandom
      A naming strategy that creates a name by concatenating: The super classes package and name A given suffix string A random number Between all these elements, a $ sign is included into the name to improve readability.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String BYTE_BUDDY_RENAME_PACKAGE
      The default package for defining types that are renamed to not be contained in the java package.
      static java.lang.String NO_PREFIX
      Indicates that types of the java.* package should not be prefixed.
    • Field Detail

      • BYTE_BUDDY_RENAME_PACKAGE

        static final java.lang.String BYTE_BUDDY_RENAME_PACKAGE
        The default package for defining types that are renamed to not be contained in the java package.
        See Also:
        Constant Field Values
      • NO_PREFIX

        static final java.lang.String NO_PREFIX
        Indicates that types of the java.* package should not be prefixed.
        See Also:
        Constant Field Values
    • Method Detail

      • subclass

        java.lang.String subclass​(TypeDescription.Generic 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

        java.lang.String redefine​(TypeDescription typeDescription)
        Determines a name for the dynamic type when redefining the provided type.
        Parameters:
        typeDescription - The type being redefined.
        Returns:
        The name of the dynamic type.
      • rebase

        java.lang.String rebase​(TypeDescription typeDescription)
        Determines a name for the dynamic type when rebasing the provided type.
        Parameters:
        typeDescription - The type being redefined.
        Returns:
        The name of the dynamic type.