Package net.bytebuddy
Class NamingStrategy.AbstractBase
- java.lang.Object
-
- net.bytebuddy.NamingStrategy.AbstractBase
-
- All Implemented Interfaces:
NamingStrategy
- Direct Known Subclasses:
NamingStrategy.PrefixingRandom
,NamingStrategy.SuffixingRandom
- Enclosing interface:
- NamingStrategy
public abstract static class NamingStrategy.AbstractBase extends java.lang.Object implements 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.SuffixingRandom
-
-
Constructor Summary
Constructors Constructor Description AbstractBase()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.lang.String
name(TypeDescription superClass)
Determines a new name when creating a new type that subclasses the provided type.java.lang.String
rebase(TypeDescription typeDescription)
Determines a name for the dynamic type when rebasing the provided type.java.lang.String
redefine(TypeDescription typeDescription)
Determines a name for the dynamic type when redefining the provided type.java.lang.String
subclass(TypeDescription.Generic superClass)
Determines a new name when creating a new type that subclasses the provided type.
-
-
-
Method Detail
-
subclass
public java.lang.String subclass(TypeDescription.Generic superClass)
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
protected abstract java.lang.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 java.lang.String redefine(TypeDescription typeDescription)
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
public java.lang.String rebase(TypeDescription typeDescription)
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.
-
-