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 aClassWriter
when creating a type.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ClassWriterStrategy.Default
Default implementations of class writer strategies.static class
ClassWriterStrategy.FrameComputingClassWriter
A class writer that piggy-backs on Byte Buddy'sTypePool
to avoid class loading or look-up errors when redefining a class.
-
Method Summary
All Methods Instance Methods Abstract Methods 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 Detail
-
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.
-
-