Package net.bytebuddy.utility
Enum AsmClassWriter.Factory.Default
- All Implemented Interfaces:
Serializable
,Comparable<AsmClassWriter.Factory.Default>
,java.lang.constant.Constable
,AsmClassWriter.Factory
- Enclosing interface:
AsmClassWriter.Factory
public static enum AsmClassWriter.Factory.Default
extends Enum<AsmClassWriter.Factory.Default>
implements AsmClassWriter.Factory
A default class writer factory for ASM's
ClassWriter
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
Nested classes/interfaces inherited from interface net.bytebuddy.utility.AsmClassWriter.Factory
AsmClassWriter.Factory.Default, AsmClassWriter.Factory.Suppressing
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionmake
(int flags) Creates a new class writer for the given flags.Creates a new class writer for the given flags.make
(int flags, AsmClassReader classReader) Creates a new class writer for the given flags, possibly based on a previous class file representation.make
(int flags, AsmClassReader classReader, TypePool typePool) Creates a new class writer for the given flags, possibly based on a previous class file representation.Returns the enum constant of this type with the specified name.static AsmClassWriter.Factory.Default[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
The singleton instance.
-
-
Constructor Details
-
Default
private Default()
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
make
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
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
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
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.
-