public final class jdk.internal.module.Checks
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.internal.module.Checks
super_class: java.lang.Object
{
private static final java.util.Set<java.lang.String> RESERVED;
descriptor: Ljava/util/Set;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
Signature: Ljava/util/Set<Ljava/lang/String;>;
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=4, locals=0, args_size=0
0: bipush 54
anewarray java.lang.String
dup
iconst_0
1: ldc "abstract"
aastore
dup
iconst_1
2: ldc "assert"
aastore
dup
iconst_2
3: ldc "boolean"
aastore
dup
iconst_3
4: ldc "break"
aastore
dup
iconst_4
5: ldc "byte"
aastore
dup
iconst_5
6: ldc "case"
aastore
dup
bipush 6
7: ldc "catch"
aastore
dup
bipush 7
8: ldc "char"
aastore
dup
bipush 8
9: ldc "class"
aastore
dup
bipush 9
10: ldc "const"
aastore
dup
bipush 10
11: ldc "continue"
aastore
dup
bipush 11
12: ldc "default"
aastore
dup
bipush 12
13: ldc "do"
aastore
dup
bipush 13
14: ldc "double"
aastore
dup
bipush 14
15: ldc "else"
aastore
dup
bipush 15
16: ldc "enum"
aastore
dup
bipush 16
17: ldc "extends"
aastore
dup
bipush 17
18: ldc "final"
aastore
dup
bipush 18
19: ldc "finally"
aastore
dup
bipush 19
20: ldc "float"
aastore
dup
bipush 20
21: ldc "for"
aastore
dup
bipush 21
22: ldc "goto"
aastore
dup
bipush 22
23: ldc "if"
aastore
dup
bipush 23
24: ldc "implements"
aastore
dup
bipush 24
25: ldc "import"
aastore
dup
bipush 25
26: ldc "instanceof"
aastore
dup
bipush 26
27: ldc "int"
aastore
dup
bipush 27
28: ldc "interface"
aastore
dup
bipush 28
29: ldc "long"
aastore
dup
bipush 29
30: ldc "native"
aastore
dup
bipush 30
31: ldc "new"
aastore
dup
bipush 31
32: ldc "package"
aastore
dup
bipush 32
33: ldc "private"
aastore
dup
bipush 33
34: ldc "protected"
aastore
dup
bipush 34
35: ldc "public"
aastore
dup
bipush 35
36: ldc "return"
aastore
dup
bipush 36
37: ldc "short"
aastore
dup
bipush 37
38: ldc "static"
aastore
dup
bipush 38
39: ldc "strictfp"
aastore
dup
bipush 39
40: ldc "super"
aastore
dup
bipush 40
41: ldc "switch"
aastore
dup
bipush 41
42: ldc "synchronized"
aastore
dup
bipush 42
43: ldc "this"
aastore
dup
bipush 43
44: ldc "throw"
aastore
dup
bipush 44
45: ldc "throws"
aastore
dup
bipush 45
46: ldc "transient"
aastore
dup
bipush 46
47: ldc "try"
aastore
dup
bipush 47
48: ldc "void"
aastore
dup
bipush 48
49: ldc "volatile"
aastore
dup
bipush 49
50: ldc "while"
aastore
dup
bipush 50
51: ldc "true"
aastore
dup
bipush 51
52: ldc "false"
aastore
dup
bipush 52
53: ldc "null"
aastore
dup
bipush 53
54: ldc "_"
aastore
55: invokestatic java.util.Set.of:([Ljava/lang/Object;)Ljava/util/Set;
putstatic jdk.internal.module.Checks.RESERVED:Ljava/util/Set;
56: return
LocalVariableTable:
Start End Slot Name Signature
private void <init>();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial java.lang.Object.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/internal/module/Checks;
public static java.lang.String requireModuleName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=4, args_size=1
start local 0 0: aload 0
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
ldc "Null module name"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 3: goto 10
start local 1 4: StackMap locals: int int
StackMap stack:
aload 0
iload 2
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 5: aload 3
invokestatic jdk.internal.module.Checks.isJavaIdentifier:(Ljava/lang/CharSequence;)Z
ifne 9
6: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": Invalid module name"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: ldc ": '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' is not a Java identifier"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: java.lang.String
StackMap stack:
iload 1
iconst_1
iadd
istore 2
end local 3 end local 1 10: StackMap locals: java.lang.String top int
StackMap stack:
aload 0
bipush 46
iload 2
invokevirtual java.lang.String.indexOf:(II)I
dup
istore 1
start local 1 11: iconst_m1
if_icmpne 4
12: aload 0
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 13: aload 3
invokestatic jdk.internal.module.Checks.isJavaIdentifier:(Ljava/lang/CharSequence;)Z
ifne 17
14: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 0
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": Invalid module name"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
15: ldc ": '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 3
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' is not a Java identifier"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
16: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals: java.lang.String int int java.lang.String
StackMap stack:
aload 0
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 name Ljava/lang/String;
4 10 1 next I
11 18 1 next I
3 18 2 off I
5 10 3 id Ljava/lang/String;
13 18 3 last Ljava/lang/String;
MethodParameters:
Name Flags
name
public static boolean isModuleName(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: iconst_0
istore 2
start local 2 1: goto 6
start local 1 2: StackMap locals: int int
StackMap stack:
aload 0
iload 2
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 3: aload 3
invokestatic jdk.internal.module.Checks.isJavaIdentifier:(Ljava/lang/CharSequence;)Z
ifne 5
4: iconst_0
ireturn
5: StackMap locals: java.lang.String
StackMap stack:
iload 1
iconst_1
iadd
istore 2
end local 3 end local 1 6: StackMap locals: java.lang.String top int
StackMap stack:
aload 0
bipush 46
iload 2
invokevirtual java.lang.String.indexOf:(II)I
dup
istore 1
start local 1 7: iconst_m1
if_icmpne 2
8: aload 0
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 9: aload 3
invokestatic jdk.internal.module.Checks.isJavaIdentifier:(Ljava/lang/CharSequence;)Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 name Ljava/lang/String;
2 6 1 next I
7 10 1 next I
1 10 2 off I
3 6 3 id Ljava/lang/String;
9 10 3 last Ljava/lang/String;
MethodParameters:
Name Flags
name
public static java.lang.String requirePackageName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "package name"
aload 0
invokestatic jdk.internal.module.Checks.requireTypeName:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public static boolean isPackageName(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.internal.module.Checks.isTypeName:(Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public static java.lang.String requireServiceTypeName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "service type name"
aload 0
invokestatic jdk.internal.module.Checks.requireQualifiedClassName:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public static java.lang.String requireServiceProviderName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: ldc "service provider name"
aload 0
invokestatic jdk.internal.module.Checks.requireQualifiedClassName:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
public static java.lang.String requireQualifiedClassName(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=5, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic jdk.internal.module.Checks.requireTypeName:(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
pop
1: aload 1
bipush 46
invokevirtual java.lang.String.indexOf:(I)I
iconst_m1
if_icmpne 5
2: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": is not a qualified name of"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
3: ldc " a Java class in a named package"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
4: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
5: StackMap locals:
StackMap stack:
aload 1
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 what Ljava/lang/String;
0 6 1 name Ljava/lang/String;
MethodParameters:
Name Flags
what
name
public static boolean isClassName(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic jdk.internal.module.Checks.isTypeName:(Ljava/lang/String;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 name Ljava/lang/String;
MethodParameters:
Name Flags
name
private static boolean isTypeName(java.lang.String);
descriptor: (Ljava/lang/String;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: iconst_0
istore 2
start local 2 1: goto 6
start local 1 2: StackMap locals: int int
StackMap stack:
aload 0
iload 2
iload 1
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3
start local 3 3: aload 3
invokestatic jdk.internal.module.Checks.isJavaIdentifier:(Ljava/lang/CharSequence;)Z
ifne 5
4: iconst_0
ireturn
5: StackMap locals: java.lang.String
StackMap stack:
iload 1
iconst_1
iadd
istore 2
end local 3 end local 1 6: StackMap locals: java.lang.String top int
StackMap stack:
aload 0
bipush 46
iload 2
invokevirtual java.lang.String.indexOf:(II)I
dup
istore 1
start local 1 7: iconst_m1
if_icmpne 2
8: aload 0
iload 2
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 3
start local 3 9: aload 3
invokestatic jdk.internal.module.Checks.isJavaIdentifier:(Ljava/lang/CharSequence;)Z
ireturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 name Ljava/lang/String;
2 6 1 next I
7 10 1 next I
1 10 2 off I
3 6 3 id Ljava/lang/String;
9 10 3 last Ljava/lang/String;
MethodParameters:
Name Flags
name
private static java.lang.String requireTypeName(java.lang.String, java.lang.String);
descriptor: (Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
ifnonnull 2
1: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
ldc "Null "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
2: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 3: goto 10
start local 2 4: StackMap locals: int int
StackMap stack:
aload 1
iload 3
iload 2
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 4
start local 4 5: aload 4
invokestatic jdk.internal.module.Checks.isJavaIdentifier:(Ljava/lang/CharSequence;)Z
ifne 9
6: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": Invalid "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
7: ldc ": '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' is not a Java identifier"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
8: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
9: StackMap locals: java.lang.String
StackMap stack:
iload 2
iconst_1
iadd
istore 3
end local 4 end local 2 10: StackMap locals: java.lang.String java.lang.String top int
StackMap stack:
aload 1
bipush 46
iload 3
invokevirtual java.lang.String.indexOf:(II)I
dup
istore 2
start local 2 11: iconst_m1
if_icmpne 4
12: aload 1
iload 3
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 4
start local 4 13: aload 4
invokestatic jdk.internal.module.Checks.isJavaIdentifier:(Ljava/lang/CharSequence;)Z
ifne 17
14: new java.lang.IllegalArgumentException
dup
new java.lang.StringBuilder
dup
aload 1
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ": Invalid "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
15: ldc ": '"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 4
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "' is not a Java identifier"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
16: invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
17: StackMap locals: java.lang.String java.lang.String int int java.lang.String
StackMap stack:
aload 1
areturn
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 what Ljava/lang/String;
0 18 1 name Ljava/lang/String;
4 10 2 next I
11 18 2 next I
3 18 3 off I
5 10 4 id Ljava/lang/String;
13 18 4 last Ljava/lang/String;
MethodParameters:
Name Flags
what
name
private static boolean isJavaIdentifier(java.lang.CharSequence);
descriptor: (Ljava/lang/CharSequence;)Z
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokeinterface java.lang.CharSequence.length:()I
ifeq 1
getstatic jdk.internal.module.Checks.RESERVED:Ljava/util/Set;
aload 0
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 2
1: StackMap locals:
StackMap stack:
iconst_0
ireturn
2: StackMap locals:
StackMap stack:
aload 0
iconst_0
invokestatic java.lang.Character.codePointAt:(Ljava/lang/CharSequence;I)I
istore 1
start local 1 3: iload 1
invokestatic java.lang.Character.isJavaIdentifierStart:(I)Z
ifne 5
4: iconst_0
ireturn
5: StackMap locals: int
StackMap stack:
iload 1
invokestatic java.lang.Character.charCount:(I)I
istore 2
start local 2 6: goto 11
7: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokestatic java.lang.Character.codePointAt:(Ljava/lang/CharSequence;I)I
istore 3
start local 3 8: iload 3
invokestatic java.lang.Character.isJavaIdentifierPart:(I)Z
ifne 10
9: iconst_0
ireturn
10: StackMap locals: int
StackMap stack:
iload 2
iload 3
invokestatic java.lang.Character.charCount:(I)I
iadd
istore 2
end local 3 11: StackMap locals:
StackMap stack:
iload 2
aload 0
invokeinterface java.lang.CharSequence.length:()I
if_icmplt 7
12: iconst_1
ireturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 cs Ljava/lang/CharSequence;
3 13 1 first I
6 13 2 i I
8 11 3 cp I
MethodParameters:
Name Flags
cs
}
SourceFile: "Checks.java"