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:
java.io.Serializable
,java.lang.Comparable<Plugin.Engine.PoolStrategy.Default>
,Plugin.Engine.PoolStrategy
- Enclosing interface:
- Plugin.Engine.PoolStrategy
public static enum Plugin.Engine.PoolStrategy.Default extends java.lang.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 interface net.bytebuddy.build.Plugin.Engine.PoolStrategy
Plugin.Engine.PoolStrategy.Default, Plugin.Engine.PoolStrategy.Eager
-
-
Field Summary
Fields Modifier and Type Field Description private TypePool.Default.ReaderMode
readerMode
This strategy's reader mode.
-
Constructor Summary
Constructors Modifier Constructor Description private
Default(TypePool.Default.ReaderMode readerMode)
Creates a default pool strategy.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description TypePool
typePool(ClassFileLocator classFileLocator)
Creates a type pool.static Plugin.Engine.PoolStrategy.Default
valueOf(java.lang.String name)
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 Detail
-
FAST
public static final Plugin.Engine.PoolStrategy.Default FAST
Enables faster class file parsing that does not process debug information of a class file.
-
EXTENDED
public static final Plugin.Engine.PoolStrategy.Default EXTENDED
Enables extended class file parsing that extracts parameter names from debug information, if available.
-
-
Field Detail
-
readerMode
private final TypePool.Default.ReaderMode readerMode
This strategy's reader mode.
-
-
Constructor Detail
-
Default
private Default(TypePool.Default.ReaderMode readerMode)
Creates a default pool strategy.- Parameters:
readerMode
- This strategy's reader mode.
-
-
Method Detail
-
values
public static Plugin.Engine.PoolStrategy.Default[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (Plugin.Engine.PoolStrategy.Default c : Plugin.Engine.PoolStrategy.Default.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static Plugin.Engine.PoolStrategy.Default valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
typePool
public TypePool typePool(ClassFileLocator classFileLocator)
Creates a type pool.- Specified by:
typePool
in interfacePlugin.Engine.PoolStrategy
- Parameters:
classFileLocator
- The class file locator to use.- Returns:
- An approptiate type pool.
-
-