Package net.bytebuddy.implementation
Interface ToStringMethod.PrefixResolver
- All Known Implementing Classes:
ToStringMethod.PrefixResolver.Default
,ToStringMethod.PrefixResolver.ForFixedValue
- Enclosing class:
- ToStringMethod
public static interface ToStringMethod.PrefixResolver
A prefix resolver is responsible for providing a value that is prepended to a
Object.toString()
implementation.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enum
Default implementations for a prefix resolver.static class
A prefix resolver that returns a fixed value. -
Method Summary
Modifier and TypeMethodDescriptionresolve
(TypeDescription instrumentedType) Resolves the prefixed value.
-
Method Details
-
resolve
Resolves the prefixed value.- Parameters:
instrumentedType
- The instrumented type.- Returns:
- The value to be prefixed.
-