public static enum AsmClassWriter.Factory.Default extends Enum<AsmClassWriter.Factory.Default> implements AsmClassWriter.Factory
AsmClassWriter
s.Modifier and Type | Class and Description |
---|---|
protected static class |
AsmClassWriter.Factory.Default.EmptyAsmClassReader
An empty class reader for ASM that never unwraps an underlying implementation.
|
static class |
AsmClassWriter.Factory.Default.NonRetainingAsmClassReader
A class reader that does not retain a compatible
AsmClassWriter implementation. |
AsmClassWriter.Factory.Default, AsmClassWriter.Factory.Suppressing
Enum Constant and Description |
---|
ASM_FIRST
A factory for a class reader that uses ASM's internal implementation whenever possible.
|
ASM_ONLY
A factory that will always use ASM's internal implementation.
|
CLASS_FILE_API_FIRST
A factory for a class writer that uses the class file API whenever possible.
|
CLASS_FILE_API_ONLY
A factory that will always use the Class File API.
|
IMPLICIT
Uses a processor as it is configured by
OpenedClassReader.PROCESSOR_PROPERTY ,
or ASM_FIRST if no implicit processor is defined. |
Modifier and Type | Method and Description |
---|---|
AsmClassWriter |
make(int flags)
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,
TypePool typePool)
Creates a new class writer for the given flags.
|
static AsmClassWriter.Factory.Default |
valueOf(String name)
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.
|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
make
public static final AsmClassWriter.Factory.Default IMPLICIT
OpenedClassReader.PROCESSOR_PROPERTY
,
or ASM_FIRST
if no implicit processor is defined.public static final AsmClassWriter.Factory.Default ASM_FIRST
public static final AsmClassWriter.Factory.Default CLASS_FILE_API_FIRST
public static final AsmClassWriter.Factory.Default ASM_ONLY
public static final AsmClassWriter.Factory.Default CLASS_FILE_API_ONLY
public static AsmClassWriter.Factory.Default[] values()
for (AsmClassWriter.Factory.Default c : AsmClassWriter.Factory.Default.values()) System.out.println(c);
public static AsmClassWriter.Factory.Default valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic AsmClassWriter make(int flags)
make
in interface AsmClassWriter.Factory
flags
- The flags to consider while writing a class file.public AsmClassWriter make(int flags, AsmClassReader classReader)
make
in interface AsmClassWriter.Factory
flags
- The flags to consider while writing a class file.classReader
- A class reader to consider for writing a class file.public AsmClassWriter make(int flags, TypePool typePool)
make
in interface AsmClassWriter.Factory
flags
- The flags to consider while writing a class file.typePool
- A type pool to use for resolving type information for frame generation.Copyright © 2014–2025. All rights reserved.