Class ToStringMethod.PrefixResolver.ForFixedValue

    • Field Detail

      • prefix

        private final java.lang.String prefix
        The prefix to prepend.
    • Constructor Detail

      • ForFixedValue

        protected ForFixedValue​(java.lang.String prefix)
        Creates a new prefix resolver that returns a fixed value.
        Parameters:
        prefix - The prefix to prepend.
    • Method Detail

      • resolve

        public java.lang.String resolve​(TypeDescription instrumentedType)
        Resolves the prefixed value.
        Specified by:
        resolve in interface ToStringMethod.PrefixResolver
        Parameters:
        instrumentedType - The instrumented type.
        Returns:
        The value to be prefixed.