Package net.bytebuddy
Class NamingStrategy.SuffixingRandom.BaseNameResolver.ForGivenType
- java.lang.Object
-
- net.bytebuddy.NamingStrategy.SuffixingRandom.BaseNameResolver.ForGivenType
-
- All Implemented Interfaces:
NamingStrategy.SuffixingRandom.BaseNameResolver
- Enclosing interface:
- NamingStrategy.SuffixingRandom.BaseNameResolver
@Enhance public static class NamingStrategy.SuffixingRandom.BaseNameResolver.ForGivenType extends java.lang.Object implements NamingStrategy.SuffixingRandom.BaseNameResolver
Uses a specific type's name as the resolved name.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.NamingStrategy.SuffixingRandom.BaseNameResolver
NamingStrategy.SuffixingRandom.BaseNameResolver.ForFixedValue, NamingStrategy.SuffixingRandom.BaseNameResolver.ForGivenType, NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType
-
-
Field Summary
Fields Modifier and Type Field Description private TypeDescription
typeDescription
The type description which represents the resolved name.
-
Constructor Summary
Constructors Constructor Description ForGivenType(TypeDescription typeDescription)
Creates a new base name resolver that resolves a using the name of a given type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
resolve(TypeDescription typeDescription)
Resolves the base name for a given type description.
-
-
-
Field Detail
-
typeDescription
private final TypeDescription typeDescription
The type description which represents the resolved name.
-
-
Constructor Detail
-
ForGivenType
public ForGivenType(TypeDescription typeDescription)
Creates a new base name resolver that resolves a using the name of a given type.- Parameters:
typeDescription
- The type description which represents the resolved name.
-
-
Method Detail
-
resolve
public java.lang.String resolve(TypeDescription typeDescription)
Resolves the base name for a given type description.- Specified by:
resolve
in interfaceNamingStrategy.SuffixingRandom.BaseNameResolver
- Parameters:
typeDescription
- The type for which the base name is resolved.- Returns:
- The base name for the given type.
-
-