Enum TypePool.Default.ReaderMode

java.lang.Object
java.lang.Enum<TypePool.Default.ReaderMode>
net.bytebuddy.pool.TypePool.Default.ReaderMode
All Implemented Interfaces:
Serializable, Comparable<TypePool.Default.ReaderMode>, java.lang.constant.Constable
Enclosing class:
TypePool.Default

public static enum TypePool.Default.ReaderMode extends Enum<TypePool.Default.ReaderMode>
Determines the granularity of the class file parsing that is conducted by a TypePool.Default.
  • Enum Constant Details

    • EXTENDED

      public static final TypePool.Default.ReaderMode 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

      public static final TypePool.Default.ReaderMode 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.
  • Method Details

    • values

      public static TypePool.Default.ReaderMode[] 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

      public static TypePool.Default.ReaderMode valueOf(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:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getFlags

      protected int getFlags()
      Returns the flags to provide to a ClassReader 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.