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 aObject.toString()
implementation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ToStringMethod.PrefixResolver.Default
Default implementations for a prefix resolver.static class
ToStringMethod.PrefixResolver.ForFixedValue
A prefix resolver that returns a fixed value.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
resolve(TypeDescription instrumentedType)
Resolves the prefixed value.
-
-
-
Method Detail
-
resolve
java.lang.String resolve(TypeDescription instrumentedType)
Resolves the prefixed value.- Parameters:
instrumentedType
- The instrumented type.- Returns:
- The value to be prefixed.
-
-