public static class NamingStrategy.Unbound.Default extends Object implements NamingStrategy.Unbound
NamingStrategy
where rebased or redefined classes keep
their original name and where subclasses are named using a NamingStrategy.SuffixingRandom
strategy.NamingStrategy.Unbound.Default, NamingStrategy.Unbound.Unified
Modifier and Type | Field and Description |
---|---|
static String |
CREATION_NAME
The type name used for created classes.
|
Constructor and Description |
---|
Default(String suffix)
Creates a default unbound naming strategy.
|
Modifier and Type | Method and Description |
---|---|
NamingStrategy |
create()
Returns a naming strategy for a type without an explicit base.
|
boolean |
equals(Object other) |
int |
hashCode() |
NamingStrategy |
rebase(TypeDescription typeDescription)
Returns a naming strategy for rebasing a type.
|
NamingStrategy |
redefine(TypeDescription typeDescription)
Returns a naming strategy for redefining a type.
|
NamingStrategy |
subclass(TypeDescription typeDescription)
Returns a naming strategy for subclassing a type.
|
String |
toString() |
public static final String CREATION_NAME
public Default(String suffix)
suffix
- The suffix to apply for generated subclassespublic NamingStrategy subclass(TypeDescription typeDescription)
NamingStrategy.Unbound
subclass
in interface NamingStrategy.Unbound
typeDescription
- The type that the user specified to be subclasses.public NamingStrategy redefine(TypeDescription typeDescription)
NamingStrategy.Unbound
redefine
in interface NamingStrategy.Unbound
typeDescription
- The type that the user specified to be subclasses.public NamingStrategy rebase(TypeDescription typeDescription)
NamingStrategy.Unbound
rebase
in interface NamingStrategy.Unbound
typeDescription
- The type that the user specified to be subclasses.public NamingStrategy create()
NamingStrategy.Unbound
create
in interface NamingStrategy.Unbound
Copyright © 2014–2015. All rights reserved.