public class jdk.nashorn.internal.runtime.ErrorManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: jdk.nashorn.internal.runtime.ErrorManager
super_class: java.lang.Object
{
private final java.io.PrintWriter writer;
descriptor: Ljava/io/PrintWriter;
flags: (0x0012) ACC_PRIVATE, ACC_FINAL
private int errors;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int warnings;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private int limit;
descriptor: I
flags: (0x0002) ACC_PRIVATE
private boolean warningsAsErrors;
descriptor: Z
flags: (0x0002) ACC_PRIVATE
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=5, locals=1, args_size=1
start local 0 0: aload 0
new java.io.PrintWriter
dup
getstatic java.lang.System.err:Ljava/io/PrintStream;
iconst_1
invokespecial java.io.PrintWriter.<init>:(Ljava/io/OutputStream;Z)V
invokespecial jdk.nashorn.internal.runtime.ErrorManager.<init>:(Ljava/io/PrintWriter;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
public void <init>(java.io.PrintWriter);
descriptor: (Ljava/io/PrintWriter;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
aload 1
putfield jdk.nashorn.internal.runtime.ErrorManager.writer:Ljava/io/PrintWriter;
2: aload 0
bipush 100
putfield jdk.nashorn.internal.runtime.ErrorManager.limit:I
3: aload 0
iconst_0
putfield jdk.nashorn.internal.runtime.ErrorManager.warningsAsErrors:Z
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
0 5 1 writer Ljava/io/PrintWriter;
MethodParameters:
Name Flags
writer final
private void checkLimit();
descriptor: ()V
flags: (0x0002) ACC_PRIVATE
Code:
stack=5, locals=2, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.errors:I
istore 1
start local 1 1: aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.warningsAsErrors:Z
ifeq 3
2: iload 1
aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.warnings:I
iadd
istore 1
3: StackMap locals: int
StackMap stack:
aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.limit:I
ifeq 5
iload 1
aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.limit:I
if_icmple 5
4: ldc "too.many.errors"
iconst_1
anewarray java.lang.String
dup
iconst_0
aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.limit:I
invokestatic java.lang.Integer.toString:(I)Ljava/lang/String;
aastore
invokestatic jdk.nashorn.internal.runtime.ECMAErrors.rangeError:(Ljava/lang/String;[Ljava/lang/String;)Ljdk/nashorn/internal/runtime/ECMAException;
athrow
5: StackMap locals:
StackMap stack:
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 6 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
1 6 1 count I
public static java.lang.String format(java.lang.String, jdk.nashorn.internal.runtime.Source, int, int, long);
descriptor: (Ljava/lang/String;Ljdk/nashorn/internal/runtime/Source;IIJ)Ljava/lang/String;
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=2, locals=11, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: invokestatic java.lang.System.lineSeparator:()Ljava/lang/String;
astore 6
start local 6 1: lload 4
invokestatic jdk.nashorn.internal.parser.Token.descPosition:(J)I
istore 7
start local 7 2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 8
start local 8 3: aload 8
aload 1
invokevirtual jdk.nashorn.internal.runtime.Source.getName:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
5: iload 2
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
6: bipush 58
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
7: iload 3
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
8: bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
9: aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
10: aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
11: aload 1
iload 7
invokevirtual jdk.nashorn.internal.runtime.Source.getSourceLine:(I)Ljava/lang/String;
astore 9
start local 9 12: aload 8
aload 9
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 6
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
13: iconst_0
istore 10
start local 10 14: goto 20
15: StackMap locals: java.lang.String jdk.nashorn.internal.runtime.Source int int long java.lang.String int java.lang.StringBuilder java.lang.String int
StackMap stack:
iload 10
aload 9
invokevirtual java.lang.String.length:()I
if_icmpge 18
aload 9
iload 10
invokevirtual java.lang.String.charAt:(I)C
bipush 9
if_icmpne 18
16: aload 8
bipush 9
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
17: goto 19
18: StackMap locals:
StackMap stack:
aload 8
bipush 32
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
19: StackMap locals:
StackMap stack:
iinc 10 1
StackMap locals:
StackMap stack:
20: iload 10
iload 3
if_icmplt 15
end local 10 21: aload 8
bipush 94
invokevirtual java.lang.StringBuilder.append:(C)Ljava/lang/StringBuilder;
pop
22: aload 8
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
areturn
end local 9 end local 8 end local 7 end local 6 end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 23 0 message Ljava/lang/String;
0 23 1 source Ljdk/nashorn/internal/runtime/Source;
0 23 2 line I
0 23 3 column I
0 23 4 token J
1 23 6 eoln Ljava/lang/String;
2 23 7 position I
3 23 8 sb Ljava/lang/StringBuilder;
12 23 9 sourceLine Ljava/lang/String;
14 21 10 i I
MethodParameters:
Name Flags
message final
source final
line final
column final
token final
public void error(jdk.nashorn.internal.runtime.ParserException);
descriptor: (Ljdk/nashorn/internal/runtime/ParserException;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.nashorn.internal.runtime.ParserException.getMessage:()Ljava/lang/String;
invokevirtual jdk.nashorn.internal.runtime.ErrorManager.error:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
0 2 1 e Ljdk/nashorn/internal/runtime/ParserException;
MethodParameters:
Name Flags
e final
public void error(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.writer:Ljava/io/PrintWriter;
aload 1
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
1: aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.writer:Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
2: aload 0
dup
getfield jdk.nashorn.internal.runtime.ErrorManager.errors:I
iconst_1
iadd
putfield jdk.nashorn.internal.runtime.ErrorManager.errors:I
3: aload 0
invokevirtual jdk.nashorn.internal.runtime.ErrorManager.checkLimit:()V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
0 5 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message final
public void warning(jdk.nashorn.internal.runtime.ParserException);
descriptor: (Ljdk/nashorn/internal/runtime/ParserException;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokevirtual jdk.nashorn.internal.runtime.ParserException.getMessage:()Ljava/lang/String;
invokevirtual jdk.nashorn.internal.runtime.ErrorManager.warning:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
0 2 1 e Ljdk/nashorn/internal/runtime/ParserException;
MethodParameters:
Name Flags
e final
public void warning(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.writer:Ljava/io/PrintWriter;
aload 1
invokevirtual java.io.PrintWriter.println:(Ljava/lang/String;)V
1: aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.writer:Ljava/io/PrintWriter;
invokevirtual java.io.PrintWriter.flush:()V
2: aload 0
dup
getfield jdk.nashorn.internal.runtime.ErrorManager.warnings:I
iconst_1
iadd
putfield jdk.nashorn.internal.runtime.ErrorManager.warnings:I
3: aload 0
invokevirtual jdk.nashorn.internal.runtime.ErrorManager.checkLimit:()V
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
0 5 1 message Ljava/lang/String;
MethodParameters:
Name Flags
message final
public boolean hasErrors();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.errors:I
ifeq 1
iconst_1
ireturn
StackMap locals:
StackMap stack:
1: iconst_0
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
public int getLimit();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.limit:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
public void setLimit(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.nashorn.internal.runtime.ErrorManager.limit:I
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
0 2 1 limit I
MethodParameters:
Name Flags
limit final
public boolean isWarningsAsErrors();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.warningsAsErrors:Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
public void setWarningsAsErrors(boolean);
descriptor: (Z)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
putfield jdk.nashorn.internal.runtime.ErrorManager.warningsAsErrors:Z
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
0 2 1 warningsAsErrors Z
MethodParameters:
Name Flags
warningsAsErrors final
public int getNumberOfErrors();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.errors:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
public int getNumberOfWarnings();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield jdk.nashorn.internal.runtime.ErrorManager.warnings:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
void reset();
descriptor: ()V
flags: (0x0000)
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield jdk.nashorn.internal.runtime.ErrorManager.warnings:I
1: aload 0
iconst_0
putfield jdk.nashorn.internal.runtime.ErrorManager.errors:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Ljdk/nashorn/internal/runtime/ErrorManager;
}
SourceFile: "ErrorManager.java"