public class org.antlr.v4.parse.TokenVocabParser
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.antlr.v4.parse.TokenVocabParser
super_class: java.lang.Object
{
protected final org.antlr.v4.tool.Grammar g;
descriptor: Lorg/antlr/v4/tool/Grammar;
flags: (0x0014) ACC_PROTECTED, ACC_FINAL
public void <init>(org.antlr.v4.tool.Grammar);
descriptor: (Lorg/antlr/v4/tool/Grammar;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 // org.antlr.v4.parse.TokenVocabParser this
start local 1 // org.antlr.v4.tool.Grammar g
0: .line 31
aload 0 /* this */
invokespecial java.lang.Object.<init>:()V
1: .line 32
aload 0 /* this */
aload 1 /* g */
putfield org.antlr.v4.parse.TokenVocabParser.g:Lorg/antlr/v4/tool/Grammar;
2: .line 33
return
end local 1 // org.antlr.v4.tool.Grammar g
end local 0 // org.antlr.v4.parse.TokenVocabParser this
LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/antlr/v4/parse/TokenVocabParser;
0 3 1 g Lorg/antlr/v4/tool/Grammar;
MethodParameters:
Name Flags
g
public java.util.Map<java.lang.String, java.lang.Integer> load();
descriptor: ()Ljava/util/Map;
flags: (0x0001) ACC_PUBLIC
Code:
stack=8, locals=18, args_size=1
start local 0 // org.antlr.v4.parse.TokenVocabParser this
0: .line 37
new java.util.LinkedHashMap
dup
invokespecial java.util.LinkedHashMap.<init>:()V
astore 1 /* tokens */
start local 1 // java.util.Map tokens
1: .line 38
iconst_m1
istore 2 /* maxTokenType */
start local 2 // int maxTokenType
2: .line 39
aload 0 /* this */
invokevirtual org.antlr.v4.parse.TokenVocabParser.getImportedVocabFile:()Ljava/io/File;
astore 3 /* fullFile */
start local 3 // java.io.File fullFile
3: .line 40
aconst_null
astore 4 /* fis */
start local 4 // java.io.FileInputStream fis
4: .line 41
aconst_null
astore 5 /* br */
start local 5 // java.io.BufferedReader br
5: .line 42
aload 0 /* this */
getfield org.antlr.v4.parse.TokenVocabParser.g:Lorg/antlr/v4/tool/Grammar;
getfield org.antlr.v4.tool.Grammar.tool:Lorg/antlr/v4/Tool;
astore 6 /* tool */
start local 6 // org.antlr.v4.Tool tool
6: .line 43
aload 0 /* this */
getfield org.antlr.v4.parse.TokenVocabParser.g:Lorg/antlr/v4/tool/Grammar;
ldc "tokenVocab"
invokevirtual org.antlr.v4.tool.Grammar.getOptionString:(Ljava/lang/String;)Ljava/lang/String;
astore 7 /* vocabName */
start local 7 // java.lang.String vocabName
7: .line 45
ldc "([^\n]+?)[ \\t]*?=[ \\t]*?([0-9]+)"
invokestatic java.util.regex.Pattern.compile:(Ljava/lang/String;)Ljava/util/regex/Pattern;
astore 8 /* tokenDefPattern */
start local 8 // java.util.regex.Pattern tokenDefPattern
8: .line 46
new java.io.FileInputStream
dup
aload 3 /* fullFile */
invokespecial java.io.FileInputStream.<init>:(Ljava/io/File;)V
astore 4 /* fis */
9: .line 48
aload 6 /* tool */
getfield org.antlr.v4.Tool.grammarEncoding:Ljava/lang/String;
ifnull 12
10: .line 49
new java.io.InputStreamReader
dup
aload 4 /* fis */
aload 6 /* tool */
getfield org.antlr.v4.Tool.grammarEncoding:Ljava/lang/String;
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;Ljava/lang/String;)V
astore 9 /* isr */
start local 9 // java.io.InputStreamReader isr
11: .line 50
goto 13
end local 9 // java.io.InputStreamReader isr
12: .line 52
StackMap locals: org.antlr.v4.parse.TokenVocabParser java.util.Map int java.io.File java.io.FileInputStream java.io.BufferedReader org.antlr.v4.Tool java.lang.String java.util.regex.Pattern
StackMap stack:
new java.io.InputStreamReader
dup
aload 4 /* fis */
invokespecial java.io.InputStreamReader.<init>:(Ljava/io/InputStream;)V
astore 9 /* isr */
start local 9 // java.io.InputStreamReader isr
13: .line 55
StackMap locals: java.io.InputStreamReader
StackMap stack:
new java.io.BufferedReader
dup
aload 9 /* isr */
invokespecial java.io.BufferedReader.<init>:(Ljava/io/Reader;)V
astore 5 /* br */
14: .line 56
aload 5 /* br */
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 10 /* tokenDef */
start local 10 // java.lang.String tokenDef
15: .line 57
iconst_1
istore 11 /* lineNum */
start local 11 // int lineNum
16: .line 58
goto 42
17: .line 59
StackMap locals: java.lang.String int
StackMap stack:
aload 8 /* tokenDefPattern */
aload 10 /* tokenDef */
invokevirtual java.util.regex.Pattern.matcher:(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
astore 12 /* matcher */
start local 12 // java.util.regex.Matcher matcher
18: .line 60
aload 12 /* matcher */
invokevirtual java.util.regex.Matcher.find:()Z
ifeq 35
19: .line 61
aload 12 /* matcher */
iconst_1
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 13 /* tokenID */
start local 13 // java.lang.String tokenID
20: .line 62
aload 12 /* matcher */
iconst_2
invokevirtual java.util.regex.Matcher.group:(I)Ljava/lang/String;
astore 14 /* tokenTypeS */
start local 14 // java.lang.String tokenTypeS
21: .line 65
aload 14 /* tokenTypeS */
invokestatic java.lang.Integer.valueOf:(Ljava/lang/String;)Ljava/lang/Integer;
invokevirtual java.lang.Integer.intValue:()I
istore 15 /* tokenType */
start local 15 // int tokenType
22: .line 66
goto 30
end local 15 // int tokenType
23: .line 67
StackMap locals: org.antlr.v4.parse.TokenVocabParser java.util.Map int java.io.File java.io.FileInputStream java.io.BufferedReader org.antlr.v4.Tool java.lang.String java.util.regex.Pattern java.io.InputStreamReader java.lang.String int java.util.regex.Matcher java.lang.String java.lang.String
StackMap stack: java.lang.NumberFormatException
pop
24: .line 68
aload 6 /* tool */
getfield org.antlr.v4.Tool.errMgr:Lorg/antlr/v4/tool/ErrorManager;
getstatic org.antlr.v4.tool.ErrorType.TOKENS_FILE_SYNTAX_ERROR:Lorg/antlr/v4/tool/ErrorType;
iconst_3
anewarray java.lang.Object
dup
iconst_0
25: .line 69
new java.lang.StringBuilder
dup
aload 7 /* vocabName */
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".tokens"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
dup
iconst_1
26: .line 70
new java.lang.StringBuilder
dup
ldc " bad token type: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 14 /* tokenTypeS */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
dup
iconst_2
27: .line 71
iload 11 /* lineNum */
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
28: .line 68
invokevirtual org.antlr.v4.tool.ErrorManager.toolError:(Lorg/antlr/v4/tool/ErrorType;[Ljava/lang/Object;)V
29: .line 72
iconst_0
istore 15 /* tokenType */
start local 15 // int tokenType
30: .line 74
StackMap locals: int
StackMap stack:
aload 6 /* tool */
ldc "grammar"
new java.lang.StringBuilder
dup
ldc "import "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 13 /* tokenID */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
ldc "="
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
iload 15 /* tokenType */
invokevirtual java.lang.StringBuilder.append:(I)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokevirtual org.antlr.v4.Tool.log:(Ljava/lang/String;Ljava/lang/String;)V
31: .line 75
aload 1 /* tokens */
aload 13 /* tokenID */
iload 15 /* tokenType */
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
invokeinterface java.util.Map.put:(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
pop
32: .line 76
iload 2 /* maxTokenType */
iload 15 /* tokenType */
invokestatic java.lang.Math.max:(II)I
istore 2 /* maxTokenType */
33: .line 77
iinc 11 /* lineNum */ 1
end local 15 // int tokenType
end local 14 // java.lang.String tokenTypeS
end local 13 // java.lang.String tokenID
34: .line 78
goto 41
35: .line 80
StackMap locals:
StackMap stack:
aload 10 /* tokenDef */
invokevirtual java.lang.String.length:()I
ifle 41
36: .line 81
aload 6 /* tool */
getfield org.antlr.v4.Tool.errMgr:Lorg/antlr/v4/tool/ErrorManager;
getstatic org.antlr.v4.tool.ErrorType.TOKENS_FILE_SYNTAX_ERROR:Lorg/antlr/v4/tool/ErrorType;
iconst_3
anewarray java.lang.Object
dup
iconst_0
37: .line 82
new java.lang.StringBuilder
dup
aload 7 /* vocabName */
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".tokens"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
dup
iconst_1
38: .line 83
new java.lang.StringBuilder
dup
ldc " bad token def: "
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
aload 10 /* tokenDef */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
aastore
dup
iconst_2
39: .line 84
iload 11 /* lineNum */
invokestatic java.lang.Integer.valueOf:(I)Ljava/lang/Integer;
aastore
40: .line 81
invokevirtual org.antlr.v4.tool.ErrorManager.toolError:(Lorg/antlr/v4/tool/ErrorType;[Ljava/lang/Object;)V
41: .line 87
StackMap locals:
StackMap stack:
aload 5 /* br */
invokevirtual java.io.BufferedReader.readLine:()Ljava/lang/String;
astore 10 /* tokenDef */
end local 12 // java.util.regex.Matcher matcher
42: .line 58
StackMap locals:
StackMap stack:
aload 10 /* tokenDef */
ifnonnull 17
end local 11 // int lineNum
end local 10 // java.lang.String tokenDef
end local 9 // java.io.InputStreamReader isr
end local 8 // java.util.regex.Pattern tokenDefPattern
43: .line 89
goto 92
44: .line 90
StackMap locals: org.antlr.v4.parse.TokenVocabParser java.util.Map int java.io.File java.io.FileInputStream java.io.BufferedReader org.antlr.v4.Tool java.lang.String
StackMap stack: java.io.FileNotFoundException
pop
45: .line 91
aload 0 /* this */
getfield org.antlr.v4.parse.TokenVocabParser.g:Lorg/antlr/v4/tool/Grammar;
getfield org.antlr.v4.tool.Grammar.ast:Lorg/antlr/v4/tool/ast/GrammarRootAST;
ldc "tokenVocab"
invokevirtual org.antlr.v4.tool.ast.GrammarRootAST.getOptionAST:(Ljava/lang/String;)Lorg/antlr/v4/tool/ast/GrammarAST;
astore 8 /* inTree */
start local 8 // org.antlr.v4.tool.ast.GrammarAST inTree
46: .line 92
aload 8 /* inTree */
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getToken:()Lorg/antlr/runtime/Token;
invokeinterface org.antlr.runtime.Token.getText:()Ljava/lang/String;
astore 9 /* inTreeValue */
start local 9 // java.lang.String inTreeValue
47: .line 93
aload 7 /* vocabName */
aload 9 /* inTreeValue */
invokevirtual java.lang.String.equals:(Ljava/lang/Object;)Z
ifeq 54
48: .line 94
aload 6 /* tool */
getfield org.antlr.v4.Tool.errMgr:Lorg/antlr/v4/tool/ErrorManager;
getstatic org.antlr.v4.tool.ErrorType.CANNOT_FIND_TOKENS_FILE_REFD_IN_GRAMMAR:Lorg/antlr/v4/tool/ErrorType;
49: .line 95
aload 0 /* this */
getfield org.antlr.v4.parse.TokenVocabParser.g:Lorg/antlr/v4/tool/Grammar;
getfield org.antlr.v4.tool.Grammar.fileName:Ljava/lang/String;
50: .line 96
aload 8 /* inTree */
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getToken:()Lorg/antlr/runtime/Token;
iconst_1
anewarray java.lang.Object
dup
iconst_0
51: .line 97
aload 3 /* fullFile */
aastore
52: .line 94
invokevirtual org.antlr.v4.tool.ErrorManager.grammarError:(Lorg/antlr/v4/tool/ErrorType;Ljava/lang/String;Lorg/antlr/runtime/Token;[Ljava/lang/Object;)V
53: .line 98
goto 58
54: .line 100
StackMap locals: org.antlr.v4.tool.ast.GrammarAST java.lang.String
StackMap stack:
aload 6 /* tool */
getfield org.antlr.v4.Tool.errMgr:Lorg/antlr/v4/tool/ErrorManager;
getstatic org.antlr.v4.tool.ErrorType.CANNOT_FIND_TOKENS_FILE_GIVEN_ON_CMDLINE:Lorg/antlr/v4/tool/ErrorType;
iconst_2
anewarray java.lang.Object
dup
iconst_0
55: .line 101
aload 3 /* fullFile */
aastore
dup
iconst_1
56: .line 102
aload 0 /* this */
getfield org.antlr.v4.parse.TokenVocabParser.g:Lorg/antlr/v4/tool/Grammar;
getfield org.antlr.v4.tool.Grammar.name:Ljava/lang/String;
aastore
57: .line 100
invokevirtual org.antlr.v4.tool.ErrorManager.toolError:(Lorg/antlr/v4/tool/ErrorType;[Ljava/lang/Object;)V
end local 9 // java.lang.String inTreeValue
end local 8 // org.antlr.v4.tool.ast.GrammarAST inTree
58: .line 113
StackMap locals:
StackMap stack:
aload 5 /* br */
ifnull 100
aload 5 /* br */
invokevirtual java.io.BufferedReader.close:()V
59: .line 114
goto 100
60: .line 115
StackMap locals:
StackMap stack: java.io.IOException
astore 17 /* ioe */
start local 17 // java.io.IOException ioe
61: .line 116
aload 6 /* tool */
getfield org.antlr.v4.Tool.errMgr:Lorg/antlr/v4/tool/ErrorManager;
getstatic org.antlr.v4.tool.ErrorType.ERROR_READING_TOKENS_FILE:Lorg/antlr/v4/tool/ErrorType;
62: .line 117
aload 17 /* ioe */
iconst_2
anewarray java.lang.Object
dup
iconst_0
63: .line 118
aload 3 /* fullFile */
aastore
dup
iconst_1
64: .line 119
aload 17 /* ioe */
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aastore
65: .line 116
invokevirtual org.antlr.v4.tool.ErrorManager.toolError:(Lorg/antlr/v4/tool/ErrorType;Ljava/lang/Throwable;[Ljava/lang/Object;)V
end local 17 // java.io.IOException ioe
66: goto 100
67: .line 105
StackMap locals:
StackMap stack: java.lang.Exception
astore 8 /* e */
start local 8 // java.lang.Exception e
68: .line 106
aload 6 /* tool */
getfield org.antlr.v4.Tool.errMgr:Lorg/antlr/v4/tool/ErrorManager;
getstatic org.antlr.v4.tool.ErrorType.ERROR_READING_TOKENS_FILE:Lorg/antlr/v4/tool/ErrorType;
69: .line 107
aload 8 /* e */
iconst_2
anewarray java.lang.Object
dup
iconst_0
70: .line 108
aload 3 /* fullFile */
aastore
dup
iconst_1
71: .line 109
aload 8 /* e */
invokevirtual java.lang.Exception.getMessage:()Ljava/lang/String;
aastore
72: .line 106
invokevirtual org.antlr.v4.tool.ErrorManager.toolError:(Lorg/antlr/v4/tool/ErrorType;Ljava/lang/Throwable;[Ljava/lang/Object;)V
end local 8 // java.lang.Exception e
73: .line 113
aload 5 /* br */
ifnull 100
aload 5 /* br */
invokevirtual java.io.BufferedReader.close:()V
74: .line 114
goto 100
75: .line 115
StackMap locals:
StackMap stack: java.io.IOException
astore 17 /* ioe */
start local 17 // java.io.IOException ioe
76: .line 116
aload 6 /* tool */
getfield org.antlr.v4.Tool.errMgr:Lorg/antlr/v4/tool/ErrorManager;
getstatic org.antlr.v4.tool.ErrorType.ERROR_READING_TOKENS_FILE:Lorg/antlr/v4/tool/ErrorType;
77: .line 117
aload 17 /* ioe */
iconst_2
anewarray java.lang.Object
dup
iconst_0
78: .line 118
aload 3 /* fullFile */
aastore
dup
iconst_1
79: .line 119
aload 17 /* ioe */
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aastore
80: .line 116
invokevirtual org.antlr.v4.tool.ErrorManager.toolError:(Lorg/antlr/v4/tool/ErrorType;Ljava/lang/Throwable;[Ljava/lang/Object;)V
end local 17 // java.io.IOException ioe
81: goto 100
82: .line 111
StackMap locals:
StackMap stack: java.lang.Throwable
astore 16
83: .line 113
aload 5 /* br */
ifnull 91
aload 5 /* br */
invokevirtual java.io.BufferedReader.close:()V
84: .line 114
goto 91
85: .line 115
StackMap locals: org.antlr.v4.parse.TokenVocabParser java.util.Map int java.io.File java.io.FileInputStream java.io.BufferedReader org.antlr.v4.Tool java.lang.String top top top top top top top top java.lang.Throwable
StackMap stack: java.io.IOException
astore 17 /* ioe */
start local 17 // java.io.IOException ioe
86: .line 116
aload 6 /* tool */
getfield org.antlr.v4.Tool.errMgr:Lorg/antlr/v4/tool/ErrorManager;
getstatic org.antlr.v4.tool.ErrorType.ERROR_READING_TOKENS_FILE:Lorg/antlr/v4/tool/ErrorType;
87: .line 117
aload 17 /* ioe */
iconst_2
anewarray java.lang.Object
dup
iconst_0
88: .line 118
aload 3 /* fullFile */
aastore
dup
iconst_1
89: .line 119
aload 17 /* ioe */
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aastore
90: .line 116
invokevirtual org.antlr.v4.tool.ErrorManager.toolError:(Lorg/antlr/v4/tool/ErrorType;Ljava/lang/Throwable;[Ljava/lang/Object;)V
end local 17 // java.io.IOException ioe
91: .line 121
StackMap locals:
StackMap stack:
aload 16
athrow
92: .line 113
StackMap locals: org.antlr.v4.parse.TokenVocabParser java.util.Map int java.io.File java.io.FileInputStream java.io.BufferedReader org.antlr.v4.Tool java.lang.String
StackMap stack:
aload 5 /* br */
ifnull 100
aload 5 /* br */
invokevirtual java.io.BufferedReader.close:()V
93: .line 114
goto 100
94: .line 115
StackMap locals:
StackMap stack: java.io.IOException
astore 17 /* ioe */
start local 17 // java.io.IOException ioe
95: .line 116
aload 6 /* tool */
getfield org.antlr.v4.Tool.errMgr:Lorg/antlr/v4/tool/ErrorManager;
getstatic org.antlr.v4.tool.ErrorType.ERROR_READING_TOKENS_FILE:Lorg/antlr/v4/tool/ErrorType;
96: .line 117
aload 17 /* ioe */
iconst_2
anewarray java.lang.Object
dup
iconst_0
97: .line 118
aload 3 /* fullFile */
aastore
dup
iconst_1
98: .line 119
aload 17 /* ioe */
invokevirtual java.io.IOException.getMessage:()Ljava/lang/String;
aastore
99: .line 116
invokevirtual org.antlr.v4.tool.ErrorManager.toolError:(Lorg/antlr/v4/tool/ErrorType;Ljava/lang/Throwable;[Ljava/lang/Object;)V
end local 17 // java.io.IOException ioe
100: .line 122
StackMap locals:
StackMap stack:
aload 1 /* tokens */
areturn
end local 7 // java.lang.String vocabName
end local 6 // org.antlr.v4.Tool tool
end local 5 // java.io.BufferedReader br
end local 4 // java.io.FileInputStream fis
end local 3 // java.io.File fullFile
end local 2 // int maxTokenType
end local 1 // java.util.Map tokens
end local 0 // org.antlr.v4.parse.TokenVocabParser this
LocalVariableTable:
Start End Slot Name Signature
0 101 0 this Lorg/antlr/v4/parse/TokenVocabParser;
1 101 1 tokens Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
2 101 2 maxTokenType I
3 101 3 fullFile Ljava/io/File;
4 101 4 fis Ljava/io/FileInputStream;
5 101 5 br Ljava/io/BufferedReader;
6 101 6 tool Lorg/antlr/v4/Tool;
7 101 7 vocabName Ljava/lang/String;
8 43 8 tokenDefPattern Ljava/util/regex/Pattern;
11 12 9 isr Ljava/io/InputStreamReader;
13 43 9 isr Ljava/io/InputStreamReader;
15 43 10 tokenDef Ljava/lang/String;
16 43 11 lineNum I
18 42 12 matcher Ljava/util/regex/Matcher;
20 34 13 tokenID Ljava/lang/String;
21 34 14 tokenTypeS Ljava/lang/String;
22 23 15 tokenType I
30 34 15 tokenType I
46 58 8 inTree Lorg/antlr/v4/tool/ast/GrammarAST;
47 58 9 inTreeValue Ljava/lang/String;
68 73 8 e Ljava/lang/Exception;
61 66 17 ioe Ljava/io/IOException;
76 81 17 ioe Ljava/io/IOException;
86 91 17 ioe Ljava/io/IOException;
95 100 17 ioe Ljava/io/IOException;
Exception table:
from to target type
21 22 23 Class java.lang.NumberFormatException
7 43 44 Class java.io.FileNotFoundException
58 59 60 Class java.io.IOException
7 43 67 Class java.lang.Exception
73 74 75 Class java.io.IOException
7 58 82 any
67 73 82 any
83 84 85 Class java.io.IOException
92 93 94 Class java.io.IOException
Signature: ()Ljava/util/Map<Ljava/lang/String;Ljava/lang/Integer;>;
public java.io.File getImportedVocabFile();
descriptor: ()Ljava/io/File;
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=4, args_size=1
start local 0 // org.antlr.v4.parse.TokenVocabParser this
0: .line 135
aload 0 /* this */
getfield org.antlr.v4.parse.TokenVocabParser.g:Lorg/antlr/v4/tool/Grammar;
ldc "tokenVocab"
invokevirtual org.antlr.v4.tool.Grammar.getOptionString:(Ljava/lang/String;)Ljava/lang/String;
astore 1 /* vocabName */
start local 1 // java.lang.String vocabName
1: .line 136
new java.io.File
dup
aload 0 /* this */
getfield org.antlr.v4.parse.TokenVocabParser.g:Lorg/antlr/v4/tool/Grammar;
getfield org.antlr.v4.tool.Grammar.tool:Lorg/antlr/v4/Tool;
getfield org.antlr.v4.Tool.libDirectory:Ljava/lang/String;
2: .line 137
new java.lang.StringBuilder
dup
getstatic java.io.File.separator:Ljava/lang/String;
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
3: .line 138
aload 1 /* vocabName */
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
4: .line 139
ldc ".tokens"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
5: .line 137
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
6: .line 136
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 2 /* f */
start local 2 // java.io.File f
7: .line 140
aload 2 /* f */
invokevirtual java.io.File.exists:()Z
ifeq 9
8: .line 141
aload 2 /* f */
areturn
9: .line 148
StackMap locals: java.lang.String java.io.File
StackMap stack:
new java.io.File
dup
aload 0 /* this */
getfield org.antlr.v4.parse.TokenVocabParser.g:Lorg/antlr/v4/tool/Grammar;
getfield org.antlr.v4.tool.Grammar.tool:Lorg/antlr/v4/Tool;
getfield org.antlr.v4.Tool.outputDirectory:Ljava/lang/String;
new java.lang.StringBuilder
dup
aload 1 /* vocabName */
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".tokens"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
astore 2 /* f */
10: .line 149
aload 2 /* f */
invokevirtual java.io.File.exists:()Z
ifeq 12
11: .line 150
aload 2 /* f */
areturn
12: .line 156
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield org.antlr.v4.parse.TokenVocabParser.g:Lorg/antlr/v4/tool/Grammar;
getfield org.antlr.v4.tool.Grammar.fileName:Ljava/lang/String;
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.lastIndexOf:(I)I
iconst_m1
if_icmpne 15
13: .line 160
ldc "."
astore 3 /* fileDirectory */
start local 3 // java.lang.String fileDirectory
14: .line 161
goto 16
end local 3 // java.lang.String fileDirectory
15: .line 163
StackMap locals:
StackMap stack:
aload 0 /* this */
getfield org.antlr.v4.parse.TokenVocabParser.g:Lorg/antlr/v4/tool/Grammar;
getfield org.antlr.v4.tool.Grammar.fileName:Ljava/lang/String;
iconst_0
aload 0 /* this */
getfield org.antlr.v4.parse.TokenVocabParser.g:Lorg/antlr/v4/tool/Grammar;
getfield org.antlr.v4.tool.Grammar.fileName:Ljava/lang/String;
getstatic java.io.File.separatorChar:C
invokevirtual java.lang.String.lastIndexOf:(I)I
invokevirtual java.lang.String.substring:(II)Ljava/lang/String;
astore 3 /* fileDirectory */
start local 3 // java.lang.String fileDirectory
16: .line 165
StackMap locals: java.lang.String
StackMap stack:
new java.io.File
dup
aload 3 /* fileDirectory */
new java.lang.StringBuilder
dup
aload 1 /* vocabName */
invokestatic java.lang.String.valueOf:(Ljava/lang/Object;)Ljava/lang/String;
invokespecial java.lang.StringBuilder.<init>:(Ljava/lang/String;)V
ldc ".tokens"
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
invokespecial java.io.File.<init>:(Ljava/lang/String;Ljava/lang/String;)V
areturn
end local 3 // java.lang.String fileDirectory
end local 2 // java.io.File f
end local 1 // java.lang.String vocabName
end local 0 // org.antlr.v4.parse.TokenVocabParser this
LocalVariableTable:
Start End Slot Name Signature
0 17 0 this Lorg/antlr/v4/parse/TokenVocabParser;
1 17 1 vocabName Ljava/lang/String;
7 17 2 f Ljava/io/File;
14 15 3 fileDirectory Ljava/lang/String;
16 17 3 fileDirectory Ljava/lang/String;
}
SourceFile: "TokenVocabParser.java"