Interface NullEntry

All Superinterfaces:
DescribableEntry
All Known Implementing Classes:
BasicNullEntry

public non-sealed interface NullEntry extends DescribableEntry
Metadata model for a null constant.
Author:
Matt Coley
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final NullEntry
     
  • Method Summary

    Modifier and Type
    Method
    Description
    default String
     
    default 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.
  • Field Details

  • Method Details

    • getDescriptor

      @Nonnull default String getDescriptor()
      Specified by:
      getDescriptor in interface DescribableEntry
      Returns:
      Type descriptor of this entry.
    • 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.
    • 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.