public final class jdk.nashorn.internal.parser.TokenLookup
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.internal.parser.TokenLookup
super_class: java.lang.Object
{
private static final jdk.nashorn.internal.parser.TokenType[] table;
descriptor: [Ljdk/nashorn/internal/parser/TokenType;
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
private static final int tableBase;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 32
private static final int tableLimit;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 126
private static final int tableLength;
descriptor: I
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 95
static final boolean $assertionsDisabled;
descriptor: Z
flags: (0x1018) ACC_STATIC, ACC_FINAL, ACC_SYNTHETIC
static void <clinit>();
descriptor: ()V
flags: (0x0008) ACC_STATIC
Code:
stack=3, locals=10, args_size=0
0: ldc Ljdk/nashorn/internal/parser/TokenLookup;
invokevirtual java.lang.Class.desiredAssertionStatus:()Z
ifne 1
iconst_1
goto 2
StackMap locals:
StackMap stack:
1: iconst_0
StackMap locals:
StackMap stack: int
2: putstatic jdk.nashorn.internal.parser.TokenLookup.$assertionsDisabled:Z
3: bipush 95
anewarray jdk.nashorn.internal.parser.TokenType
putstatic jdk.nashorn.internal.parser.TokenLookup.table:[Ljdk/nashorn/internal/parser/TokenType;
4: invokestatic jdk.nashorn.internal.parser.TokenType.getValues:()[Ljdk/nashorn/internal/parser/TokenType;
dup
astore 3
arraylength
istore 2
iconst_0
istore 1
goto 26
StackMap locals: top int int jdk.nashorn.internal.parser.TokenType[]
StackMap stack:
5: aload 3
iload 1
aaload
astore 0
start local 0 6: aload 0
invokevirtual jdk.nashorn.internal.parser.TokenType.getName:()Ljava/lang/String;
astore 4
start local 4 7: aload 4
ifnonnull 9
8: goto 25
9: StackMap locals: jdk.nashorn.internal.parser.TokenType int int jdk.nashorn.internal.parser.TokenType[] java.lang.String
StackMap stack:
aload 0
invokevirtual jdk.nashorn.internal.parser.TokenType.getKind:()Ljdk/nashorn/internal/parser/TokenKind;
getstatic jdk.nashorn.internal.parser.TokenKind.SPECIAL:Ljdk/nashorn/internal/parser/TokenKind;
if_acmpeq 25
10: aload 4
iconst_0
invokevirtual java.lang.String.charAt:(I)C
istore 5
start local 5 11: iload 5
bipush 32
isub
istore 6
start local 6 12: getstatic jdk.nashorn.internal.parser.TokenLookup.$assertionsDisabled:Z
ifne 13
iload 6
bipush 95
if_icmplt 13
new java.lang.AssertionError
dup
ldc "Token name does not fit lookup table"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
13: StackMap locals: int int
StackMap stack:
aload 0
invokevirtual jdk.nashorn.internal.parser.TokenType.getLength:()I
istore 7
start local 7 14: aconst_null
astore 8
start local 8 15: getstatic jdk.nashorn.internal.parser.TokenLookup.table:[Ljdk/nashorn/internal/parser/TokenType;
iload 6
aaload
astore 9
start local 9 16: goto 19
17: StackMap locals: int jdk.nashorn.internal.parser.TokenType jdk.nashorn.internal.parser.TokenType
StackMap stack:
aload 9
astore 8
18: aload 9
invokevirtual jdk.nashorn.internal.parser.TokenType.getNext:()Ljdk/nashorn/internal/parser/TokenType;
astore 9
19: StackMap locals:
StackMap stack:
aload 9
ifnull 20
aload 9
invokevirtual jdk.nashorn.internal.parser.TokenType.getLength:()I
iload 7
if_icmpgt 17
20: StackMap locals:
StackMap stack:
aload 0
aload 9
invokevirtual jdk.nashorn.internal.parser.TokenType.setNext:(Ljdk/nashorn/internal/parser/TokenType;)V
21: aload 8
ifnonnull 24
22: getstatic jdk.nashorn.internal.parser.TokenLookup.table:[Ljdk/nashorn/internal/parser/TokenType;
iload 6
aload 0
aastore
23: goto 25
24: StackMap locals:
StackMap stack:
aload 8
aload 0
invokevirtual jdk.nashorn.internal.parser.TokenType.setNext:(Ljdk/nashorn/internal/parser/TokenType;)V
end local 9 end local 8 end local 7 end local 6 end local 5 end local 4 end local 0 25: StackMap locals: top int int jdk.nashorn.internal.parser.TokenType[]
StackMap stack:
iinc 1 1
StackMap locals:
StackMap stack:
26: iload 1
iload 2
if_icmplt 5
27: return
LocalVariableTable:
Start End Slot Name Signature
6 25 0 tokenType Ljdk/nashorn/internal/parser/TokenType;
7 25 4 name Ljava/lang/String;
11 25 5 first C
12 25 6 index I
14 25 7 length I
15 25 8 prev Ljdk/nashorn/internal/parser/TokenType;
16 25 9 next Ljdk/nashorn/internal/parser/TokenType;
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
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/parser/TokenLookup;
public static jdk.nashorn.internal.parser.TokenType lookupKeyword(char[], int, int);
descriptor: ([CII)Ljdk/nashorn/internal/parser/TokenType;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=9, args_size=3
start local 0 start local 1 start local 2 0: getstatic jdk.nashorn.internal.parser.TokenLookup.$assertionsDisabled:Z
ifne 1
getstatic jdk.nashorn.internal.parser.TokenLookup.table:[Ljdk/nashorn/internal/parser/TokenType;
ifnonnull 1
new java.lang.AssertionError
dup
ldc "Token lookup table is not initialized"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
aload 0
iload 1
caload
istore 3
start local 3 2: bipush 97
iload 3
if_icmpgt 21
iload 3
bipush 122
if_icmpgt 21
3: iload 3
bipush 32
isub
istore 4
start local 4 4: getstatic jdk.nashorn.internal.parser.TokenLookup.table:[Ljdk/nashorn/internal/parser/TokenType;
iload 4
aaload
astore 5
start local 5 5: goto 20
6: StackMap locals: int int jdk.nashorn.internal.parser.TokenType
StackMap stack:
aload 5
invokevirtual jdk.nashorn.internal.parser.TokenType.getLength:()I
istore 6
start local 6 7: iload 6
iload 2
if_icmpne 17
8: aload 5
invokevirtual jdk.nashorn.internal.parser.TokenType.getName:()Ljava/lang/String;
astore 7
start local 7 9: iconst_0
istore 8
start local 8 10: goto 14
11: StackMap locals: int java.lang.String int
StackMap stack:
aload 0
iload 1
iload 8
iadd
caload
aload 7
iload 8
invokevirtual java.lang.String.charAt:(I)C
if_icmpeq 13
12: goto 15
13: StackMap locals:
StackMap stack:
iinc 8 1
StackMap locals:
StackMap stack:
14: iload 8
iload 2
if_icmplt 11
15: StackMap locals:
StackMap stack:
iload 8
iload 2
if_icmpne 19
16: aload 5
areturn
end local 8 end local 7 17: StackMap locals:
StackMap stack:
iload 6
iload 2
if_icmpge 19
18: goto 21
19: StackMap locals:
StackMap stack:
aload 5
invokevirtual jdk.nashorn.internal.parser.TokenType.getNext:()Ljdk/nashorn/internal/parser/TokenType;
astore 5
end local 6 20: StackMap locals:
StackMap stack:
aload 5
ifnonnull 6
end local 5 end local 4 21: StackMap locals:
StackMap stack:
getstatic jdk.nashorn.internal.parser.TokenType.IDENT:Ljdk/nashorn/internal/parser/TokenType;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 22 0 content [C
0 22 1 position I
0 22 2 length I
2 22 3 first C
4 21 4 index I
5 21 5 tokenType Ljdk/nashorn/internal/parser/TokenType;
7 20 6 tokenLength I
9 17 7 name Ljava/lang/String;
10 17 8 i I
MethodParameters:
Name Flags
content final
position final
length final
public static jdk.nashorn.internal.parser.TokenType lookupOperator(char, char, char, char);
descriptor: (CCCC)Ljdk/nashorn/internal/parser/TokenType;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=7, args_size=4
start local 0 start local 1 start local 2 start local 3 0: getstatic jdk.nashorn.internal.parser.TokenLookup.$assertionsDisabled:Z
ifne 1
getstatic jdk.nashorn.internal.parser.TokenLookup.table:[Ljdk/nashorn/internal/parser/TokenType;
ifnonnull 1
new java.lang.AssertionError
dup
ldc "Token lookup table is not initialized"
invokespecial java.lang.AssertionError.<init>:(Ljava/lang/Object;)V
athrow
1: StackMap locals:
StackMap stack:
bipush 32
iload 0
if_icmpge 19
iload 0
bipush 126
if_icmpgt 19
bipush 97
iload 0
if_icmpgt 2
iload 0
bipush 122
if_icmple 19
2: StackMap locals:
StackMap stack:
iload 0
bipush 32
isub
istore 4
start local 4 3: getstatic jdk.nashorn.internal.parser.TokenLookup.table:[Ljdk/nashorn/internal/parser/TokenType;
iload 4
aaload
astore 5
start local 5 4: goto 18
5: StackMap locals: int jdk.nashorn.internal.parser.TokenType
StackMap stack:
aload 5
invokevirtual jdk.nashorn.internal.parser.TokenType.getName:()Ljava/lang/String;
astore 6
start local 6 6: aload 6
invokevirtual java.lang.String.length:()I
tableswitch { // 1 - 4
1: 7
2: 8
3: 10
4: 13
default: 17
}
7: StackMap locals: java.lang.String
StackMap stack:
aload 5
areturn
8: StackMap locals:
StackMap stack:
aload 6
iconst_1
invokevirtual java.lang.String.charAt:(I)C
iload 1
if_icmpne 17
9: aload 5
areturn
10: StackMap locals:
StackMap stack:
aload 6
iconst_1
invokevirtual java.lang.String.charAt:(I)C
iload 1
if_icmpne 17
11: aload 6
iconst_2
invokevirtual java.lang.String.charAt:(I)C
iload 2
if_icmpne 17
12: aload 5
areturn
13: StackMap locals:
StackMap stack:
aload 6
iconst_1
invokevirtual java.lang.String.charAt:(I)C
iload 1
if_icmpne 17
14: aload 6
iconst_2
invokevirtual java.lang.String.charAt:(I)C
iload 2
if_icmpne 17
15: aload 6
iconst_3
invokevirtual java.lang.String.charAt:(I)C
iload 3
if_icmpne 17
16: aload 5
areturn
17: StackMap locals:
StackMap stack:
aload 5
invokevirtual jdk.nashorn.internal.parser.TokenType.getNext:()Ljdk/nashorn/internal/parser/TokenType;
astore 5
end local 6 18: StackMap locals:
StackMap stack:
aload 5
ifnonnull 5
end local 5 end local 4 19: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 20 0 ch0 C
0 20 1 ch1 C
0 20 2 ch2 C
0 20 3 ch3 C
3 19 4 index I
4 19 5 tokenType Ljdk/nashorn/internal/parser/TokenType;
6 18 6 name Ljava/lang/String;
MethodParameters:
Name Flags
ch0 final
ch1 final
ch2 final
ch3 final
}
SourceFile: "TokenLookup.java"