public static enum AsmClassReader.Factory.Default extends Enum<AsmClassReader.Factory.Default> implements AsmClassReader.Factory
AsmClassReaders.AsmClassReader.Factory.Default| Enum Constant and Description |
|---|
ASM_FIRST
A factory for a class reader that uses ASM's internal implementation whenever possible.
|
ASM_ONLY
A factory for a class reader that always uses ASM's internal implementation.
|
CLASS_FILE_API_FIRST
A factory for a class reader that uses the class file API whenever possible.
|
CLASS_FILE_API_ONLY
A factory for a class reader that always uses the class file API.
|
IMPLICIT
Uses a processor as it is configured by
OpenedClassReader.PROCESSOR_PROPERTY,
or AsmClassWriter.Factory.Default.ASM_FIRST if no implicit processor is defined. |
| Modifier and Type | Method and Description |
|---|---|
AsmClassReader |
make(byte[] binaryRepresentation)
Creates a class reader for a given class file.
|
static AsmClassReader.Factory.Default |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AsmClassReader.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, valueOfmakepublic static final AsmClassReader.Factory.Default IMPLICIT
OpenedClassReader.PROCESSOR_PROPERTY,
or AsmClassWriter.Factory.Default.ASM_FIRST if no implicit processor is defined.public static final AsmClassReader.Factory.Default ASM_FIRST
public static final AsmClassReader.Factory.Default CLASS_FILE_API_FIRST
public static final AsmClassReader.Factory.Default ASM_ONLY
public static final AsmClassReader.Factory.Default CLASS_FILE_API_ONLY
public static AsmClassReader.Factory.Default[] values()
for (AsmClassReader.Factory.Default c : AsmClassReader.Factory.Default.values()) System.out.println(c);
public static AsmClassReader.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 AsmClassReader make(byte[] binaryRepresentation)
make in interface AsmClassReader.FactorybinaryRepresentation - The class file's binary representation.Copyright © 2014–2025. All rights reserved.