public interface NamingStrategy
Note that subclasses that lie within the same package as their superclass have improved access to overriding package-private methods of their super type.
Modifier and Type | Interface and Description |
---|---|
static class |
NamingStrategy.Fixed
A naming strategy that applies a fixed internalName.
|
static class |
NamingStrategy.SuffixingRandom
A naming strategy that creates a internalName by concatenating
The super classes package and internalName
A given suffix string
A random number
Between all these elements, a
$ sign is included into the internalName to improve readability. |
static interface |
NamingStrategy.UnnamedType
An description of a type which is to be named.
|
Modifier and Type | Method and Description |
---|---|
String |
getName(NamingStrategy.UnnamedType unnamedType)
Generates a fully qualified internalName for a Java type.
|
String getName(NamingStrategy.UnnamedType unnamedType)
java.lang
package since such types cannot be loaded using a normal class loader. Also, the internalName should not yet be taken
by another type since this would cause conflicts in the internalName space. Therefore, it is recommendable to include
a random sequence within the internalName.unnamedType
- An unnamed type that is to be named.Copyright © 2014. All rights reserved.