public final class jdk.nashorn.api.scripting.ScriptUtils
minor version: 0
major version: 59
flags: flags: (0x0031) ACC_PUBLIC, ACC_FINAL, ACC_SUPER
this_class: jdk.nashorn.api.scripting.ScriptUtils
super_class: java.lang.Object
{
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/nashorn/api/scripting/ScriptUtils;
public static java.lang.String parse(java.lang.String, java.lang.String, boolean);
descriptor: (Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
iload 2
invokestatic jdk.nashorn.internal.runtime.ScriptRuntime.parse:(Ljava/lang/String;Ljava/lang/String;Z)Ljava/lang/String;
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 code Ljava/lang/String;
0 1 1 name Ljava/lang/String;
0 1 2 includeLoc Z
MethodParameters:
Name Flags
code final
name final
includeLoc final
public static java.lang.String format(java.lang.String, java.lang.Object[]);
descriptor: (Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic jdk.nashorn.api.scripting.Formatter.format:(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 format Ljava/lang/String;
0 1 1 args [Ljava/lang/Object;
MethodParameters:
Name Flags
format final
args final
public static java.lang.Object makeSynchronizedFunction(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=3, args_size=2
start local 0 start local 1 0: aload 0
invokestatic jdk.nashorn.api.scripting.ScriptUtils.unwrap:(Ljava/lang/Object;)Ljava/lang/Object;
astore 2
start local 2 1: aload 2
instanceof jdk.nashorn.internal.runtime.ScriptFunction
ifeq 3
2: aload 2
checkcast jdk.nashorn.internal.runtime.ScriptFunction
aload 1
invokestatic jdk.nashorn.api.scripting.ScriptUtils.unwrap:(Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual jdk.nashorn.internal.runtime.ScriptFunction.createSynchronized:(Ljava/lang/Object;)Ljdk/nashorn/internal/runtime/ScriptFunction;
areturn
3: StackMap locals: java.lang.Object
StackMap stack:
new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 func Ljava/lang/Object;
0 4 1 sync Ljava/lang/Object;
1 4 2 unwrapped Ljava/lang/Object;
MethodParameters:
Name Flags
func final
sync final
public static jdk.nashorn.api.scripting.ScriptObjectMirror wrap(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljdk/nashorn/api/scripting/ScriptObjectMirror;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=2, args_size=1
start local 0 0: aload 0
instanceof jdk.nashorn.api.scripting.ScriptObjectMirror
ifeq 2
1: aload 0
checkcast jdk.nashorn.api.scripting.ScriptObjectMirror
areturn
2: StackMap locals:
StackMap stack:
aload 0
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 5
3: aload 0
checkcast jdk.nashorn.internal.runtime.ScriptObject
astore 1
start local 1 4: aload 1
invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.wrap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
checkcast jdk.nashorn.api.scripting.ScriptObjectMirror
areturn
end local 1 5: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
invokespecial java.lang.IllegalArgumentException.<init>:()V
athrow
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 obj Ljava/lang/Object;
4 5 1 sobj Ljdk/nashorn/internal/runtime/ScriptObject;
MethodParameters:
Name Flags
obj final
public static java.lang.Object unwrap(java.lang.Object);
descriptor: (Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
instanceof jdk.nashorn.api.scripting.ScriptObjectMirror
ifeq 2
1: aload 0
invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.unwrap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
areturn
2: StackMap locals:
StackMap stack:
aload 0
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 obj Ljava/lang/Object;
MethodParameters:
Name Flags
obj final
public static java.lang.Object[] wrapArray(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
arraylength
ifne 2
1: StackMap locals:
StackMap stack:
aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.wrapArray:([Ljava/lang/Object;Ljava/lang/Object;)[Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 args [Ljava/lang/Object;
MethodParameters:
Name Flags
args final
public static java.lang.Object[] unwrapArray(java.lang.Object[]);
descriptor: ([Ljava/lang/Object;)[Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
ifnull 1
aload 0
arraylength
ifne 2
1: StackMap locals:
StackMap stack:
aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokestatic jdk.nashorn.internal.runtime.Context.getGlobal:()Ljdk/nashorn/internal/objects/Global;
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.unwrapArray:([Ljava/lang/Object;Ljava/lang/Object;)[Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 args [Ljava/lang/Object;
MethodParameters:
Name Flags
args final
public static java.lang.Object convert(java.lang.Object, java.lang.Object);
descriptor: (Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=7, args_size=2
start local 0 start local 1 0: aload 0
ifnonnull 2
1: aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 1
instanceof java.lang.Class
ifeq 5
3: aload 1
checkcast java.lang.Class
astore 2
start local 2 4: goto 9
end local 2 StackMap locals:
StackMap stack:
5: aload 1
instanceof jdk.dynalink.beans.StaticClass
ifeq 8
6: aload 1
checkcast jdk.dynalink.beans.StaticClass
invokevirtual jdk.dynalink.beans.StaticClass.getRepresentedClass:()Ljava/lang/Class;
astore 2
start local 2 7: goto 9
end local 2 8: StackMap locals:
StackMap stack:
new java.lang.IllegalArgumentException
dup
ldc "type expected"
invokespecial java.lang.IllegalArgumentException.<init>:(Ljava/lang/String;)V
athrow
start local 2 9: StackMap locals: java.lang.Class
StackMap stack:
invokestatic jdk.nashorn.internal.runtime.linker.Bootstrap.getLinkerServices:()Ljdk/dynalink/linker/LinkerServices;
astore 3
start local 3 10: aload 0
invokestatic jdk.nashorn.api.scripting.ScriptUtils.unwrap:(Ljava/lang/Object;)Ljava/lang/Object;
astore 4
start local 4 11: aload 3
aload 4
invokevirtual java.lang.Object.getClass:()Ljava/lang/Class;
aload 2
invokeinterface jdk.dynalink.linker.LinkerServices.getTypeConverter:(Ljava/lang/Class;Ljava/lang/Class;)Ljava/lang/invoke/MethodHandle;
astore 5
start local 5 12: aload 5
ifnonnull 14
13: new java.lang.UnsupportedOperationException
dup
ldc "conversion not supported"
invokespecial java.lang.UnsupportedOperationException.<init>:(Ljava/lang/String;)V
athrow
14: StackMap locals: jdk.dynalink.linker.LinkerServices java.lang.Object java.lang.invoke.MethodHandle
StackMap stack:
aload 5
aload 4
invokevirtual java.lang.invoke.MethodHandle.invoke:(Ljava/lang/Object;)Ljava/lang/Object;
15: areturn
16: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
start local 6 17: aload 6
athrow
end local 6 18: StackMap locals:
StackMap stack: java.lang.Throwable
astore 6
start local 6 19: new java.lang.RuntimeException
dup
aload 6
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/Throwable;)V
athrow
end local 6 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 20 0 obj Ljava/lang/Object;
0 20 1 type Ljava/lang/Object;
4 5 2 clazz Ljava/lang/Class<*>;
7 8 2 clazz Ljava/lang/Class<*>;
9 20 2 clazz Ljava/lang/Class<*>;
10 20 3 linker Ljdk/dynalink/linker/LinkerServices;
11 20 4 objToConvert Ljava/lang/Object;
12 20 5 converter Ljava/lang/invoke/MethodHandle;
17 18 6 e Ljava/lang/Throwable;
19 20 6 t Ljava/lang/Throwable;
Exception table:
from to target type
14 15 16 Class java.lang.RuntimeException
14 15 16 Class java.lang.Error
14 15 18 Class java.lang.Throwable
MethodParameters:
Name Flags
obj final
type final
}
SourceFile: "ScriptUtils.java"