Package net.bytebuddy.build
Enum Plugin.Engine.PoolStrategy.Default
java.lang.Object
java.lang.Enum<Plugin.Engine.PoolStrategy.Default>
net.bytebuddy.build.Plugin.Engine.PoolStrategy.Default
- All Implemented Interfaces:
Serializable
,Comparable<Plugin.Engine.PoolStrategy.Default>
,java.lang.constant.Constable
,Plugin.Engine.PoolStrategy
- Enclosing interface:
Plugin.Engine.PoolStrategy
public static enum Plugin.Engine.PoolStrategy.Default
extends Enum<Plugin.Engine.PoolStrategy.Default>
implements Plugin.Engine.PoolStrategy
A default implementation of a pool strategy where type descriptions are resolved lazily.
-
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
Default
(TypePool.Default.ReaderMode readerMode) Creates a default pool strategy. -
Method Summary
Modifier and TypeMethodDescriptiontypePool
(ClassFileLocator classFileLocator) Creates a type pool.Returns the enum constant of this type with the specified name.static Plugin.Engine.PoolStrategy.Default[]
values()
Returns an array containing the constants of this enum type, 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
-
Default
Creates a default pool strategy.- Parameters:
readerMode
- This strategy's reader mode.
-
-
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
-
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.
-