public abstract class jdk.nashorn.api.scripting.NashornException extends java.lang.RuntimeException
minor version: 0
major version: 59
flags: flags: (0x0421) ACC_PUBLIC, ACC_SUPER, ACC_ABSTRACT
this_class: jdk.nashorn.api.scripting.NashornException
super_class: java.lang.RuntimeException
{
private static final long serialVersionUID;
descriptor: J
flags: (0x001a) ACC_PRIVATE, ACC_STATIC, ACC_FINAL
ConstantValue: 1
private java.lang.String fileName;
descriptor: Ljava/lang/String;
flags: (0x0002) ACC_PRIVATE
private int line;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean lineAndFileNameUnknown;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
private int column;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private java.lang.Object ecmaError;
descriptor: Ljava/lang/Object;
flags: (0x0002) ACC_PRIVATE
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=1, locals=0, args_size=0
0: ldc Ljdk/nashorn/api/scripting/NashornException;
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.api.scripting.NashornException.$assertionsDisabled:Z
3: return
LocalVariableTable:
Start End Slot Name Signature
protected void <init>(java.lang.String, java.lang.String, int, int);
descriptor: (Ljava/lang/String;Ljava/lang/String;II)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=6, locals=5, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: aload 0
aload 1
aconst_null
aload 2
iload 3
iload 4
invokespecial jdk.nashorn.api.scripting.NashornException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;Ljava/lang/String;II)V
1: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/scripting/NashornException;
0 2 1 msg Ljava/lang/String;
0 2 2 fileName Ljava/lang/String;
0 2 3 line I
0 2 4 column I
MethodParameters:
Name Flags
msg final
fileName final
line final
column final
protected void <init>(java.lang.String, java.lang.Throwable, java.lang.String, int, int);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;Ljava/lang/String;II)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=6, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: aload 0
aload 1
aload 2
ifnonnull 1
aconst_null
goto 2
StackMap locals: uninitialized-this java.lang.String java.lang.Throwable java.lang.String int int
StackMap stack: uninitialized-this java.lang.String
1: aload 2
StackMap locals: uninitialized-this java.lang.String java.lang.Throwable java.lang.String int int
StackMap stack: uninitialized-this java.lang.String java.lang.Throwable
2: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
3: aload 0
aload 3
putfield jdk.nashorn.api.scripting.NashornException.fileName:Ljava/lang/String;
4: aload 0
iload 4
putfield jdk.nashorn.api.scripting.NashornException.line:I
5: aload 0
iload 5
putfield jdk.nashorn.api.scripting.NashornException.column:I
6: return
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 7 0 this Ljdk/nashorn/api/scripting/NashornException;
0 7 1 msg Ljava/lang/String;
0 7 2 cause Ljava/lang/Throwable;
0 7 3 fileName Ljava/lang/String;
0 7 4 line I
0 7 5 column I
MethodParameters:
Name Flags
msg final
cause final
fileName final
line final
column final
protected void <init>(java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0004) ACC_PROTECTED
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aload 2
ifnonnull 1
aconst_null
goto 2
StackMap locals: uninitialized-this java.lang.String java.lang.Throwable
StackMap stack: uninitialized-this java.lang.String
1: aload 2
StackMap locals: uninitialized-this java.lang.String java.lang.Throwable
StackMap stack: uninitialized-this java.lang.String java.lang.Throwable
2: invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
3: aload 0
iconst_m1
putfield jdk.nashorn.api.scripting.NashornException.column:I
4: aload 0
iconst_1
putfield jdk.nashorn.api.scripting.NashornException.lineAndFileNameUnknown:Z
5: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/api/scripting/NashornException;
0 6 1 msg Ljava/lang/String;
0 6 2 cause Ljava/lang/Throwable;
MethodParameters:
Name Flags
msg final
cause final
public final java.lang.String getFileName();
descriptor: ()Ljava/lang/String;
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.api.scripting.NashornException.ensureLineAndFileName:()V
1: aload 0
getfield jdk.nashorn.api.scripting.NashornException.fileName:Ljava/lang/String;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/scripting/NashornException;
public final void setFileName(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.nashorn.api.scripting.NashornException.fileName:Ljava/lang/String;
1: aload 0
iconst_0
putfield jdk.nashorn.api.scripting.NashornException.lineAndFileNameUnknown:Z
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/api/scripting/NashornException;
0 3 1 fileName Ljava/lang/String;
MethodParameters:
Name Flags
fileName final
public final int getLineNumber();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokevirtual jdk.nashorn.api.scripting.NashornException.ensureLineAndFileName:()V
1: aload 0
getfield jdk.nashorn.api.scripting.NashornException.line:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/scripting/NashornException;
public final void setLineNumber(int);
descriptor: (I)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iconst_0
putfield jdk.nashorn.api.scripting.NashornException.lineAndFileNameUnknown:Z
1: aload 0
iload 1
putfield jdk.nashorn.api.scripting.NashornException.line:I
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/api/scripting/NashornException;
0 3 1 line I
MethodParameters:
Name Flags
line final
public final int getColumnNumber();
descriptor: ()I
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.api.scripting.NashornException.column:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornException;
public final void setColumnNumber(int);
descriptor: (I)V
flags: (0x0011) ACC_PUBLIC, ACC_FINAL
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.nashorn.api.scripting.NashornException.column:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/scripting/NashornException;
0 2 1 column I
MethodParameters:
Name Flags
column final
public static java.lang.StackTraceElement[] getScriptFrames(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)[Ljava/lang/StackTraceElement;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=7, locals=9, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Throwable.getStackTrace:()[Ljava/lang/StackTraceElement;
astore 1
start local 1 1: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 2: aload 1
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 15
StackMap locals: java.lang.Throwable java.lang.StackTraceElement[] java.util.List top int int java.lang.StackTraceElement[]
StackMap stack:
3: aload 6
iload 4
aaload
astore 3
start local 3 4: aload 3
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.isScriptFrame:(Ljava/lang/StackTraceElement;)Z
ifeq 14
5: new java.lang.StringBuilder
dup
ldc "<"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 3
invokevirtual java.lang.StackTraceElement.getFileName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ">"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 7
start local 7 6: aload 3
invokevirtual java.lang.StackTraceElement.getMethodName:()Ljava/lang/String;
astore 8
start local 8 7: aload 8
getstatic jdk.nashorn.internal.codegen.CompilerConstants.PROGRAM:Ljdk/nashorn/internal/codegen/CompilerConstants;
invokevirtual jdk.nashorn.internal.codegen.CompilerConstants.symbolName:()Ljava/lang/String;
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 10
8: ldc "<program>"
astore 8
9: goto 11
10: StackMap locals: java.lang.Throwable java.lang.StackTraceElement[] java.util.List java.lang.StackTraceElement int int java.lang.StackTraceElement[] java.lang.String java.lang.String
StackMap stack:
aload 8
invokestatic jdk.nashorn.api.scripting.NashornException.stripMethodName:(Ljava/lang/String;)Ljava/lang/String;
astore 8
11: StackMap locals:
StackMap stack:
aload 2
new java.lang.StackTraceElement
dup
aload 7
aload 8
12: aload 3
invokevirtual java.lang.StackTraceElement.getFileName:()Ljava/lang/String;
aload 3
invokevirtual java.lang.StackTraceElement.getLineNumber:()I
invokespecial java.lang.StackTraceElement.<init>:(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
13: invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 8 end local 7 end local 3 14: StackMap locals: java.lang.Throwable java.lang.StackTraceElement[] java.util.List top int int java.lang.StackTraceElement[]
StackMap stack:
iinc 4 1
StackMap locals:
StackMap stack:
15: iload 4
iload 5
if_icmplt 3
16: aload 2
iconst_0
anewarray java.lang.StackTraceElement
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast java.lang.StackTraceElement[]
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 17 0 exception Ljava/lang/Throwable;
1 17 1 frames [Ljava/lang/StackTraceElement;
2 17 2 filtered Ljava/util/List<Ljava/lang/StackTraceElement;>;
4 14 3 st Ljava/lang/StackTraceElement;
6 14 7 className Ljava/lang/String;
7 14 8 methodName Ljava/lang/String;
MethodParameters:
Name Flags
exception final
private static java.lang.String stripMethodName(java.lang.String);
descriptor: (Ljava/lang/String;)Ljava/lang/String;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: aload 1
getstatic jdk.nashorn.internal.codegen.CompilerConstants.NESTED_FUNCTION_SEPARATOR:Ljdk/nashorn/internal/codegen/CompilerConstants;
invokevirtual jdk.nashorn.internal.codegen.CompilerConstants.symbolName:()Ljava/lang/String;
invokevirtual java.lang.String.lastIndexOf:(Ljava/lang/String;)I
istore 2
start local 2 2: iload 2
iflt 4
3: aload 1
iload 2
iconst_1
iadd
invokevirtual java.lang.String.substring:(I)Ljava/lang/String;
astore 1
4: StackMap locals: java.lang.String int
StackMap stack:
aload 1
getstatic jdk.nashorn.internal.codegen.CompilerConstants.ID_FUNCTION_SEPARATOR:Ljdk/nashorn/internal/codegen/CompilerConstants;
invokevirtual jdk.nashorn.internal.codegen.CompilerConstants.symbolName:()Ljava/lang/String;
invokevirtual java.lang.String.indexOf:(Ljava/lang/String;)I
istore 3
start local 3 5: iload 3
iflt 7
6: aload 1
iconst_0
iload 3
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 1
7: StackMap locals: int
StackMap stack:
aload 1
getstatic jdk.nashorn.internal.codegen.CompilerConstants.ANON_FUNCTION_PREFIX:Ljdk/nashorn/internal/codegen/CompilerConstants;
invokevirtual jdk.nashorn.internal.codegen.CompilerConstants.symbolName:()Ljava/lang/String;
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifeq 8
ldc "<anonymous>"
goto 9
StackMap locals:
StackMap stack:
8: aload 1
StackMap locals:
StackMap stack: java.lang.String
9: areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 methodName Ljava/lang/String;
1 10 1 name Ljava/lang/String;
2 10 2 nestedSeparator I
5 10 3 idSeparator I
MethodParameters:
Name Flags
methodName final
public static java.lang.String getScriptStackString(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=7, args_size=1
start local 0 0: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 1
start local 1 1: aload 0
invokestatic jdk.nashorn.api.scripting.NashornException.getScriptFrames:(Ljava/lang/Throwable;)[Ljava/lang/StackTraceElement;
astore 2
start local 2 2: aload 2
dup
astore 6
arraylength
istore 5
iconst_0
istore 4
goto 12
StackMap locals: java.lang.Throwable java.lang.StringBuilder java.lang.StackTraceElement[] top int int java.lang.StackTraceElement[]
StackMap stack:
3: aload 6
iload 4
aaload
astore 3
start local 3 4: aload 1
ldc "\tat "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
5: aload 1
aload 3
invokevirtual java.lang.StackTraceElement.getMethodName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
6: aload 1
ldc " ("
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
7: aload 1
aload 3
invokevirtual java.lang.StackTraceElement.getFileName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
8: aload 1
bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
9: aload 1
aload 3
invokevirtual java.lang.StackTraceElement.getLineNumber:()I
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
pop
10: aload 1
ldc ")\n"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
end local 3 11: iinc 4 1
StackMap locals:
StackMap stack:
12: iload 4
iload 5
if_icmplt 3
13: aload 1
invokevirtual java.lang.StringBuilder.length:()I
istore 3
start local 3 14: iload 3
ifle 17
15: getstatic jdk.nashorn.api.scripting.NashornException.$assertionsDisabled:Z
ifne 16
aload 1
iload 3
iconst_1
isub
invokevirtual java.lang.StringBuilder.charAt:(I)C
bipush 10
if_icmpeq 16
new java.lang.AssertionError
dup
invokespecial java.lang.AssertionError.<init>:()V
athrow
16: StackMap locals: java.lang.Throwable java.lang.StringBuilder java.lang.StackTraceElement[] int
StackMap stack:
aload 1
iload 3
iconst_1
isub
invokevirtual java.lang.StringBuilder.deleteCharAt:(I)Ljava/lang/StringBuilder;
pop
17: StackMap locals:
StackMap stack:
aload 1
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 18 0 exception Ljava/lang/Throwable;
1 18 1 buf Ljava/lang/StringBuilder;
2 18 2 frames [Ljava/lang/StackTraceElement;
4 11 3 st Ljava/lang/StackTraceElement;
14 18 3 len I
MethodParameters:
Name Flags
exception final
protected java.lang.Object getThrown();
descriptor: ()Ljava/lang/Object;
flags: (0x0004) ACC_PROTECTED
Code:
stack=1, locals=1, args_size=1
start local 0 0: aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornException;
jdk.nashorn.api.scripting.NashornException initEcmaError(jdk.nashorn.internal.runtime.ScriptObject);
descriptor: (Ljdk/nashorn/internal/runtime/ScriptObject;)Ljdk/nashorn/api/scripting/NashornException;
flags: (0x0000)
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.api.scripting.NashornException.ecmaError:Ljava/lang/Object;
ifnull 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
aload 0
invokevirtual jdk.nashorn.api.scripting.NashornException.getThrown:()Ljava/lang/Object;
astore 2
start local 2 3: aload 2
instanceof jdk.nashorn.internal.runtime.ScriptObject
ifeq 6
4: aload 0
aload 2
aload 1
invokestatic jdk.nashorn.api.scripting.ScriptObjectMirror.wrap:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
invokevirtual jdk.nashorn.api.scripting.NashornException.setEcmaError:(Ljava/lang/Object;)V
5: goto 7
6: StackMap locals: java.lang.Object
StackMap stack:
aload 0
aload 2
invokevirtual jdk.nashorn.api.scripting.NashornException.setEcmaError:(Ljava/lang/Object;)V
7: StackMap locals:
StackMap stack:
aload 0
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Ljdk/nashorn/api/scripting/NashornException;
0 8 1 global Ljdk/nashorn/internal/runtime/ScriptObject;
3 8 2 thrown Ljava/lang/Object;
MethodParameters:
Name Flags
global final
public java.lang.Object getEcmaError();
descriptor: ()Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.api.scripting.NashornException.ecmaError:Ljava/lang/Object;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/api/scripting/NashornException;
public void setEcmaError(java.lang.Object);
descriptor: (Ljava/lang/Object;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield jdk.nashorn.api.scripting.NashornException.ecmaError:Ljava/lang/Object;
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/api/scripting/NashornException;
0 2 1 ecmaError Ljava/lang/Object;
MethodParameters:
Name Flags
ecmaError final
private void ensureLineAndFileName();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.api.scripting.NashornException.lineAndFileNameUnknown:Z
ifeq 10
1: aload 0
invokevirtual jdk.nashorn.api.scripting.NashornException.getStackTrace:()[Ljava/lang/StackTraceElement;
dup
astore 4
arraylength
istore 3
iconst_0
istore 2
goto 8
StackMap locals: jdk.nashorn.api.scripting.NashornException top int int java.lang.StackTraceElement[]
StackMap stack:
2: aload 4
iload 2
aaload
astore 1
start local 1 3: aload 1
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.isScriptFrame:(Ljava/lang/StackTraceElement;)Z
ifeq 7
4: aload 0
aload 1
invokevirtual java.lang.StackTraceElement.getFileName:()Ljava/lang/String;
putfield jdk.nashorn.api.scripting.NashornException.fileName:Ljava/lang/String;
5: aload 0
aload 1
invokevirtual java.lang.StackTraceElement.getLineNumber:()I
putfield jdk.nashorn.api.scripting.NashornException.line:I
6: return
end local 1 7: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
8: iload 2
iload 3
if_icmplt 2
9: aload 0
iconst_0
putfield jdk.nashorn.api.scripting.NashornException.lineAndFileNameUnknown:Z
10: StackMap locals: jdk.nashorn.api.scripting.NashornException
StackMap stack:
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Ljdk/nashorn/api/scripting/NashornException;
3 7 1 ste Ljava/lang/StackTraceElement;
}
SourceFile: "NashornException.java"