public class com.sun.tools.javac.jvm.ModuleNameReader
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: com.sun.tools.javac.jvm.ModuleNameReader
super_class: java.lang.Object
{
private static final int INITIAL_BUFFER_SIZE;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 65520
private com.sun.tools.javac.util.ByteBuffer buf;
descriptor: Lcom/sun/tools/javac/util/ByteBuffer;
flags: (0x0002) ACC_PRIVATE
private int bp;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private com.sun.tools.javac.jvm.PoolReader reader;
descriptor: Lcom/sun/tools/javac/jvm/PoolReader;
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
new com.sun.tools.javac.util.ByteBuffer
dup
ldc 65520
invokespecial com.sun.tools.javac.util.ByteBuffer.<init>:(I)V
putfield com.sun.tools.javac.jvm.ModuleNameReader.buf:Lcom/sun/tools/javac/util/ByteBuffer;
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/javac/jvm/ModuleNameReader;
public java.lang.String readModuleName(java.nio.file.Path);
descriptor: (Ljava/nio/file/Path;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
1: aload 1
iconst_0
anewarray java.nio.file.OpenOption
invokestatic java.nio.file.Files.newInputStream:(Ljava/nio/file/Path;[Ljava/nio/file/OpenOption;)Ljava/io/InputStream;
astore 4
start local 4 2: aload 0
aload 4
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.readModuleName:(Ljava/io/InputStream;)Ljava/lang/String;
3: aload 4
ifnull 4
aload 4
invokevirtual java.io.InputStream.close:()V
4: StackMap locals: com.sun.tools.javac.jvm.ModuleNameReader java.nio.file.Path java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.String
areturn
StackMap locals:
StackMap stack: java.lang.Throwable
5: astore 2
6: aload 4
ifnull 7
aload 4
invokevirtual java.io.InputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
7: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 3
aload 2
ifnonnull 9
aload 3
astore 2
goto 10
StackMap locals:
StackMap stack:
9: aload 2
aload 3
if_acmpeq 10
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/tools/javac/jvm/ModuleNameReader;
0 11 1 p Ljava/nio/file/Path;
2 7 4 in Ljava/io/InputStream;
Exception table:
from to target type
2 3 5 any
1 4 8 any
5 8 8 any
Exceptions:
throws java.io.IOException, com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile
MethodParameters:
Name Flags
p
public java.lang.String readModuleName(javax.tools.JavaFileObject);
descriptor: (Ljavax/tools/JavaFileObject;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aconst_null
astore 2
aconst_null
astore 3
1: aload 1
invokeinterface javax.tools.JavaFileObject.openInputStream:()Ljava/io/InputStream;
astore 4
start local 4 2: aload 0
aload 4
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.readModuleName:(Ljava/io/InputStream;)Ljava/lang/String;
3: aload 4
ifnull 4
aload 4
invokevirtual java.io.InputStream.close:()V
4: StackMap locals: com.sun.tools.javac.jvm.ModuleNameReader javax.tools.JavaFileObject java.lang.Throwable java.lang.Throwable java.io.InputStream
StackMap stack: java.lang.String
areturn
StackMap locals:
StackMap stack: java.lang.Throwable
5: astore 2
6: aload 4
ifnull 7
aload 4
invokevirtual java.io.InputStream.close:()V
end local 4 StackMap locals:
StackMap stack:
7: aload 2
athrow
StackMap locals:
StackMap stack: java.lang.Throwable
8: astore 3
aload 2
ifnonnull 9
aload 3
astore 2
goto 10
StackMap locals:
StackMap stack:
9: aload 2
aload 3
if_acmpeq 10
aload 2
aload 3
invokevirtual java.lang.Throwable.addSuppressed:(Ljava/lang/Throwable;)V
StackMap locals:
StackMap stack:
10: aload 2
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lcom/sun/tools/javac/jvm/ModuleNameReader;
0 11 1 jfo Ljavax/tools/JavaFileObject;
2 7 4 in Ljava/io/InputStream;
Exception table:
from to target type
2 3 5 any
1 4 8 any
5 8 8 any
Exceptions:
throws java.io.IOException, com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile
MethodParameters:
Name Flags
jfo
public java.lang.String readModuleName(java.io.InputStream);
descriptor: (Ljava/io/InputStream;)Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=9, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
putfield com.sun.tools.javac.jvm.ModuleNameReader.bp:I
1: aload 0
getfield com.sun.tools.javac.jvm.ModuleNameReader.buf:Lcom/sun/tools/javac/util/ByteBuffer;
invokevirtual com.sun.tools.javac.util.ByteBuffer.reset:()V
2: aload 0
getfield com.sun.tools.javac.jvm.ModuleNameReader.buf:Lcom/sun/tools/javac/util/ByteBuffer;
aload 1
invokevirtual com.sun.tools.javac.util.ByteBuffer.appendStream:(Ljava/io/InputStream;)V
3: aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextInt:()I
istore 2
start local 2 4: iload 2
ldc -889275714
if_icmpeq 6
5: new com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile
dup
ldc "illegal.start.of.class.file"
invokespecial com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile.<init>:(Ljava/lang/String;)V
athrow
6: StackMap locals: int
StackMap stack:
aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextChar:()C
pop
7: aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextChar:()C
istore 3
start local 3 8: iload 3
bipush 53
if_icmpge 10
9: new com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile
dup
new java.lang.StringBuilder
dup
ldc "bad major version number for module: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile.<init>:(Ljava/lang/String;)V
athrow
10: StackMap locals: int
StackMap stack:
aload 0
new com.sun.tools.javac.jvm.PoolReader
dup
aload 0
getfield com.sun.tools.javac.jvm.ModuleNameReader.buf:Lcom/sun/tools/javac/util/ByteBuffer;
invokespecial com.sun.tools.javac.jvm.PoolReader.<init>:(Lcom/sun/tools/javac/util/ByteBuffer;)V
putfield com.sun.tools.javac.jvm.ModuleNameReader.reader:Lcom/sun/tools/javac/jvm/PoolReader;
11: aload 0
aload 0
getfield com.sun.tools.javac.jvm.ModuleNameReader.reader:Lcom/sun/tools/javac/jvm/PoolReader;
aload 0
getfield com.sun.tools.javac.jvm.ModuleNameReader.buf:Lcom/sun/tools/javac/util/ByteBuffer;
aload 0
getfield com.sun.tools.javac.jvm.ModuleNameReader.bp:I
invokevirtual com.sun.tools.javac.jvm.PoolReader.readPool:(Lcom/sun/tools/javac/util/ByteBuffer;I)I
putfield com.sun.tools.javac.jvm.ModuleNameReader.bp:I
12: aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextChar:()C
istore 4
start local 4 13: iload 4
ldc 32768
if_icmpeq 15
14: new com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile
dup
new java.lang.StringBuilder
dup
ldc "invalid access flags for module: 0x"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 4
invokestatic java.lang.Integer.toHexString:(I)Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile.<init>:(Ljava/lang/String;)V
athrow
15: StackMap locals: int
StackMap stack:
aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextChar:()C
pop
16: aload 0
aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextChar:()C
ldc "super_class"
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.checkZero:(ILjava/lang/String;)V
17: aload 0
aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextChar:()C
ldc "interface_count"
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.checkZero:(ILjava/lang/String;)V
18: aload 0
aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextChar:()C
ldc "fields_count"
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.checkZero:(ILjava/lang/String;)V
19: aload 0
aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextChar:()C
ldc "methods_count"
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.checkZero:(ILjava/lang/String;)V
20: aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextChar:()C
istore 5
start local 5 21: iconst_0
istore 6
start local 6 22: goto 29
23: StackMap locals: int int
StackMap stack:
aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextChar:()C
istore 7
start local 7 24: aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextInt:()I
istore 8
start local 8 25: aload 0
getfield com.sun.tools.javac.jvm.ModuleNameReader.reader:Lcom/sun/tools/javac/jvm/PoolReader;
iload 7
aload 0
iconst_0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.utf8Mapper:(Z)Lcom/sun/tools/javac/util/Name$NameMapper;
invokevirtual com.sun.tools.javac.jvm.PoolReader.peekName:(ILcom/sun/tools/javac/util/Name$NameMapper;)Ljava/lang/Object;
checkcast java.lang.String
ldc "Module"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 27
iload 8
iconst_2
if_icmple 27
26: aload 0
getfield com.sun.tools.javac.jvm.ModuleNameReader.reader:Lcom/sun/tools/javac/jvm/PoolReader;
aload 0
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.nextChar:()C
aload 0
iconst_1
invokevirtual com.sun.tools.javac.jvm.ModuleNameReader.utf8Mapper:(Z)Lcom/sun/tools/javac/util/Name$NameMapper;
invokevirtual com.sun.tools.javac.jvm.PoolReader.peekModuleName:(ILcom/sun/tools/javac/util/Name$NameMapper;)Ljava/lang/Object;
checkcast java.lang.String
areturn
27: StackMap locals: int int
StackMap stack:
aload 0
dup
getfield com.sun.tools.javac.jvm.ModuleNameReader.bp:I
iload 8
iadd
putfield com.sun.tools.javac.jvm.ModuleNameReader.bp:I
end local 8 end local 7 28: iinc 6 1
StackMap locals:
StackMap stack:
29: iload 6
iload 5
if_icmplt 23
end local 6 30: new com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile
dup
ldc "no Module attribute"
invokespecial com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile.<init>:(Ljava/lang/String;)V
athrow
end local 5 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 31 0 this Lcom/sun/tools/javac/jvm/ModuleNameReader;
0 31 1 in Ljava/io/InputStream;
4 31 2 magic I
8 31 3 majorVersion I
13 31 4 access_flags I
21 31 5 attributes_count I
22 30 6 i I
24 28 7 attr_name I
25 28 8 attr_length I
Exceptions:
throws java.io.IOException, com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile
MethodParameters:
Name Flags
in
void checkZero(int, java.lang.String);
descriptor: (ILjava/lang/String;)V
flags: (0x0000)
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: iload 1
ifeq 2
1: new com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile
dup
new java.lang.StringBuilder
dup
ldc "invalid "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " for module: "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 1
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/javac/jvm/ModuleNameReader;
0 3 1 count I
0 3 2 name Ljava/lang/String;
Exceptions:
throws com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile
MethodParameters:
Name Flags
count
name
char nextChar();
descriptor: ()C
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.javac.jvm.ModuleNameReader.buf:Lcom/sun/tools/javac/util/ByteBuffer;
aload 0
getfield com.sun.tools.javac.jvm.ModuleNameReader.bp:I
invokevirtual com.sun.tools.javac.util.ByteBuffer.getChar:(I)C
istore 1
start local 1 1: aload 0
dup
getfield com.sun.tools.javac.jvm.ModuleNameReader.bp:I
iconst_2
iadd
putfield com.sun.tools.javac.jvm.ModuleNameReader.bp:I
2: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/javac/jvm/ModuleNameReader;
1 3 1 res C
int nextInt();
descriptor: ()I
flags: (0x0000)
Code:
stack=3, locals=2, args_size=1
start local 0 0: aload 0
getfield com.sun.tools.javac.jvm.ModuleNameReader.buf:Lcom/sun/tools/javac/util/ByteBuffer;
aload 0
getfield com.sun.tools.javac.jvm.ModuleNameReader.bp:I
invokevirtual com.sun.tools.javac.util.ByteBuffer.getInt:(I)I
istore 1
start local 1 1: aload 0
dup
getfield com.sun.tools.javac.jvm.ModuleNameReader.bp:I
iconst_4
iadd
putfield com.sun.tools.javac.jvm.ModuleNameReader.bp:I
2: iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lcom/sun/tools/javac/jvm/ModuleNameReader;
1 3 1 res I
com.sun.tools.javac.util.Name$NameMapper<java.lang.String> utf8Mapper(boolean);
descriptor: (Z)Lcom/sun/tools/javac/util/Name$NameMapper;
flags: (0x0000)
Code:
stack=1, locals=2, args_size=2
start local 0 start local 1 0: iload 1
ifeq 2
1: invokedynamic map()Lcom/sun/tools/javac/util/Name$NameMapper;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
([BII)Ljava/lang/Object;
com/sun/tools/javac/jvm/ModuleNameReader.lambda$0([BII)Ljava/lang/String; (6)
([BII)Ljava/lang/String;
goto 3
2: StackMap locals:
StackMap stack:
invokedynamic map()Lcom/sun/tools/javac/util/Name$NameMapper;
Bootstrap: invokestatic java.lang.invoke.LambdaMetafactory.metafactory:(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodType;Ljava/lang/invoke/MethodHandle;Ljava/lang/invoke/MethodType;)Ljava/lang/invoke/CallSite;
Method arguments:
([BII)Ljava/lang/Object;
java/lang/String.<init>([BII)V (8)
([BII)Ljava/lang/String;
3: StackMap locals:
StackMap stack: com.sun.tools.javac.util.Name$NameMapper
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lcom/sun/tools/javac/jvm/ModuleNameReader;
0 4 1 internalize Z
Signature: (Z)Lcom/sun/tools/javac/util/Name$NameMapper<Ljava/lang/String;>;
MethodParameters:
Name Flags
internalize
private static java.lang.String lambda$0(byte[], int, int);
descriptor: ([BII)Ljava/lang/String;
flags: (0x100a) ACC_PRIVATE, ACC_STATIC, ACC_SYNTHETIC
Code:
stack=5, locals=3, args_size=3
start local 0 start local 1 start local 2 0: new java.lang.String
dup
aload 0
iload 1
iload 2
invokestatic com.sun.tools.javac.jvm.ClassFile.internalize:([BII)[B
invokespecial java.lang.String.<init>:([B)V
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 buf [B
0 1 1 offset I
0 1 2 len I
}
SourceFile: "ModuleNameReader.java"
NestMembers:
com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile
InnerClasses:
public BadClassFile = com.sun.tools.javac.jvm.ModuleNameReader$BadClassFile of com.sun.tools.javac.jvm.ModuleNameReader
public abstract NameMapper = com.sun.tools.javac.util.Name$NameMapper of com.sun.tools.javac.util.Name
public final Lookup = java.lang.invoke.MethodHandles$Lookup of java.lang.invoke.MethodHandles