Interface DescribableEntry

All Known Subinterfaces:
ArrayEntry, ClassEntry, FieldEntry, MemberEntry, MethodEntry, NullEntry, PrimitiveEntry
All Known Implementing Classes:
BasicArrayEntry, BasicClassEntry, BasicFieldEntry, BasicMethodEntry, BasicNullEntry, BasicPrimitiveEntry, ReflectiveClassEntry, StaticFilteredClassEntry

public sealed interface DescribableEntry permits ArrayEntry, ClassEntry, PrimitiveEntry, NullEntry, MemberEntry
Metadata model that can be represented with a type descriptor.
Author:
Matt Coley
  • Method Summary

    Modifier and Type
    Method
    Description
     
    boolean
    Check if another entry is assignable to the type represented by this entry.
    default ArrayEntry
    toArrayEntry(int dimensions)
    Create an array entry with this entry as the element type.
  • Method Details

    • getDescriptor

      @Nonnull String getDescriptor()
      Returns:
      Type descriptor of this entry.
    • toArrayEntry

      @Nonnull default ArrayEntry toArrayEntry(int dimensions)
      Create an array entry with this entry as the element type.
      Parameters:
      dimensions - Number of dimensions to represent.
      Returns:
      Array of the current entry as the element type, with the given number of dimentions.
    • isAssignableFrom

      boolean isAssignableFrom(@Nonnull DescribableEntry other)
      Check if another entry is assignable to the type represented by this entry.
      Parameters:
      other - Some other entry.
      Returns:
      true when the other entry is assignable to the type represented by this entry.