Enum TypePool.Default.ReaderMode

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      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.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int flags
      The flags to provide to a ClassReader for parsing a file.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private ReaderMode​(int flags)
      Creates a new reader mode constant.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected int getFlags()
      Returns the flags to provide to a ClassReader for parsing a file.
      boolean isExtended()
      Determines if this reader mode represents extended reading.
      static TypePool.Default.ReaderMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TypePool.Default.ReaderMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • 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.
    • Field Detail

      • flags

        private final int flags
        The flags to provide to a ClassReader for parsing a file.
    • Constructor Detail

      • ReaderMode

        private ReaderMode​(int flags)
        Creates a new reader mode constant.
        Parameters:
        flags - The flags to provide to a ClassReader for parsing a file.
    • Method Detail

      • values

        public static TypePool.Default.ReaderMode[] 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 (TypePool.Default.ReaderMode c : TypePool.Default.ReaderMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TypePool.Default.ReaderMode 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 name
        java.lang.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.