Package net.bytebuddy.build
Enum Class Plugin.Engine.PoolStrategy.Eager
java.lang.Object
java.lang.Enum<Plugin.Engine.PoolStrategy.Eager>
net.bytebuddy.build.Plugin.Engine.PoolStrategy.Eager
- All Implemented Interfaces:
Serializable
,Comparable<Plugin.Engine.PoolStrategy.Eager>
,Constable
,Plugin.Engine.PoolStrategy
- Enclosing interface:
Plugin.Engine.PoolStrategy
public static enum Plugin.Engine.PoolStrategy.Eager
extends Enum<Plugin.Engine.PoolStrategy.Eager>
implements Plugin.Engine.PoolStrategy
A pool strategy that resolves type descriptions eagerly. This can avoid additional overhead if the
majority of types is assumed to be resolved eventually.
-
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.build.Plugin.Engine.PoolStrategy
Plugin.Engine.PoolStrategy.Default, Plugin.Engine.PoolStrategy.Eager
-
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TypePool.Default.ReaderMode
This strategy's reader mode. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
Eager
(TypePool.Default.ReaderMode readerMode) Creates an eager pool strategy. -
Method Summary
Modifier and TypeMethodDescriptiontypePool
(ClassFileLocator classFileLocator) Creates a type pool.Returns the enum constant of this class with the specified name.static Plugin.Engine.PoolStrategy.Eager[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAST
Enables faster class file parsing that does not process debug information of a class file. -
EXTENDED
Enables extended class file parsing that extracts parameter names from debug information, if available.
-
-
Field Details
-
readerMode
This strategy's reader mode.
-
-
Constructor Details
-
Eager
Creates an eager pool strategy.- Parameters:
readerMode
- This strategy's reader mode.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
typePool
Creates a type pool.- Specified by:
typePool
in interfacePlugin.Engine.PoolStrategy
- Parameters:
classFileLocator
- The class file locator to use.- Returns:
- An approptiate type pool.
-