Class TypeVariableSource.AbstractBase

    • Constructor Detail

      • AbstractBase

        public AbstractBase()
    • Method Detail

      • findVariable

        @MaybeNull
        public TypeDescription.Generic findVariable​(java.lang.String symbol)
        Finds a particular variable with the given name in the closes type variable source that is visible from this instance.
        Specified by:
        findVariable in interface TypeVariableSource
        Parameters:
        symbol - The symbolic name of the type variable.
        Returns:
        The type variable or null if it was not found.
      • findExpectedVariable

        public TypeDescription.Generic findExpectedVariable​(java.lang.String symbol)
        Finds a particular variable with the given name in the closes type variable source that is visible from this instance. If the variable is not found, an exception is thrown.
        Specified by:
        findExpectedVariable in interface TypeVariableSource
        Parameters:
        symbol - The symbolic name of the type variable.
        Returns:
        The type variable.
      • toSafeString

        protected abstract java.lang.String toSafeString()
        Returns a Object.toString() representation that does not attempt to resolve any type variables to avoid stack overflow exceptions.
        Returns:
        A safe string representation.