Class OpenedClassReader


  • public class OpenedClassReader
    extends java.lang.Object
    A ClassReader that does not apply a class file version check if the net.bytebuddy.experimental property is set.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ASM_API
      Indicates the ASM API version that is used throughout Byte Buddy.
      static boolean EXPERIMENTAL
      true if Byte Buddy is executed in experimental mode.
      static java.lang.String EXPERIMENTAL_PROPERTY
      Indicates that Byte Buddy should not validate the maximum supported class file version.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private OpenedClassReader()
      Not intended for construction.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static org.objectweb.asm.ClassReader of​(byte[] binaryRepresentation)
      Creates a class reader for the given binary representation of a class file.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • EXPERIMENTAL_PROPERTY

        public static final java.lang.String EXPERIMENTAL_PROPERTY
        Indicates that Byte Buddy should not validate the maximum supported class file version.
        See Also:
        Constant Field Values
      • EXPERIMENTAL

        public static final boolean EXPERIMENTAL
        true if Byte Buddy is executed in experimental mode.
      • ASM_API

        public static final int ASM_API
        Indicates the ASM API version that is used throughout Byte Buddy.
    • Constructor Detail

      • OpenedClassReader

        private OpenedClassReader()
        Not intended for construction.
    • Method Detail

      • of

        public static org.objectweb.asm.ClassReader of​(byte[] binaryRepresentation)
        Creates a class reader for the given binary representation of a class file.
        Parameters:
        binaryRepresentation - The binary representation of a class file to read.
        Returns:
        An appropriate class reader.