@Test public void testAccept_previewClass() { ClassReader classReader = new ClassReader(PrecompiledClass.JDK11_ALL_INSTRUCTIONS.getBytes()); AtomicInteger classVersion = new AtomicInteger(0); ClassVisitor readVersionVisitor = new ClassVisitor(Opcodes.ASM7) { @Override public void visit( final int version, final int access, final String name, final String signature, final String superName, final String[] interfaces) { classVersion.set(version); } }; classReader.accept(readVersionVisitor, 0); assertEquals(Opcodes.V_PREVIEW, classVersion.get() & Opcodes.V_PREVIEW); }
public void accept(final ClassVisitor classVisitor, final int parsingOptions) { accept(classVisitor, new Attribute[0], parsingOptions); }
ClassReader { public void accept(final ClassVisitor classVisitor, final int parsingOptions) { accept(classVisitor, new Attribute[0], parsingOptions); } }
ClassReader { public void accept(final ClassVisitor classVisitor, final int parsingOptions) { accept(classVisitor, new Attribute[0], parsingOptions); } ClassReader(final byte[] classFile);  ClassReader(
      final byte[] classFileBuffer,
      final int classFileOffset,
      final int classFileLength);   ClassReader(
      final byte[] classFileBuffer, final int classFileOffset, final boolean checkClassVersion);  ClassReader(final InputStream inputStream);  ClassReader(final String className); }
ClassReader { public void accept(final ClassVisitor classVisitor, final int parsingOptions) { accept(classVisitor, new Attribute[0], parsingOptions); } ClassReader(final byte[] classFile);  ClassReader(
      final byte[] classFileBuffer,
      final int classFileOffset,
      final int classFileLength);   ClassReader(
      final byte[] classFileBuffer, final int classFileOffset, final boolean checkClassVersion);  ClassReader(final InputStream inputStream);  ClassReader(final String className); int getAccess(); String getClassName(); String getSuperName(); String[] getInterfaces(); void accept(final ClassVisitor classVisitor, final int parsingOptions); void accept(
      final ClassVisitor classVisitor,
      final Attribute[] attributePrototypes,
      final int parsingOptions); int getItemCount(); int getItem(final int constantPoolEntryIndex); int getMaxStringLength(); int readByte(final int offset); int readUnsignedShort(final int offset); short readShort(final int offset); int readInt(final int offset); long readLong(final int offset); String readUTF8(final int offset, final char[] charBuffer); String readClass(final int offset, final char[] charBuffer); String readModule(final int offset, final char[] charBuffer); String readPackage(final int offset, final char[] charBuffer); Object readConst(final int constantPoolEntryIndex, final char[] charBuffer); }
ClassReader { public void accept(final ClassVisitor classVisitor, final int parsingOptions) { accept(classVisitor, new Attribute[0], parsingOptions); } ClassReader(final byte[] classFile);  ClassReader(
      final byte[] classFileBuffer,
      final int classFileOffset,
      final int classFileLength);   ClassReader(
      final byte[] classFileBuffer, final int classFileOffset, final boolean checkClassVersion);  ClassReader(final InputStream inputStream);  ClassReader(final String className); int getAccess(); String getClassName(); String getSuperName(); String[] getInterfaces(); void accept(final ClassVisitor classVisitor, final int parsingOptions); void accept(
      final ClassVisitor classVisitor,
      final Attribute[] attributePrototypes,
      final int parsingOptions); int getItemCount(); int getItem(final int constantPoolEntryIndex); int getMaxStringLength(); int readByte(final int offset); int readUnsignedShort(final int offset); short readShort(final int offset); int readInt(final int offset); long readLong(final int offset); String readUTF8(final int offset, final char[] charBuffer); String readClass(final int offset, final char[] charBuffer); String readModule(final int offset, final char[] charBuffer); String readPackage(final int offset, final char[] charBuffer); Object readConst(final int constantPoolEntryIndex, final char[] charBuffer); static final int SKIP_CODE; static final int SKIP_DEBUG; static final int SKIP_FRAMES; static final int EXPAND_FRAMES; @Deprecated
  // DontCheck(MemberName): can't be renamed (for backward binary compatibility).
  final byte[] b; final int header; }