Enum Class Conversions.Checkcasts

java.lang.Object
java.lang.Enum<Conversions.Checkcasts>
io.micronaut.sourcegen.bytecode.core.Conversions.Checkcasts
All Implemented Interfaces:
Serializable, Comparable<Conversions.Checkcasts>, Constable
Enclosing class:
Conversions

public static enum Conversions.Checkcasts extends Enum<Conversions.Checkcasts>
Which checkcasts of a conversion are left out as redundant. The two writers differ, and each keeps its own: the ASM writer's output is compared instruction by instruction, and the JDK writer leaves out every cast its erasure makes redundant to keep generated methods well inside the 64KB limit.
Since:
2.3
  • Enum Constant Details

    • MODEL

      public static final Conversions.Checkcasts MODEL
      The ASM writer's: a reference is cast unless the model knows its type to be the target's or assignable to it, and a boxed value unless its wrapper is the target type itself - even Object.
    • ERASURE

      public static final Conversions.Checkcasts ERASURE
      The JDK writer's: a value is cast unless its erasure is the target's, or the target is Object.
  • Method Details

    • values

      public static Conversions.Checkcasts[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Conversions.Checkcasts valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null