Package net.bytebuddy
Enum Class NamingStrategy.Suffixing.BaseNameResolver.ForUnnamedType
java.lang.Object
java.lang.Enum<NamingStrategy.Suffixing.BaseNameResolver.ForUnnamedType>
net.bytebuddy.NamingStrategy.Suffixing.BaseNameResolver.ForUnnamedType
- All Implemented Interfaces:
Serializable
,Comparable<NamingStrategy.Suffixing.BaseNameResolver.ForUnnamedType>
,Constable
,NamingStrategy.Suffixing.BaseNameResolver
- Enclosing interface:
- NamingStrategy.Suffixing.BaseNameResolver
public static enum NamingStrategy.Suffixing.BaseNameResolver.ForUnnamedType
extends Enum<NamingStrategy.Suffixing.BaseNameResolver.ForUnnamedType>
implements NamingStrategy.Suffixing.BaseNameResolver
Uses the unnamed type's super type's name as the resolved name.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.NamingStrategy.Suffixing.BaseNameResolver
NamingStrategy.Suffixing.BaseNameResolver.ForFixedValue, NamingStrategy.Suffixing.BaseNameResolver.ForGivenType, NamingStrategy.Suffixing.BaseNameResolver.ForUnnamedType, NamingStrategy.Suffixing.BaseNameResolver.WithCallerSuffix
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionresolve
(TypeDescription typeDescription) Resolves the base name for a given type description.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
ForUnnamedType
private ForUnnamedType()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
resolve
Resolves the base name for a given type description.- Specified by:
resolve
in interfaceNamingStrategy.Suffixing.BaseNameResolver
- Parameters:
typeDescription
- The type for which the base name is resolved.- Returns:
- The base name for the given type.
-