public class org.antlr.v4.tool.ErrorManager
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.antlr.v4.tool.ErrorManager
super_class: java.lang.Object
{
public static final java.lang.String FORMATS_DIR;
descriptor: Ljava/lang/String;
flags: (0x0019) ACC_PUBLIC, ACC_STATIC, ACC_FINAL
ConstantValue: "org/antlr/v4/tool/templates/messages/formats/"
public org.antlr.v4.Tool tool;
descriptor: Lorg/antlr/v4/Tool;
flags: (0x0001) ACC_PUBLIC
public int errors;
descriptor: I
flags: (0x0001) ACC_PUBLIC
public int warnings;
descriptor: I
flags: (0x0001) ACC_PUBLIC
public java.util.Set<org.antlr.v4.tool.ErrorType> errorTypes;
descriptor: Ljava/util/Set;
flags: (0x0001) ACC_PUBLIC
Signature: Ljava/util/Set<Lorg/antlr/v4/tool/ErrorType;>;
org.stringtemplate.v4.STGroup format;
descriptor: Lorg/stringtemplate/v4/STGroup;
flags: (0x0000)
java.lang.String formatName;
descriptor: Ljava/lang/String;
flags: (0x0000)
org.stringtemplate.v4.misc.ErrorBuffer initSTListener;
descriptor: Lorg/stringtemplate/v4/misc/ErrorBuffer;
flags: (0x0000)
private static volatile int[] $SWITCH_TABLE$org$antlr$v4$tool$ErrorSeverity;
descriptor: [I
flags: (0x104a) ACC_PRIVATE, ACC_STATIC, ACC_VOLATILE, ACC_SYNTHETIC
public void <init>(org.antlr.v4.Tool);
descriptor: (Lorg/antlr/v4/Tool;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokespecial java.lang.Object.<init>:()V
1: aload 0
ldc Lorg/antlr/v4/tool/ErrorType;
invokestatic java.util.EnumSet.noneOf:(Ljava/lang/Class;)Ljava/util/EnumSet;
putfield org.antlr.v4.tool.ErrorManager.errorTypes:Ljava/util/Set;
2: aload 0
new org.stringtemplate.v4.misc.ErrorBuffer
dup
invokespecial org.stringtemplate.v4.misc.ErrorBuffer.<init>:()V
putfield org.antlr.v4.tool.ErrorManager.initSTListener:Lorg/stringtemplate/v4/misc/ErrorBuffer;
3: aload 0
aload 1
putfield org.antlr.v4.tool.ErrorManager.tool:Lorg/antlr/v4/Tool;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/antlr/v4/tool/ErrorManager;
0 5 1 tool Lorg/antlr/v4/Tool;
MethodParameters:
Name Flags
tool
public void resetErrorState();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
iconst_0
putfield org.antlr.v4.tool.ErrorManager.errors:I
1: aload 0
iconst_0
putfield org.antlr.v4.tool.ErrorManager.warnings:I
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/antlr/v4/tool/ErrorManager;
public org.stringtemplate.v4.ST getMessageTemplate(org.antlr.v4.tool.ANTLRMessage);
descriptor: (Lorg/antlr/v4/tool/ANTLRMessage;)Lorg/stringtemplate/v4/ST;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=9, args_size=2
start local 0 start local 1 0: aload 1
aload 0
getfield org.antlr.v4.tool.ErrorManager.tool:Lorg/antlr/v4/Tool;
getfield org.antlr.v4.Tool.longMessages:Z
invokevirtual org.antlr.v4.tool.ANTLRMessage.getMessageTemplate:(Z)Lorg/stringtemplate/v4/ST;
astore 2
start local 2 1: aload 0
invokevirtual org.antlr.v4.tool.ErrorManager.getLocationFormat:()Lorg/stringtemplate/v4/ST;
astore 3
start local 3 2: aload 0
aload 1
invokevirtual org.antlr.v4.tool.ANTLRMessage.getErrorType:()Lorg/antlr/v4/tool/ErrorType;
getfield org.antlr.v4.tool.ErrorType.severity:Lorg/antlr/v4/tool/ErrorSeverity;
invokevirtual org.antlr.v4.tool.ErrorManager.getReportFormat:(Lorg/antlr/v4/tool/ErrorSeverity;)Lorg/stringtemplate/v4/ST;
astore 4
start local 4 3: aload 0
invokevirtual org.antlr.v4.tool.ErrorManager.getMessageFormat:()Lorg/stringtemplate/v4/ST;
astore 5
start local 5 4: iconst_0
istore 6
start local 6 5: aload 1
getfield org.antlr.v4.tool.ANTLRMessage.line:I
iconst_m1
if_icmpeq 8
6: aload 3
ldc "line"
aload 1
getfield org.antlr.v4.tool.ANTLRMessage.line:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual org.stringtemplate.v4.ST.add:(Ljava/lang/String;Ljava/lang/Object;)Lorg/stringtemplate/v4/ST;
pop
7: iconst_1
istore 6
8: StackMap locals: org.antlr.v4.tool.ErrorManager org.antlr.v4.tool.ANTLRMessage org.stringtemplate.v4.ST org.stringtemplate.v4.ST org.stringtemplate.v4.ST org.stringtemplate.v4.ST int
StackMap stack:
aload 1
getfield org.antlr.v4.tool.ANTLRMessage.charPosition:I
iconst_m1
if_icmpeq 11
9: aload 3
ldc "column"
aload 1
getfield org.antlr.v4.tool.ANTLRMessage.charPosition:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual org.stringtemplate.v4.ST.add:(Ljava/lang/String;Ljava/lang/Object;)Lorg/stringtemplate/v4/ST;
pop
10: iconst_1
istore 6
11: StackMap locals:
StackMap stack:
aload 1
getfield org.antlr.v4.tool.ANTLRMessage.fileName:Ljava/lang/String;
ifnull 19
12: aload 1
getfield org.antlr.v4.tool.ANTLRMessage.fileName:Ljava/lang/String;
astore 7
start local 7 13: aload 0
getfield org.antlr.v4.tool.ErrorManager.format:Lorg/stringtemplate/v4/STGroup;
ldc "antlr"
invokevirtual java.lang.Object.equals:(Ljava/lang/Object;)Z
ifeq 17
14: new java.io.File
dup
aload 1
getfield org.antlr.v4.tool.ANTLRMessage.fileName:Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;)V
astore 8
start local 8 15: aload 8
invokevirtual java.io.File.exists:()Z
ifeq 17
16: aload 8
invokevirtual java.io.File.getName:()Ljava/lang/String;
astore 7
end local 8 17: StackMap locals: java.lang.String
StackMap stack:
aload 3
ldc "file"
aload 7
invokevirtual org.stringtemplate.v4.ST.add:(Ljava/lang/String;Ljava/lang/Object;)Lorg/stringtemplate/v4/ST;
pop
18: iconst_1
istore 6
end local 7 19: StackMap locals:
StackMap stack:
aload 5
ldc "id"
aload 1
invokevirtual org.antlr.v4.tool.ANTLRMessage.getErrorType:()Lorg/antlr/v4/tool/ErrorType;
getfield org.antlr.v4.tool.ErrorType.code:I
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokevirtual org.stringtemplate.v4.ST.add:(Ljava/lang/String;Ljava/lang/Object;)Lorg/stringtemplate/v4/ST;
pop
20: aload 5
ldc "text"
aload 2
invokevirtual org.stringtemplate.v4.ST.add:(Ljava/lang/String;Ljava/lang/Object;)Lorg/stringtemplate/v4/ST;
pop
21: iload 6
ifeq 22
aload 4
ldc "location"
aload 3
invokevirtual org.stringtemplate.v4.ST.add:(Ljava/lang/String;Ljava/lang/Object;)Lorg/stringtemplate/v4/ST;
pop
22: StackMap locals:
StackMap stack:
aload 4
ldc "message"
aload 5
invokevirtual org.stringtemplate.v4.ST.add:(Ljava/lang/String;Ljava/lang/Object;)Lorg/stringtemplate/v4/ST;
pop
23: aload 4
areturn
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 24 0 this Lorg/antlr/v4/tool/ErrorManager;
0 24 1 msg Lorg/antlr/v4/tool/ANTLRMessage;
1 24 2 messageST Lorg/stringtemplate/v4/ST;
2 24 3 locationST Lorg/stringtemplate/v4/ST;
3 24 4 reportST Lorg/stringtemplate/v4/ST;
4 24 5 messageFormatST Lorg/stringtemplate/v4/ST;
5 24 6 locationValid Z
13 19 7 displayFileName Ljava/lang/String;
15 17 8 f Ljava/io/File;
MethodParameters:
Name Flags
msg
public org.stringtemplate.v4.ST getLocationFormat();
descriptor: ()Lorg/stringtemplate/v4/ST;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.antlr.v4.tool.ErrorManager.format:Lorg/stringtemplate/v4/STGroup;
ldc "location"
invokevirtual org.stringtemplate.v4.STGroup.getInstanceOf:(Ljava/lang/String;)Lorg/stringtemplate/v4/ST;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/antlr/v4/tool/ErrorManager;
public org.stringtemplate.v4.ST getReportFormat(org.antlr.v4.tool.ErrorSeverity);
descriptor: (Lorg/antlr/v4/tool/ErrorSeverity;)Lorg/stringtemplate/v4/ST;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 0
getfield org.antlr.v4.tool.ErrorManager.format:Lorg/stringtemplate/v4/STGroup;
ldc "report"
invokevirtual org.stringtemplate.v4.STGroup.getInstanceOf:(Ljava/lang/String;)Lorg/stringtemplate/v4/ST;
astore 2
start local 2 1: aload 2
ldc "type"
aload 1
invokevirtual org.antlr.v4.tool.ErrorSeverity.getText:()Ljava/lang/String;
invokevirtual org.stringtemplate.v4.ST.add:(Ljava/lang/String;Ljava/lang/Object;)Lorg/stringtemplate/v4/ST;
pop
2: aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/antlr/v4/tool/ErrorManager;
0 3 1 severity Lorg/antlr/v4/tool/ErrorSeverity;
1 3 2 st Lorg/stringtemplate/v4/ST;
MethodParameters:
Name Flags
severity
public org.stringtemplate.v4.ST getMessageFormat();
descriptor: ()Lorg/stringtemplate/v4/ST;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.antlr.v4.tool.ErrorManager.format:Lorg/stringtemplate/v4/STGroup;
ldc "message"
invokevirtual org.stringtemplate.v4.STGroup.getInstanceOf:(Ljava/lang/String;)Lorg/stringtemplate/v4/ST;
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/antlr/v4/tool/ErrorManager;
public boolean formatWantsSingleLineMessage();
descriptor: ()Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.antlr.v4.tool.ErrorManager.format:Lorg/stringtemplate/v4/STGroup;
ldc "wantsSingleLineMessage"
invokevirtual org.stringtemplate.v4.STGroup.getInstanceOf:(Ljava/lang/String;)Lorg/stringtemplate/v4/ST;
invokevirtual org.stringtemplate.v4.ST.render:()Ljava/lang/String;
ldc "true"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/antlr/v4/tool/ErrorManager;
public void info(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
getfield org.antlr.v4.tool.ErrorManager.tool:Lorg/antlr/v4/Tool;
aload 1
invokevirtual org.antlr.v4.Tool.info:(Ljava/lang/String;)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/antlr/v4/tool/ErrorManager;
0 1 1 msg Ljava/lang/String;
MethodParameters:
Name Flags
msg
public void syntaxError(org.antlr.v4.tool.ErrorType, java.lang.String, org.antlr.runtime.Token, org.antlr.runtime.RecognitionException, java.lang.Object[]);
descriptor: (Lorg/antlr/v4/tool/ErrorType;Ljava/lang/String;Lorg/antlr/runtime/Token;Lorg/antlr/runtime/RecognitionException;[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=7, locals=7, args_size=6
start local 0 start local 1 start local 2 start local 3 start local 4 start local 5 0: new org.antlr.v4.tool.GrammarSyntaxMessage
dup
aload 1
aload 2
aload 3
aload 4
aload 5
invokespecial org.antlr.v4.tool.GrammarSyntaxMessage.<init>:(Lorg/antlr/v4/tool/ErrorType;Ljava/lang/String;Lorg/antlr/runtime/Token;Lorg/antlr/runtime/RecognitionException;[Ljava/lang/Object;)V
astore 6
start local 6 1: aload 0
aload 1
aload 6
invokevirtual org.antlr.v4.tool.ErrorManager.emit:(Lorg/antlr/v4/tool/ErrorType;Lorg/antlr/v4/tool/ANTLRMessage;)V
2: return
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 3 0 this Lorg/antlr/v4/tool/ErrorManager;
0 3 1 etype Lorg/antlr/v4/tool/ErrorType;
0 3 2 fileName Ljava/lang/String;
0 3 3 token Lorg/antlr/runtime/Token;
0 3 4 antlrException Lorg/antlr/runtime/RecognitionException;
0 3 5 args [Ljava/lang/Object;
1 3 6 msg Lorg/antlr/v4/tool/ANTLRMessage;
MethodParameters:
Name Flags
etype
fileName
token
antlrException
args
public static void fatalInternalError(java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokestatic org.antlr.v4.tool.ErrorManager.internalError:(Ljava/lang/String;Ljava/lang/Throwable;)V
1: new java.lang.RuntimeException
dup
aload 0
aload 1
invokespecial java.lang.RuntimeException.<init>:(Ljava/lang/String;Ljava/lang/Throwable;)V
athrow
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 error Ljava/lang/String;
0 2 1 e Ljava/lang/Throwable;
MethodParameters:
Name Flags
error
e
public static void internalError(java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: aload 1
invokestatic org.antlr.v4.tool.ErrorManager.getLastNonErrorManagerCodeLocation:(Ljava/lang/Throwable;)Ljava/lang/StackTraceElement;
astore 2
start local 2 1: new java.lang.StringBuilder
dup
ldc "Exception "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc "@"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.antlr.v4.tool.ErrorManager.internalError:(Ljava/lang/String;)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 error Ljava/lang/String;
0 3 1 e Ljava/lang/Throwable;
1 3 2 location Ljava/lang/StackTraceElement;
MethodParameters:
Name Flags
error
e
public static void internalError(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=4, locals=3, args_size=1
start local 0 0: new java.lang.Exception
dup
invokespecial java.lang.Exception.<init>:()V
invokestatic org.antlr.v4.tool.ErrorManager.getLastNonErrorManagerCodeLocation:(Ljava/lang/Throwable;)Ljava/lang/StackTraceElement;
1: astore 1
start local 1 2: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/Object;)Ljava/lang/StringBuilder;
ldc ": "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
aload 0
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 3: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "internal error: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
4: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 error Ljava/lang/String;
2 5 1 location Ljava/lang/StackTraceElement;
3 5 2 msg Ljava/lang/String;
MethodParameters:
Name Flags
error
public void toolError(org.antlr.v4.tool.ErrorType, java.lang.Object[]);
descriptor: (Lorg/antlr/v4/tool/ErrorType;[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
aload 1
aconst_null
aload 2
invokevirtual org.antlr.v4.tool.ErrorManager.toolError:(Lorg/antlr/v4/tool/ErrorType;Ljava/lang/Throwable;[Ljava/lang/Object;)V
1: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/antlr/v4/tool/ErrorManager;
0 2 1 errorType Lorg/antlr/v4/tool/ErrorType;
0 2 2 args [Ljava/lang/Object;
MethodParameters:
Name Flags
errorType
args
public void toolError(org.antlr.v4.tool.ErrorType, java.lang.Throwable, java.lang.Object[]);
descriptor: (Lorg/antlr/v4/tool/ErrorType;Ljava/lang/Throwable;[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=5, locals=5, args_size=4
start local 0 start local 1 start local 2 start local 3 0: new org.antlr.v4.tool.ToolMessage
dup
aload 1
aload 2
aload 3
invokespecial org.antlr.v4.tool.ToolMessage.<init>:(Lorg/antlr/v4/tool/ErrorType;Ljava/lang/Throwable;[Ljava/lang/Object;)V
astore 4
start local 4 1: aload 0
aload 1
aload 4
invokevirtual org.antlr.v4.tool.ErrorManager.emit:(Lorg/antlr/v4/tool/ErrorType;Lorg/antlr/v4/tool/ANTLRMessage;)V
2: return
end local 4 end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/antlr/v4/tool/ErrorManager;
0 3 1 errorType Lorg/antlr/v4/tool/ErrorType;
0 3 2 e Ljava/lang/Throwable;
0 3 3 args [Ljava/lang/Object;
1 3 4 msg Lorg/antlr/v4/tool/ToolMessage;
MethodParameters:
Name Flags
errorType
e
args
public void grammarError(org.antlr.v4.tool.ErrorType, java.lang.String, org.antlr.runtime.Token, java.lang.Object[]);
descriptor: (Lorg/antlr/v4/tool/ErrorType;Ljava/lang/String;Lorg/antlr/runtime/Token;[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=6, locals=6, args_size=5
start local 0 start local 1 start local 2 start local 3 start local 4 0: new org.antlr.v4.tool.GrammarSemanticsMessage
dup
aload 1
aload 2
aload 3
aload 4
invokespecial org.antlr.v4.tool.GrammarSemanticsMessage.<init>:(Lorg/antlr/v4/tool/ErrorType;Ljava/lang/String;Lorg/antlr/runtime/Token;[Ljava/lang/Object;)V
astore 5
start local 5 1: aload 0
aload 1
aload 5
invokevirtual org.antlr.v4.tool.ErrorManager.emit:(Lorg/antlr/v4/tool/ErrorType;Lorg/antlr/v4/tool/ANTLRMessage;)V
2: 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 3 0 this Lorg/antlr/v4/tool/ErrorManager;
0 3 1 etype Lorg/antlr/v4/tool/ErrorType;
0 3 2 fileName Ljava/lang/String;
0 3 3 token Lorg/antlr/runtime/Token;
0 3 4 args [Ljava/lang/Object;
1 3 5 msg Lorg/antlr/v4/tool/ANTLRMessage;
MethodParameters:
Name Flags
etype
fileName
token
args
public void leftRecursionCycles(java.lang.String, java.util.Collection<? extends java.util.Collection<org.antlr.v4.tool.Rule>>);
descriptor: (Ljava/lang/String;Ljava/util/Collection;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=3
start local 0 start local 1 start local 2 0: aload 0
dup
getfield org.antlr.v4.tool.ErrorManager.errors:I
iconst_1
iadd
putfield org.antlr.v4.tool.ErrorManager.errors:I
1: new org.antlr.v4.tool.LeftRecursionCyclesMessage
dup
aload 1
aload 2
invokespecial org.antlr.v4.tool.LeftRecursionCyclesMessage.<init>:(Ljava/lang/String;Ljava/util/Collection;)V
astore 3
start local 3 2: aload 0
getfield org.antlr.v4.tool.ErrorManager.tool:Lorg/antlr/v4/Tool;
aload 3
invokevirtual org.antlr.v4.Tool.error:(Lorg/antlr/v4/tool/ANTLRMessage;)V
3: return
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/antlr/v4/tool/ErrorManager;
0 4 1 fileName Ljava/lang/String;
0 4 2 cycles Ljava/util/Collection<+Ljava/util/Collection<Lorg/antlr/v4/tool/Rule;>;>;
2 4 3 msg Lorg/antlr/v4/tool/ANTLRMessage;
Signature: (Ljava/lang/String;Ljava/util/Collection<+Ljava/util/Collection<Lorg/antlr/v4/tool/Rule;>;>;)V
MethodParameters:
Name Flags
fileName
cycles
public int getNumErrors();
descriptor: ()I
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
getfield org.antlr.v4.tool.ErrorManager.errors:I
ireturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/antlr/v4/tool/ErrorManager;
private static java.lang.StackTraceElement getLastNonErrorManagerCodeLocation(java.lang.Throwable);
descriptor: (Ljava/lang/Throwable;)Ljava/lang/StackTraceElement;
flags: (0x000a) ACC_PRIVATE, ACC_STATIC
Code:
stack=2, locals=4, args_size=1
start local 0 0: aload 0
invokevirtual java.lang.Throwable.getStackTrace:()[Ljava/lang/StackTraceElement;
astore 1
start local 1 1: iconst_0
istore 2
start local 2 2: goto 7
3: StackMap locals: java.lang.StackTraceElement[] int
StackMap stack:
aload 1
iload 2
aaload
astore 3
start local 3 4: aload 3
invokevirtual java.lang.StackTraceElement.toString:()Ljava/lang/String;
ldc "ErrorManager"
invokevirtual java.lang.String.contains:(Ljava/lang/CharSequence;)Z
ifne 6
5: goto 8
end local 3 6: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
aload 1
arraylength
if_icmplt 3
8: StackMap locals:
StackMap stack:
aload 1
iload 2
aaload
astore 3
start local 3 9: aload 3
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 e Ljava/lang/Throwable;
1 10 1 stack [Ljava/lang/StackTraceElement;
2 10 2 i I
4 6 3 t Ljava/lang/StackTraceElement;
9 10 3 location Ljava/lang/StackTraceElement;
MethodParameters:
Name Flags
e
public void emit(org.antlr.v4.tool.ErrorType, org.antlr.v4.tool.ANTLRMessage);
descriptor: (Lorg/antlr/v4/tool/ErrorType;Lorg/antlr/v4/tool/ANTLRMessage;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=3
start local 0 start local 1 start local 2 0: invokestatic org.antlr.v4.tool.ErrorManager.$SWITCH_TABLE$org$antlr$v4$tool$ErrorSeverity:()[I
aload 1
getfield org.antlr.v4.tool.ErrorType.severity:Lorg/antlr/v4/tool/ErrorSeverity;
invokevirtual org.antlr.v4.tool.ErrorSeverity.ordinal:()I
iaload
tableswitch { // 2 - 5
2: 2
3: 1
4: 6
5: 5
default: 8
}
1: StackMap locals:
StackMap stack:
aload 0
getfield org.antlr.v4.tool.ErrorManager.errorTypes:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 2
goto 8
2: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.antlr.v4.tool.ErrorManager.warnings:I
iconst_1
iadd
putfield org.antlr.v4.tool.ErrorManager.warnings:I
3: aload 0
getfield org.antlr.v4.tool.ErrorManager.tool:Lorg/antlr/v4/Tool;
aload 2
invokevirtual org.antlr.v4.Tool.warning:(Lorg/antlr/v4/tool/ANTLRMessage;)V
4: goto 8
5: StackMap locals:
StackMap stack:
aload 0
getfield org.antlr.v4.tool.ErrorManager.errorTypes:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.contains:(Ljava/lang/Object;)Z
ifeq 6
goto 8
6: StackMap locals:
StackMap stack:
aload 0
dup
getfield org.antlr.v4.tool.ErrorManager.errors:I
iconst_1
iadd
putfield org.antlr.v4.tool.ErrorManager.errors:I
7: aload 0
getfield org.antlr.v4.tool.ErrorManager.tool:Lorg/antlr/v4/Tool;
aload 2
invokevirtual org.antlr.v4.Tool.error:(Lorg/antlr/v4/tool/ANTLRMessage;)V
8: StackMap locals:
StackMap stack:
aload 0
getfield org.antlr.v4.tool.ErrorManager.errorTypes:Ljava/util/Set;
aload 1
invokeinterface java.util.Set.add:(Ljava/lang/Object;)Z
pop
9: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/antlr/v4/tool/ErrorManager;
0 10 1 etype Lorg/antlr/v4/tool/ErrorType;
0 10 2 msg Lorg/antlr/v4/tool/ANTLRMessage;
MethodParameters:
Name Flags
etype
msg
public void setFormat(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=7, locals=6, args_size=2
start local 0 start local 1 0: aload 0
aload 1
putfield org.antlr.v4.tool.ErrorManager.formatName:Ljava/lang/String;
1: new java.lang.StringBuilder
dup
ldc "org/antlr/v4/tool/templates/messages/formats/"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
getstatic org.stringtemplate.v4.STGroup.GROUP_FILE_EXTENSION:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
astore 2
start local 2 2: invokestatic java.lang.Thread.currentThread:()Ljava/lang/Thread;
invokevirtual java.lang.Thread.getContextClassLoader:()Ljava/lang/ClassLoader;
astore 3
start local 3 3: aload 3
aload 2
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 4
start local 4 4: aload 4
ifnonnull 7
5: ldc Lorg/antlr/v4/tool/ErrorManager;
invokevirtual java.lang.Class.getClassLoader:()Ljava/lang/ClassLoader;
astore 3
6: aload 3
aload 2
invokevirtual java.lang.ClassLoader.getResource:(Ljava/lang/String;)Ljava/net/URL;
astore 4
7: StackMap locals: java.lang.String java.lang.ClassLoader java.net.URL
StackMap stack:
aload 4
ifnonnull 11
aload 1
ldc "antlr"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 11
8: new java.lang.StringBuilder
dup
ldc "ANTLR installation corrupted; cannot find ANTLR messages format file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.antlr.v4.tool.ErrorManager.rawError:(Ljava/lang/String;)V
9: invokestatic org.antlr.v4.tool.ErrorManager.panic:()V
10: goto 15
11: StackMap locals:
StackMap stack:
aload 4
ifnonnull 15
12: new java.lang.StringBuilder
dup
ldc "no such message format file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 2
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc " retrying with default ANTLR format"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.antlr.v4.tool.ErrorManager.rawError:(Ljava/lang/String;)V
13: aload 0
ldc "antlr"
invokevirtual org.antlr.v4.tool.ErrorManager.setFormat:(Ljava/lang/String;)V
14: return
15: StackMap locals:
StackMap stack:
aload 0
new org.stringtemplate.v4.STGroupFile
dup
aload 4
ldc "UTF-8"
bipush 60
bipush 62
invokespecial org.stringtemplate.v4.STGroupFile.<init>:(Ljava/net/URL;Ljava/lang/String;CC)V
putfield org.antlr.v4.tool.ErrorManager.format:Lorg/stringtemplate/v4/STGroup;
16: aload 0
getfield org.antlr.v4.tool.ErrorManager.format:Lorg/stringtemplate/v4/STGroup;
invokevirtual org.stringtemplate.v4.STGroup.load:()V
17: aload 0
getfield org.antlr.v4.tool.ErrorManager.initSTListener:Lorg/stringtemplate/v4/misc/ErrorBuffer;
getfield org.stringtemplate.v4.misc.ErrorBuffer.errors:Ljava/util/List;
invokeinterface java.util.List.isEmpty:()Z
ifne 22
18: new java.lang.StringBuilder
dup
ldc "ANTLR installation corrupted; can't load messages format file:\n"
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
19: aload 0
getfield org.antlr.v4.tool.ErrorManager.initSTListener:Lorg/stringtemplate/v4/misc/ErrorBuffer;
invokevirtual org.stringtemplate.v4.misc.ErrorBuffer.toString:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
20: invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.antlr.v4.tool.ErrorManager.rawError:(Ljava/lang/String;)V
21: invokestatic org.antlr.v4.tool.ErrorManager.panic:()V
22: StackMap locals:
StackMap stack:
aload 0
invokevirtual org.antlr.v4.tool.ErrorManager.verifyFormat:()Z
istore 5
start local 5 23: iload 5
ifne 27
aload 1
ldc "antlr"
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 27
24: new java.lang.StringBuilder
dup
ldc "ANTLR installation corrupted; ANTLR messages format file "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 1
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc ".stg incomplete"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokestatic org.antlr.v4.tool.ErrorManager.rawError:(Ljava/lang/String;)V
25: invokestatic org.antlr.v4.tool.ErrorManager.panic:()V
26: goto 29
27: StackMap locals: int
StackMap stack:
iload 5
ifne 29
28: aload 0
ldc "antlr"
invokevirtual org.antlr.v4.tool.ErrorManager.setFormat:(Ljava/lang/String;)V
29: StackMap locals:
StackMap stack:
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 30 0 this Lorg/antlr/v4/tool/ErrorManager;
0 30 1 formatName Ljava/lang/String;
2 30 2 fileName Ljava/lang/String;
3 30 3 cl Ljava/lang/ClassLoader;
4 30 4 url Ljava/net/URL;
23 30 5 formatOK Z
MethodParameters:
Name Flags
formatName
protected boolean verifyFormat();
descriptor: ()Z
flags: (0x0004) ACC_PROTECTED
Code:
stack=4, locals=2, args_size=1
start local 0 0: iconst_1
istore 1
start local 1 1: aload 0
getfield org.antlr.v4.tool.ErrorManager.format:Lorg/stringtemplate/v4/STGroup;
ldc "location"
invokevirtual org.stringtemplate.v4.STGroup.isDefined:(Ljava/lang/String;)Z
ifne 4
2: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Format template 'location' not found in "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.antlr.v4.tool.ErrorManager.formatName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
3: iconst_0
istore 1
4: StackMap locals: int
StackMap stack:
aload 0
getfield org.antlr.v4.tool.ErrorManager.format:Lorg/stringtemplate/v4/STGroup;
ldc "message"
invokevirtual org.stringtemplate.v4.STGroup.isDefined:(Ljava/lang/String;)Z
ifne 7
5: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Format template 'message' not found in "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.antlr.v4.tool.ErrorManager.formatName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
6: iconst_0
istore 1
7: StackMap locals:
StackMap stack:
aload 0
getfield org.antlr.v4.tool.ErrorManager.format:Lorg/stringtemplate/v4/STGroup;
ldc "report"
invokevirtual org.stringtemplate.v4.STGroup.isDefined:(Ljava/lang/String;)Z
ifne 10
8: getstatic java.lang.System.err:Ljava/io/PrintStream;
new java.lang.StringBuilder
dup
ldc "Format template 'report' not found in "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 0
getfield org.antlr.v4.tool.ErrorManager.formatName:Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
9: iconst_0
istore 1
10: StackMap locals:
StackMap stack:
iload 1
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/antlr/v4/tool/ErrorManager;
1 11 1 ok Z
static void rawError(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: getstatic java.lang.System.err:Ljava/io/PrintStream;
aload 0
invokevirtual java.io.PrintStream.println:(Ljava/lang/String;)V
1: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 msg Ljava/lang/String;
MethodParameters:
Name Flags
msg
static void rawError(java.lang.String, java.lang.Throwable);
descriptor: (Ljava/lang/String;Ljava/lang/Throwable;)V
flags: (0x0008) ACC_STATIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
invokestatic org.antlr.v4.tool.ErrorManager.rawError:(Ljava/lang/String;)V
1: aload 1
getstatic java.lang.System.err:Ljava/io/PrintStream;
invokevirtual java.lang.Throwable.printStackTrace:(Ljava/io/PrintStream;)V
2: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 msg Ljava/lang/String;
0 3 1 e Ljava/lang/Throwable;
MethodParameters:
Name Flags
msg
e
public void panic(org.antlr.v4.tool.ErrorType, java.lang.Object[]);
descriptor: (Lorg/antlr/v4/tool/ErrorType;[Ljava/lang/Object;)V
flags: (0x0081) ACC_PUBLIC, ACC_VARARGS
Code:
stack=4, locals=6, args_size=3
start local 0 start local 1 start local 2 0: new org.antlr.v4.tool.ToolMessage
dup
aload 1
aload 2
invokespecial org.antlr.v4.tool.ToolMessage.<init>:(Lorg/antlr/v4/tool/ErrorType;[Ljava/lang/Object;)V
astore 3
start local 3 1: aload 0
aload 3
invokevirtual org.antlr.v4.tool.ErrorManager.getMessageTemplate:(Lorg/antlr/v4/tool/ANTLRMessage;)Lorg/stringtemplate/v4/ST;
astore 4
start local 4 2: aload 4
invokevirtual org.stringtemplate.v4.ST.render:()Ljava/lang/String;
astore 5
start local 5 3: aload 0
invokevirtual org.antlr.v4.tool.ErrorManager.formatWantsSingleLineMessage:()Z
ifeq 5
4: aload 5
bipush 10
bipush 32
invokevirtual java.lang.String.replace:(CC)Ljava/lang/String;
astore 5
5: StackMap locals: org.antlr.v4.tool.ToolMessage org.stringtemplate.v4.ST java.lang.String
StackMap stack:
aload 5
invokestatic org.antlr.v4.tool.ErrorManager.panic:(Ljava/lang/String;)V
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 Lorg/antlr/v4/tool/ErrorManager;
0 7 1 errorType Lorg/antlr/v4/tool/ErrorType;
0 7 2 args [Ljava/lang/Object;
1 7 3 msg Lorg/antlr/v4/tool/ToolMessage;
2 7 4 msgST Lorg/stringtemplate/v4/ST;
3 7 5 outputMsg Ljava/lang/String;
MethodParameters:
Name Flags
errorType
args
public static void panic(java.lang.String);
descriptor: (Ljava/lang/String;)V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokestatic org.antlr.v4.tool.ErrorManager.rawError:(Ljava/lang/String;)V
1: invokestatic org.antlr.v4.tool.ErrorManager.panic:()V
2: return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 msg Ljava/lang/String;
MethodParameters:
Name Flags
msg
public static void panic();
descriptor: ()V
flags: (0x0009) ACC_PUBLIC, ACC_STATIC
Code:
stack=3, locals=0, args_size=0
0: new java.lang.Error
dup
ldc "ANTLR ErrorManager panic"
invokespecial java.lang.Error.<init>:(Ljava/lang/String;)V
athrow
LocalVariableTable:
Start End Slot Name Signature
static int[] $SWITCH_TABLE$org$antlr$v4$tool$ErrorSeverity();
descriptor: ()[I
flags: (0x1008) ACC_STATIC, ACC_SYNTHETIC
Code:
stack=3, locals=1, args_size=0
0: getstatic org.antlr.v4.tool.ErrorManager.$SWITCH_TABLE$org$antlr$v4$tool$ErrorSeverity:[I
dup
ifnull 1
areturn
StackMap locals:
StackMap stack: int[]
1: pop
invokestatic org.antlr.v4.tool.ErrorSeverity.values:()[Lorg/antlr/v4/tool/ErrorSeverity;
arraylength
newarray 10
astore 0
2: aload 0
getstatic org.antlr.v4.tool.ErrorSeverity.ERROR:Lorg/antlr/v4/tool/ErrorSeverity;
invokevirtual org.antlr.v4.tool.ErrorSeverity.ordinal:()I
iconst_4
iastore
3: goto 5
StackMap locals: int[]
StackMap stack: java.lang.NoSuchFieldError
4: pop
StackMap locals:
StackMap stack:
5: aload 0
getstatic org.antlr.v4.tool.ErrorSeverity.ERROR_ONE_OFF:Lorg/antlr/v4/tool/ErrorSeverity;
invokevirtual org.antlr.v4.tool.ErrorSeverity.ordinal:()I
iconst_5
iastore
6: goto 8
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
7: pop
StackMap locals:
StackMap stack:
8: aload 0
getstatic org.antlr.v4.tool.ErrorSeverity.FATAL:Lorg/antlr/v4/tool/ErrorSeverity;
invokevirtual org.antlr.v4.tool.ErrorSeverity.ordinal:()I
bipush 6
iastore
9: goto 11
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
10: pop
StackMap locals:
StackMap stack:
11: aload 0
getstatic org.antlr.v4.tool.ErrorSeverity.INFO:Lorg/antlr/v4/tool/ErrorSeverity;
invokevirtual org.antlr.v4.tool.ErrorSeverity.ordinal:()I
iconst_1
iastore
12: goto 14
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
13: pop
StackMap locals:
StackMap stack:
14: aload 0
getstatic org.antlr.v4.tool.ErrorSeverity.WARNING:Lorg/antlr/v4/tool/ErrorSeverity;
invokevirtual org.antlr.v4.tool.ErrorSeverity.ordinal:()I
iconst_2
iastore
15: goto 17
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
16: pop
StackMap locals:
StackMap stack:
17: aload 0
getstatic org.antlr.v4.tool.ErrorSeverity.WARNING_ONE_OFF:Lorg/antlr/v4/tool/ErrorSeverity;
invokevirtual org.antlr.v4.tool.ErrorSeverity.ordinal:()I
iconst_3
iastore
18: goto 20
StackMap locals:
StackMap stack: java.lang.NoSuchFieldError
19: pop
StackMap locals:
StackMap stack:
20: aload 0
dup
putstatic org.antlr.v4.tool.ErrorManager.$SWITCH_TABLE$org$antlr$v4$tool$ErrorSeverity:[I
areturn
LocalVariableTable:
Start End Slot Name Signature
Exception table:
from to target type
2 3 4 Class java.lang.NoSuchFieldError
5 6 7 Class java.lang.NoSuchFieldError
8 9 10 Class java.lang.NoSuchFieldError
11 12 13 Class java.lang.NoSuchFieldError
14 15 16 Class java.lang.NoSuchFieldError
17 18 19 Class java.lang.NoSuchFieldError
}
SourceFile: "ErrorManager.java"