Class TypeSignature

    • Constructor Detail

      • TypeSignature

        public TypeSignature()
    • Method Detail

      • instantiate

        public abstract Class<?> instantiate​(ScanResult scanResult)
        Instantiate the type signature into a class reference. The ScanResult is used to ensure the correct classloader is used to load the class.
        Parameters:
        scanResult - The scan result.
        Returns:
        The instantiation of the type signature as a Class<?>.
      • equalsIgnoringTypeParams

        public abstract boolean equalsIgnoringTypeParams​(TypeSignature other)
        Compare base types, ignoring generic type parameters.
        Parameters:
        other - the other TypeSignature to compare to.
        Returns:
        True if the two TypeSignature objects are equal, ignoring type parameters.
      • parse

        public static TypeSignature parse​(String typeDescriptor)
                                   throws Parser.ParseException
        Parse a type signature.
        Parameters:
        typeDescriptor - The type descriptor or type signature to parse.
        Returns:
        The parsed type descriptor or type signature.
        Throws:
        Parser.ParseException - If type signature could not be parsed.