Package net.bytebuddy.pool
Enum Class TypePool.Default.ReaderMode
- All Implemented Interfaces:
Serializable
,Comparable<TypePool.Default.ReaderMode>
,Constable
- Enclosing class:
- TypePool.Default
Determines the granularity of the class file parsing that is conducted by a
TypePool.Default
.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe extended reader mode parses the code segment of each method in order to detect parameter names that are only stored in a method's debugging information but are not explicitly included.The fast reader mode skips the code segment of each method and cannot detect parameter names that are only contained within the debugging information. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
The flags to provide to aClassReader
for parsing a file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
getFlags()
Returns the flags to provide to aClassReader
for parsing a file.boolean
Determines if this reader mode represents extended reading.static TypePool.Default.ReaderMode
Returns the enum constant of this class with the specified name.static TypePool.Default.ReaderMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EXTENDED
The extended reader mode parses the code segment of each method in order to detect parameter names that are only stored in a method's debugging information but are not explicitly included. -
FAST
The fast reader mode skips the code segment of each method and cannot detect parameter names that are only contained within the debugging information. This mode still detects explicitly included method parameter names.
-
-
Field Details
-
flags
private final int flagsThe flags to provide to aClassReader
for parsing a file.
-
-
Constructor Details
-
ReaderMode
private ReaderMode(int flags) Creates a new reader mode constant.- Parameters:
flags
- The flags to provide to aClassReader
for parsing a file.
-
-
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
-
getFlags
protected int getFlags()Returns the flags to provide to aClassReader
for parsing a file.- Returns:
- The flags to provide to a
ClassReader
for parsing a file.
-
isExtended
public boolean isExtended()Determines if this reader mode represents extended reading.- Returns:
true
if this reader mode represents extended reading.
-