Enum AsmClassWriter.Factory.Default.EmptyAsmClassReader

    • Constructor Detail

      • EmptyAsmClassReader

        private EmptyAsmClassReader()
    • Method Detail

      • values

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

        public static AsmClassWriter.Factory.Default.EmptyAsmClassReader 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
      • unwrap

        @AlwaysNull
        public <T> T unwrap​(java.lang.Class<T> type)
        Unwraps a class reader to the underlying reader mechanism.
        Specified by:
        unwrap in interface AsmClassReader
        Type Parameters:
        T - The type to unwrap.
        Parameters:
        type - The type of the reader that should be unwrapped.
        Returns:
        The unwrapped instance or null if the underlying instance does not represent this type.
      • accept

        public void accept​(org.objectweb.asm.ClassVisitor classVisitor,
                           int flags)
        Accepts a class visitor to read a class.
        Specified by:
        accept in interface AsmClassReader
        Parameters:
        classVisitor - The class visitor who should be used as a callback for a class file.
        flags - The flags to consider while reading a class.