Interface ArrayEntry

All Superinterfaces:
DescribableEntry
All Known Implementing Classes:
BasicArrayEntry

public non-sealed interface ArrayEntry extends DescribableEntry
Metadata model of an array type.
Author:
Matt Coley
  • Method Details

    • getDimensions

      int getDimensions()
      Returns:
      Dimensions of the array.
    • getElementEntry

      @Nonnull DescribableEntry getElementEntry()
      Returns:
      Element type of the array.
    • isAssignableFrom

      default boolean isAssignableFrom(@Nonnull DescribableEntry other)
      Description copied from interface: DescribableEntry
      Check if another entry is assignable to the type represented by this entry.
      Specified by:
      isAssignableFrom in interface DescribableEntry
      Parameters:
      other - Some other entry.
      Returns:
      true when the other entry is assignable to the type represented by this entry.
    • isAssignableFrom

      default boolean isAssignableFrom(@Nonnull ArrayEntry other)
    • toArrayEntry

      @Nonnull default ArrayEntry toArrayEntry(int dimensions)
      Description copied from interface: DescribableEntry
      Create an array entry with this entry as the element type.
      Specified by:
      toArrayEntry in interface DescribableEntry
      Parameters:
      dimensions - Number of dimensions to represent.
      Returns:
      Array of the current entry as the element type, with the given number of dimentions.