Class ArrayTypeSignature

    • Field Detail

      • scanResult

        protected transient ScanResult scanResult
        The scan result.
      • classRef

        protected transient java.lang.Class<?> classRef
        The class ref, once the class is loaded.
    • Method Detail

      • getTypeSignatureStr

        public java.lang.String getTypeSignatureStr()
        Get the raw array type signature string, e.g. "[[I".
        Returns:
        the raw array type signature string.
      • getElementTypeSignature

        public TypeSignature getElementTypeSignature()
        Get the type signature of the array elements.
        Returns:
        The type signature of the array elements.
      • getNumDimensions

        public int getNumDimensions()
        Get the number of dimensions of the array.
        Returns:
        The number of dimensions of the array.
      • getClassName

        protected java.lang.String getClassName()
        The name of the class (used by getClassInfo() to fetch the ClassInfo object for the class).
        Returns:
        The class name.
      • getClassInfo

        protected ClassInfo getClassInfo()
      • findReferencedClassNames

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

        public java.lang.Class<?> loadElementClass​(boolean ignoreExceptions)
        Get a Class<?> reference for the array element type. Causes the ClassLoader to load the element class, if it is not already loaded.
        Parameters:
        ignoreExceptions - Whether or not to ignore exceptions.
        Returns:
        a Class<?> reference for the array element type. Also works for arrays of primitive element type.
      • loadElementClass

        public java.lang.Class<?> loadElementClass()
        Get a Class<?> reference for the array element type. Causes the ClassLoader to load the element class, if it is not already loaded.
        Returns:
        a Class<?> reference for the array element type. Also works for arrays of primitive element type.
      • loadClass

        public java.lang.Class<?> loadClass​(boolean ignoreExceptions)
        Obtain a Class<?> reference for the array class named by this ArrayClassInfo object. Causes the ClassLoader to load the element class, if it is not already loaded.
        Parameters:
        ignoreExceptions - Whether or not to ignore exceptions.
        Returns:
        The class reference, or null, if ignoreExceptions is true and there was an exception or error loading the class.
        Throws:
        java.lang.IllegalArgumentException - if ignoreExceptions is false and there were problems loading the class.
      • loadClass

        public java.lang.Class<?> loadClass()
        Obtain a Class<?> reference for the array class named by this ArrayClassInfo object. Causes the ClassLoader to load the element class, if it is not already loaded.
        Returns:
        The class reference.
        Throws:
        java.lang.IllegalArgumentException - if there were problems loading the class.
      • 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 java.lang.String toStringInternal​(boolean useSimpleNames)
        Description copied from class: TypeSignature
        TypeSignature.toString() method, possibly returning simple names for classes (i.e. if useSimpleNames is true, the package names of classes are stripped).
        Specified by:
        toStringInternal in class TypeSignature
        Parameters:
        useSimpleNames - whether or not to use simple names for classes.
        Returns:
        the string representation of the type signature, with package names stripped.