Enum Class ClassWriterStrategy.Default

java.lang.Object
java.lang.Enum<ClassWriterStrategy.Default>
net.bytebuddy.dynamic.scaffold.ClassWriterStrategy.Default
All Implemented Interfaces:
Serializable, Comparable<ClassWriterStrategy.Default>, Constable, ClassWriterStrategy
Enclosing interface:
ClassWriterStrategy

public static enum ClassWriterStrategy.Default extends Enum<ClassWriterStrategy.Default> implements ClassWriterStrategy
Default implementations of class writer strategies.
  • Enum Constant Details

    • CONSTANT_POOL_RETAINING

      public static final ClassWriterStrategy.Default CONSTANT_POOL_RETAINING
      A class writer strategy that retains the original class's constant pool if applicable.
    • CONSTANT_POOL_DISCARDING

      public static final ClassWriterStrategy.Default CONSTANT_POOL_DISCARDING
      A class writer strategy that discards the original class's constant pool if applicable.
  • Constructor Details

    • Default

      private Default()
  • Method Details

    • values

      public static ClassWriterStrategy.Default[] 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 ClassWriterStrategy.Default 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
    • resolve

      public org.objectweb.asm.ClassWriter resolve(int flags, TypePool typePool)
      Resolves a class writer.
      Specified by:
      resolve in interface ClassWriterStrategy
      Parameters:
      flags - The flags to set.
      typePool - A type pool for locating types.
      Returns:
      The class writer to use.