public static enum ClassWriterStrategy.Default extends Enum<ClassWriterStrategy.Default> implements ClassWriterStrategy
ClassWriterStrategy.Default, ClassWriterStrategy.FrameComputingClassWriter| Enum Constant and Description |
|---|
CONSTANT_POOL_DISCARDING
A class writer strategy that discards the original class's constant pool if applicable.
|
CONSTANT_POOL_RETAINING
A class writer strategy that retains the original class's constant pool if applicable.
|
| Modifier and Type | Method and Description |
|---|---|
ClassWriter |
resolve(int flags,
TypePool typePool)
Resolves a class writer.
|
static ClassWriterStrategy.Default |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ClassWriterStrategy.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, valueOfresolvepublic static final ClassWriterStrategy.Default CONSTANT_POOL_RETAINING
public static final ClassWriterStrategy.Default CONSTANT_POOL_DISCARDING
public static ClassWriterStrategy.Default[] values()
for (ClassWriterStrategy.Default c : ClassWriterStrategy.Default.values()) System.out.println(c);
public static ClassWriterStrategy.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 ClassWriter resolve(int flags, TypePool typePool)
resolve in interface ClassWriterStrategyflags - The flags to set.typePool - A type pool for locating types.Copyright © 2014–2023. All rights reserved.