Package net.bytebuddy
Enum NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType
- java.lang.Object
-
- java.lang.Enum<NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType>
-
- net.bytebuddy.NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType>
,NamingStrategy.SuffixingRandom.BaseNameResolver
- Enclosing interface:
- NamingStrategy.SuffixingRandom.BaseNameResolver
public static enum NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType extends java.lang.Enum<NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType> implements NamingStrategy.SuffixingRandom.BaseNameResolver
Uses the unnamed type's super 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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The singleton instance.
-
Constructor Summary
Constructors Modifier Constructor Description private
ForUnnamedType()
-
Method Summary
All Methods Static 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.static NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType c : NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NamingStrategy.SuffixingRandom.BaseNameResolver.ForUnnamedType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
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.
-
-