Class TypeParameter

    • Field Detail

      • name

        final java.lang.String name
        The type parameter identifier.
      • interfaceBounds

        final java.util.List<ReferenceTypeSignature> interfaceBounds
        Interface bounds -- may be empty.
    • Constructor Detail

      • TypeParameter

        protected TypeParameter​(java.lang.String identifier,
                                ReferenceTypeSignature classBound,
                                java.util.List<ReferenceTypeSignature> interfaceBounds)
        Constructor.
        Parameters:
        identifier - The type parameter identifier.
        classBound - The type parameter class bound.
        interfaceBounds - The type parameter interface bound.
    • Method Detail

      • getName

        public java.lang.String getName()
        Get the type parameter identifier.
        Returns:
        The type parameter identifier.
      • getClassBound

        public ReferenceTypeSignature getClassBound()
        Get the type parameter class bound.
        Returns:
        The type parameter class bound. May be null.
      • getInterfaceBounds

        public java.util.List<ReferenceTypeSignature> getInterfaceBounds()
        Get the type parameter interface bound(s).
        Returns:
        Get the type parameter interface bound(s), which may be the empty list.
      • getClassInfo

        protected ClassInfo getClassInfo()
        Description copied from class: ScanResultObject
        Get the ClassInfo object for the referenced class, or null if the referenced class was not encountered during scanning (i.e. no ClassInfo object was created for the class during scanning). N.B. even if this method returns null, ScanResultObject.loadClass() may be able to load the referenced class by name.
        Overrides:
        getClassInfo in class ScanResultObject
        Returns:
        The ClassInfo object for the referenced class.
      • 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.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • toStringInternal

        protected void toStringInternal​(boolean useSimpleNames,
                                        AnnotationInfoList annotationsToExclude,
                                        java.lang.StringBuilder buf)
        Description copied from class: HierarchicalTypeSignature
        Render type signature to string.
        Specified by:
        toStringInternal in class HierarchicalTypeSignature
        Parameters:
        useSimpleNames - whether to use simple names for classes.
        annotationsToExclude - toplevel annotations to exclude, to eliminate duplication (toplevel annotations are both class/field/method annotations and type annotations).
        buf - the StringBuilder to write to.