Class HierarchicalTypeSignature

    • Constructor Detail

      • HierarchicalTypeSignature

        public HierarchicalTypeSignature()
    • Method Detail

      • addTypeAnnotation

        protected void addTypeAnnotation​(AnnotationInfo annotationInfo)
        Add a type annotation.
        Parameters:
        annotationInfo - the annotation
      • setScanResult

        void setScanResult​(ScanResult scanResult)
        Description copied from class: ScanResultObject
        Set ScanResult backreferences in info objects after scan has completed.
        Overrides:
        setScanResult in class ScanResultObject
        Parameters:
        scanResult - the scan result
      • getTypeAnnotationInfo

        public AnnotationInfoList getTypeAnnotationInfo()
        Get a list of AnnotationInfo objects for any type annotations on this type, or null if none.
        Returns:
        a list of AnnotationInfo objects for any type annotations on this type, or null if none.
      • addTypeAnnotation

        protected abstract void addTypeAnnotation​(java.util.List<Classfile.TypePathNode> typePath,
                                                  AnnotationInfo annotationInfo)
        Add a type annotation.
        Parameters:
        typePath - the type path
        annotationInfo - the annotation
      • toStringInternal

        protected abstract void toStringInternal​(boolean useSimpleNames,
                                                 AnnotationInfoList annotationsToExclude,
                                                 java.lang.StringBuilder buf)
        Render type signature to string.
        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.
      • toString

        protected void toString​(boolean useSimpleNames,
                                java.lang.StringBuilder buf)
        Render type signature to string.
        Specified by:
        toString in class ScanResultObject
        Parameters:
        useSimpleNames - whether to use simple names for classes.
        buf - the StringBuilder to write to.