Class TypeSignature

    • Constructor Detail

      • TypeSignature

        protected TypeSignature()
        Constructor.
    • Method Detail

      • findReferencedClassNames

        protected void findReferencedClassNames​(java.util.Set<java.lang.String> refdClassNames)
        Get the names of any classes referenced in the type signature.
        Parameters:
        refdClassNames - the referenced class names.
      • findReferencedClassInfo

        protected final void findReferencedClassInfo​(java.util.Map<java.lang.String,​ClassInfo> classNameToClassInfo,
                                                     java.util.Set<ClassInfo> refdClassInfo,
                                                     LogNode log)
        Get ClassInfo objects for any classes referenced in the type signature.
        Overrides:
        findReferencedClassInfo in class ScanResultObject
        Parameters:
        classNameToClassInfo - the map from class name to ClassInfo.
        refdClassInfo - the referenced class info.
        log - the log
      • 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

        static TypeSignature parse​(Parser parser,
                                   java.lang.String definingClass)
                            throws ParseException
        Parse a type signature.
        Parameters:
        parser - The parser
        definingClass - The class containing the type descriptor.
        Returns:
        The parsed type descriptor or type signature.
        Throws:
        ParseException - If the type signature could not be parsed.
      • parse

        static TypeSignature parse​(java.lang.String typeDescriptor,
                                   java.lang.String definingClass)
                            throws ParseException
        Parse a type signature.
        Parameters:
        typeDescriptor - The type descriptor or type signature to parse.
        definingClass - The class containing the type descriptor.
        Returns:
        The parsed type descriptor or type signature.
        Throws:
        ParseException - If the type signature could not be parsed.