class com.oracle.truffle.js.runtime.JSContextOptions$1 implements java.util.function.Function<java.lang.String, java.lang.Integer>
minor version: 0
major version: 59
flags: flags: (0x0020) ACC_SUPER
this_class: com.oracle.truffle.js.runtime.JSContextOptions$1
super_class: java.lang.Object
{
void <init>();
descriptor: ()V
flags: (0x0000)
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 Lcom/oracle/truffle/js/runtime/JSContextOptions$1;
public java.lang.Integer apply(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/Integer;
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=5, args_size=2
start local 0 start local 1 0: aload 1
invokestatic java.lang.Integer.parseInt:(Ljava/lang/String;)I
istore 2
start local 2 1: sipush 2015
istore 3
start local 3 2: sipush 2022
istore 4
start local 4 3: iload 3
iload 2
if_icmpgt 5
iload 2
iload 4
if_icmpgt 5
4: iinc 2 -2009
5: StackMap locals: int int int
StackMap stack:
iload 2
iconst_5
if_icmplt 6
iload 2
bipush 13
if_icmple 9
6: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
7: new java.lang.StringBuilder
dup
ldc "Supported values are 5 to 13 or "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc " to "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 4
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
ldc "."
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:
StackMap stack:
iload 2
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
10: areturn
end local 4 end local 3 end local 2 11: StackMap locals: com.oracle.truffle.js.runtime.JSContextOptions$1 java.lang.String
StackMap stack: java.lang.NumberFormatException
astore 2
start local 2 12: new java.lang.IllegalArgumentException
dup
aload 2
invokevirtual java.lang.NumberFormatException.getMessage:()Ljava/lang/String;
aload 2
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lcom/oracle/truffle/js/runtime/JSContextOptions$1;
0 13 1 t Ljava/lang/String;
1 11 2 version I
2 11 3 minYearVersion I
3 11 4 maxYearVersion I
12 13 2 e Ljava/lang/NumberFormatException;
Exception table:
from to target type
0 10 11 Class java.lang.NumberFormatException
MethodParameters:
Name Flags
t
public java.lang.Object apply(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=2, locals=2, args_size=2
0: aload 0
aload 1
checkcast java.lang.String
invokevirtual com.oracle.truffle.js.runtime.JSContextOptions$1.apply:(Ljava/lang/String;)Ljava/lang/Integer;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
Signature: Ljava/lang/Object;Ljava/util/function/Function<Ljava/lang/String;Ljava/lang/Integer;>;
SourceFile: "JSContextOptions.java"
EnclosingMethod: com.oracle.truffle.js.runtime.JSContextOptions
NestHost: com.oracle.truffle.js.runtime.JSContextOptions
InnerClasses:
com.oracle.truffle.js.runtime.JSContextOptions$1