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
An abstract base implementation where the names of redefined and rebased types are retained.
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.bytebuddy.NamingStrategy
NamingStrategy.AbstractBase, NamingStrategy.PrefixingRandom, NamingStrategy.Suffixing, NamingStrategy.SuffixingRandom
-
Field Summary
Fields inherited from interface net.bytebuddy.NamingStrategy
BYTE_BUDDY_RENAME_PACKAGE, NO_PREFIX
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract String
name
(TypeDescription superClass) Determines a new name when creating a new type that subclasses the provided type.rebase
(TypeDescription typeDescription) Determines a name for the dynamic type when rebasing the provided type.redefine
(TypeDescription typeDescription) Determines a name for the dynamic type when redefining the provided type.subclass
(TypeDescription.Generic superClass) Determines a new name when creating a new type that subclasses the provided type.
-
Constructor Details
-
AbstractBase
public AbstractBase()
-
-
Method Details
-
subclass
Determines a new name when creating a new type that subclasses the provided type.- Specified by:
subclass
in interfaceNamingStrategy
- Parameters:
superClass
- The super type of the created type.- Returns:
- The name of the dynamic type.
-
name
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
Determines a name for the dynamic type when redefining the provided type.- Specified by:
redefine
in interfaceNamingStrategy
- Parameters:
typeDescription
- The type being redefined.- Returns:
- The name of the dynamic type.
-
rebase
Determines a name for the dynamic type when rebasing the provided type.- Specified by:
rebase
in interfaceNamingStrategy
- Parameters:
typeDescription
- The type being redefined.- Returns:
- The name of the dynamic type.
-