Class NamingStrategy.Suffixing

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

@Enhance public static class NamingStrategy.Suffixing extends NamingStrategy.AbstractBase
A naming strategy that appends a given suffix to a name, without a randomized element.
  • Constructor Details

    • Suffixing

      public Suffixing(String suffix)
      Creates an immutable naming strategy with a given suffix but moves types that subclass types within the java.lang package into Byte Buddy's package namespace. All names are derived from the unnamed type's super type.
      Parameters:
      suffix - The suffix for the generated class.
    • Suffixing

      public Suffixing(String suffix, String javaLangPackagePrefix)
      Creates an immutable naming strategy with a given suffix but moves types that subclass types within the java.lang package into Byte Buddy's package namespace.
      Parameters:
      suffix - The suffix for the generated class.
      javaLangPackagePrefix - The fallback namespace for type's that subclass types within the java.* namespace. If The prefix is set to the empty string, no prefix is added.
    • Suffixing

      public Suffixing(String suffix, NamingStrategy.Suffixing.BaseNameResolver baseNameResolver)
      Creates an immutable naming strategy with a given suffix but moves types that subclass types within the java.lang package into Byte Buddy's package namespace.
      Parameters:
      suffix - The suffix for the generated class.
      baseNameResolver - The base name resolver that is queried for locating the base name.
    • Suffixing

      public Suffixing(String suffix, NamingStrategy.Suffixing.BaseNameResolver baseNameResolver, String javaLangPackagePrefix)
      Creates an immutable naming strategy with a given suffix but moves types that subclass types within the java.lang package into a given namespace.
      Parameters:
      suffix - The suffix for the generated class.
      baseNameResolver - The base name resolver that is queried for locating the base name.
      javaLangPackagePrefix - The fallback namespace for type's that subclass types within the java.* namespace. If The prefix is set to the empty string, no prefix is added.
  • Method Details