Enum Class Assigner.Refusing

java.lang.Object
java.lang.Enum<Assigner.Refusing>
net.bytebuddy.implementation.bytecode.assign.Assigner.Refusing
All Implemented Interfaces:
Serializable, Comparable<Assigner.Refusing>, Constable, Assigner
Enclosing interface:
Assigner

public static enum Assigner.Refusing extends Enum<Assigner.Refusing> implements Assigner
An assigner that does not allow any assignments.
  • Enum Constant Details

  • Constructor Details

    • Refusing

      private Refusing()
  • Method Details

    • values

      public static Assigner.Refusing[] 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 Assigner.Refusing 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
    • assign

      Specified by:
      assign in interface Assigner
      Parameters:
      source - The original type that is to be transformed into the targetType.
      target - The target type into which the sourceType is to be converted.
      typing - A hint whether the assignment should consider the runtime type of the source type, i.e. if type down or cross castings are allowed. If this hint is set, this is also an indication that void to non-void assignments are permitted.
      Returns:
      A stack manipulation that transforms the sourceType into the targetType if this is possible. An illegal stack manipulation otherwise.