Package net.bytebuddy.dynamic.scaffold
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 ClassesModifier and TypeInterfaceDescriptionstatic enum
Default implementations of class writer strategies.static class
A class writer that piggy-backs on Byte Buddy'sTypePool
to avoid class loading or look-up errors when redefining a class. -
Method Summary
-
Method Details
-
resolve
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.
-