Package net.bytebuddy.utility
Interface AsmClassWriter.Factory
-
- All Known Implementing Classes:
AsmClassWriter.Factory.Default
,AsmClassWriter.Factory.Suppressing
,ClassWriterStrategy.Delegating
- Enclosing interface:
- AsmClassWriter
public static interface AsmClassWriter.Factory
A factory for creating anAsmClassWriter
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
AsmClassWriter.Factory.Default
Default implementations for factories ofAsmClassWriter
s.static class
AsmClassWriter.Factory.Suppressing
A class writer factory that suppresses any class reader implementation that might be provided upon constructing a class writer.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description AsmClassWriter
make(int flags)
Creates a new class writer for the given flags.AsmClassWriter
make(int flags, TypePool typePool)
Creates a new class writer for the given flags.AsmClassWriter
make(int flags, AsmClassReader classReader)
Creates a new class writer for the given flags, possibly based on a previous class file representation.AsmClassWriter
make(int flags, AsmClassReader classReader, TypePool typePool)
Creates a new class writer for the given flags, possibly based on a previous class file representation.
-
-
-
Method Detail
-
make
AsmClassWriter make(int flags)
Creates a new class writer for the given flags.- Parameters:
flags
- The flags to consider while writing a class file.- Returns:
- An appropriate class writer.
-
make
AsmClassWriter make(int flags, AsmClassReader classReader)
Creates a new class writer for the given flags, possibly based on a previous class file representation.- Parameters:
flags
- The flags to consider while writing a class file.classReader
- A class reader to consider for writing a class file.- Returns:
- An appropriate class writer.
-
make
AsmClassWriter make(int flags, TypePool typePool)
Creates a new class writer for the given flags.- Parameters:
flags
- The flags to consider while writing a class file.typePool
- A type pool to use for resolving type information for frame generation.- Returns:
- An appropriate class writer.
-
make
AsmClassWriter make(int flags, AsmClassReader classReader, TypePool typePool)
Creates a new class writer for the given flags, possibly based on a previous class file representation.- Parameters:
flags
- The flags to consider while writing a class file.classReader
- A class reader to consider for writing a class file.typePool
- A type pool to use for resolving type information for frame generation.- Returns:
- An appropriate class writer.
-
-