Package net.bytebuddy.dynamic.scaffold
Class ClassWriterStrategy.Delegating
- java.lang.Object
-
- net.bytebuddy.dynamic.scaffold.ClassWriterStrategy.Delegating
-
- All Implemented Interfaces:
AsmClassWriter.Factory
- Enclosing interface:
- ClassWriterStrategy
@Enhance public static class ClassWriterStrategy.Delegating extends java.lang.Object implements AsmClassWriter.Factory
A class writer factory that delegates to aClassWriterStrategy
.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.bytebuddy.utility.AsmClassWriter.Factory
AsmClassWriter.Factory.Default, AsmClassWriter.Factory.Suppressing
-
-
Field Summary
Fields Modifier and Type Field Description private ClassWriterStrategy
classWriterStrategy
The class writer strategy to delegate to.
-
Constructor Summary
Constructors Constructor Description Delegating(ClassWriterStrategy classWriterStrategy)
Creates a delegating class writer factory.
-
Method Summary
All Methods Instance Methods Concrete 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.
-
-
-
Field Detail
-
classWriterStrategy
private final ClassWriterStrategy classWriterStrategy
The class writer strategy to delegate to.
-
-
Constructor Detail
-
Delegating
public Delegating(ClassWriterStrategy classWriterStrategy)
Creates a delegating class writer factory.- Parameters:
classWriterStrategy
- The class writer strategy to delegate to.
-
-
Method Detail
-
make
public AsmClassWriter make(int flags)
Creates a new class writer for the given flags.- Specified by:
make
in interfaceAsmClassWriter.Factory
- Parameters:
flags
- The flags to consider while writing a class file.- Returns:
- An appropriate class writer.
-
make
public AsmClassWriter make(int flags, AsmClassReader classReader)
Creates a new class writer for the given flags, possibly based on a previous class file representation.- Specified by:
make
in interfaceAsmClassWriter.Factory
- 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
public AsmClassWriter make(int flags, TypePool typePool)
Creates a new class writer for the given flags.- Specified by:
make
in interfaceAsmClassWriter.Factory
- 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
public 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.- Specified by:
make
in interfaceAsmClassWriter.Factory
- 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.
-
-