public interface NameGenerator
| Modifier and Type | Field and Description |
|---|---|
static int |
NAME_MAX_LENGTH
According to JVM specification, the name is limited to 65535 characters by the 16-bit unsigned length item of
the CONSTANT_Utf8_info structure.
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
generateName(int size)
Generates random name of required length that can be used as Java identifier.
|
static final int NAME_MAX_LENGTH
java.lang.String generateName(int size)
size - the expected sizejava.lang.IllegalArgumentException - when passed size is more than NAME_MAX_LENGTH