equals(Object) and hashCode() implementations in order to avoid multiple creations
of this type.
| Modifier and Type | Class and Description |
|---|---|
| public static interface | AuxiliaryType.
Representation of a naming strategy for an auxiliary type. |
| public static @interface | AuxiliaryType.
A marker to indicate that an auxiliary type is part of the instrumented types signature. |
| Modifier and Type | Field and Description |
|---|---|
| public static final ModifierContributor. | DEFAULT_TYPE_MODIFIER
The default type access of an auxiliary type. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The suffix for this auxiliary type.Produces a suffix that gives this auxiliary type a stable name. |
| public DynamicType | Returns: A dynamically created type representing this auxiliary type.The fully qualified binary name for this auxiliary type. The type should be in
the same package than the instrumented type this auxiliary type is providing services
to in order to allow package-private access. auxiliaryTypeName, ClassFileVersion The class file version the auxiliary class should be written in. classFileVersion, MethodAccessorFactory A factory for accessor methods. methodAccessorFactory)Creates a new auxiliary type. |
| DEFAULT_TYPE_MODIFIER | back to summary |
|---|---|
| public static final ModifierContributor. The default type access of an auxiliary type. This array must not be mutated.
| |
| getSuffix | back to summary |
|---|---|
| public String getSuffix() Produces a suffix that gives this auxiliary type a stable name. A best effort is made that this suffix is unique.
| |
| make | back to summary |
|---|---|
| public DynamicType make(String auxiliaryTypeName, ClassFileVersion classFileVersion, MethodAccessorFactory methodAccessorFactory) Creates a new auxiliary type.
| |
| Modifier and Type | Class and Description |
|---|---|
| public static class | AuxiliaryType.
A naming strategy for an auxiliary type which attempts an enumeration of types by using the hash code of the instrumenting instance. |
| public static class | AuxiliaryType.
Creates a naming strategy that uses stable suffixes that are provided by the auxiliary types themselves. |
| public static class | AuxiliaryType.
A naming strategy for an auxiliary type which returns the instrumented type's name with a fixed extension and a random number as a suffix. |
| Modifier and Type | Method and Description |
|---|---|
| public String | Returns: The fully qualified name for the given auxiliary type.The instrumented type for which an auxiliary type is registered. instrumentedType, AuxiliaryType The named auxiliary type. auxiliaryType)Names an auxiliary type. |
| name | back to summary |
|---|---|
| public String name(TypeDescription instrumentedType, AuxiliaryType auxiliaryType) Names an auxiliary type.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | suffix
The suffix to append to the instrumented type for creating names for the auxiliary types. |
| Access | Constructor and Description |
|---|---|
| public | Enumerating(String
The suffix to extend to the instrumented type. suffix)Creates a new suffixing random naming strategy. |
| Modifier and Type | Method and Description |
|---|---|
| public String | name(TypeDescription
The instrumented type for which an auxiliary type is registered. instrumentedType, AuxiliaryType The named auxiliary type. auxiliaryType)Implements org. |
| suffix | back to summary |
|---|---|
| private final String suffix The suffix to append to the instrumented type for creating names for the auxiliary types. | |
| Enumerating | back to summary |
|---|---|
| public Enumerating(String suffix) Creates a new suffixing random naming strategy.
| |
| name | back to summary |
|---|---|
| public String name(TypeDescription instrumentedType, AuxiliaryType auxiliaryType) Implements org. Doc from org. Names an auxiliary type.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final String | suffix
The suffix to append to the instrumented type for creating names for the auxiliary types. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public String | name(TypeDescription
The instrumented type for which an auxiliary type is registered. instrumentedType, AuxiliaryType The named auxiliary type. auxiliaryType)Implements org. |
| suffix | back to summary |
|---|---|
| private final String suffix The suffix to append to the instrumented type for creating names for the auxiliary types. | |
| Suffixing | back to summary |
|---|---|
| public Suffixing(String suffix) Creates a new suffixing random naming strategy.
| |
| name | back to summary |
|---|---|
| public String name(TypeDescription instrumentedType, AuxiliaryType auxiliaryType) Implements org. Doc from org. Names an auxiliary type.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final RandomString | randomString
An instance for creating random values. |
| private final String | suffix
The suffix to append to the instrumented type for creating names for the auxiliary types. |
| Access | Constructor and Description |
|---|---|
| public | SuffixingRandom(String
The suffix to extend to the instrumented type. suffix)Creates a new suffixing random naming strategy. |
| Modifier and Type | Method and Description |
|---|---|
| public String | name(TypeDescription
The instrumented type for which an auxiliary type is registered. instrumentedType, AuxiliaryType The named auxiliary type. auxiliaryType)Implements org. |
| randomString | back to summary |
|---|---|
| private final RandomString randomString An instance for creating random values. | |
| suffix | back to summary |
|---|---|
| private final String suffix The suffix to append to the instrumented type for creating names for the auxiliary types. | |
| SuffixingRandom | back to summary |
|---|---|
| public SuffixingRandom(String suffix) Creates a new suffixing random naming strategy.
| |
| name | back to summary |
|---|---|
| public String name(TypeDescription instrumentedType, AuxiliaryType auxiliaryType) Implements org. Doc from org. Names an auxiliary type.
| |
NoClassDefFoundError.