Interface ClassWriterStrategy

All Known Implementing Classes:
ClassWriterStrategy.Default

public interface ClassWriterStrategy
A class writer strategy is responsible for the creation of a ClassWriter when creating a type.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
    Default implementations of class writer strategies.
    static class 
    A class writer that piggy-backs on Byte Buddy's TypePool to avoid class loading or look-up errors when redefining a class.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.objectweb.asm.ClassWriter
    resolve(int flags, TypePool typePool)
    Resolves a class writer.
    org.objectweb.asm.ClassWriter
    resolve(int flags, TypePool typePool, org.objectweb.asm.ClassReader classReader)
    Resolves a class writer.
  • Method Details

    • resolve

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

      org.objectweb.asm.ClassWriter resolve(int flags, TypePool typePool, org.objectweb.asm.ClassReader classReader)
      Resolves a class writer.
      Parameters:
      flags - The flags to set.
      typePool - A type pool for locating types.
      classReader - The class reader from which the original class is read.
      Returns:
      The class writer to use.