Class TypePool.AbstractBase.RawDescriptionArray

  • All Implemented Interfaces:
    AnnotationValue<java.lang.Object[],​java.lang.Object[]>
    Enclosing class:
    TypePool.AbstractBase

    protected static class TypePool.AbstractBase.RawDescriptionArray
    extends AnnotationValue.AbstractBase<java.lang.Object[],​java.lang.Object[]>
    Represents an array that is referenced by an annotation which does not contain primitive values or Strings.
    • Constructor Detail

      • RawDescriptionArray

        public RawDescriptionArray​(TypePool typePool,
                                   TypePool.AbstractBase.RawDescriptionArray.ComponentTypeReference componentTypeReference,
                                   java.util.List<AnnotationValue<?,​?>> values)
        Creates a new array value representation of a complex array.
        Parameters:
        typePool - The type pool to use for looking up types.
        componentTypeReference - A lazy reference to the component type of this array.
        values - A list of all values of this annotation.
    • Method Detail

      • resolve

        public java.lang.Object[] resolve()
        Resolves the unloaded value of this annotation.
        Returns:
        The unloaded value of this annotation.
      • load

        public AnnotationValue.Loaded<java.lang.Object[]> load​(java.lang.ClassLoader classLoader)
                                                        throws java.lang.ClassNotFoundException
        Returns the loaded value of this annotation.
        Parameters:
        classLoader - The class loader for loading this value.
        Returns:
        The loaded value of this annotation.
        Throws:
        java.lang.ClassNotFoundException - If a type that represents a loaded value cannot be found.
      • hashCode

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

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object