public class org.antlr.v4.tool.ast.GrammarAST extends org.antlr.runtime.tree.CommonTree
minor version: 0
major version: 59
flags: flags: (0x0021) ACC_PUBLIC, ACC_SUPER
this_class: org.antlr.v4.tool.ast.GrammarAST
super_class: org.antlr.runtime.tree.CommonTree
{
public org.antlr.v4.tool.Grammar g;
descriptor: Lorg/antlr/v4/tool/Grammar;
flags: (0x0001) ACC_PUBLIC
public org.antlr.v4.runtime.atn.ATNState atnState;
descriptor: Lorg/antlr/v4/runtime/atn/ATNState;
flags: (0x0001) ACC_PUBLIC
public java.lang.String textOverride;
descriptor: Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
public void <init>();
descriptor: ()V
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
invokespecial org.antlr.runtime.tree.CommonTree.<init>:()V
return
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
public void <init>(org.antlr.runtime.Token);
descriptor: (Lorg/antlr/runtime/Token;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.antlr.runtime.tree.CommonTree.<init>:(Lorg/antlr/runtime/Token;)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 1 1 t Lorg/antlr/runtime/Token;
MethodParameters:
Name Flags
t
public void <init>(org.antlr.v4.tool.ast.GrammarAST);
descriptor: (Lorg/antlr/v4/tool/ast/GrammarAST;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
aload 1
invokespecial org.antlr.runtime.tree.CommonTree.<init>:(Lorg/antlr/runtime/tree/CommonTree;)V
1: aload 0
aload 1
getfield org.antlr.v4.tool.ast.GrammarAST.g:Lorg/antlr/v4/tool/Grammar;
putfield org.antlr.v4.tool.ast.GrammarAST.g:Lorg/antlr/v4/tool/Grammar;
2: aload 0
aload 1
getfield org.antlr.v4.tool.ast.GrammarAST.atnState:Lorg/antlr/v4/runtime/atn/ATNState;
putfield org.antlr.v4.tool.ast.GrammarAST.atnState:Lorg/antlr/v4/runtime/atn/ATNState;
3: aload 0
aload 1
getfield org.antlr.v4.tool.ast.GrammarAST.textOverride:Ljava/lang/String;
putfield org.antlr.v4.tool.ast.GrammarAST.textOverride:Ljava/lang/String;
4: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 5 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 5 1 node Lorg/antlr/v4/tool/ast/GrammarAST;
MethodParameters:
Name Flags
node
public void <init>(int);
descriptor: (I)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=6, locals=2, args_size=2
start local 0 start local 1 0: aload 0
new org.antlr.runtime.CommonToken
dup
iload 1
getstatic org.antlr.v4.parse.ANTLRParser.tokenNames:[Ljava/lang/String;
iload 1
aaload
invokespecial org.antlr.runtime.CommonToken.<init>:(ILjava/lang/String;)V
invokespecial org.antlr.runtime.tree.CommonTree.<init>:(Lorg/antlr/runtime/Token;)V
return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 1 1 type I
MethodParameters:
Name Flags
type
public void <init>(int, org.antlr.runtime.Token);
descriptor: (ILorg/antlr/runtime/Token;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=3, args_size=3
start local 0 start local 1 start local 2 0: aload 0
new org.antlr.runtime.CommonToken
dup
aload 2
invokespecial org.antlr.runtime.CommonToken.<init>:(Lorg/antlr/runtime/Token;)V
invokespecial org.antlr.v4.tool.ast.GrammarAST.<init>:(Lorg/antlr/runtime/Token;)V
1: aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.token:Lorg/antlr/runtime/Token;
iload 1
invokeinterface org.antlr.runtime.Token.setType:(I)V
2: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 3 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 3 1 type I
0 3 2 t Lorg/antlr/runtime/Token;
MethodParameters:
Name Flags
type
t
public void <init>(int, org.antlr.runtime.Token, java.lang.String);
descriptor: (ILorg/antlr/runtime/Token;Ljava/lang/String;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=4, args_size=4
start local 0 start local 1 start local 2 start local 3 0: aload 0
new org.antlr.runtime.CommonToken
dup
aload 2
invokespecial org.antlr.runtime.CommonToken.<init>:(Lorg/antlr/runtime/Token;)V
invokespecial org.antlr.v4.tool.ast.GrammarAST.<init>:(Lorg/antlr/runtime/Token;)V
1: aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.token:Lorg/antlr/runtime/Token;
iload 1
invokeinterface org.antlr.runtime.Token.setType:(I)V
2: aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.token:Lorg/antlr/runtime/Token;
aload 3
invokeinterface org.antlr.runtime.Token.setText:(Ljava/lang/String;)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/ast/GrammarAST;
0 4 1 type I
0 4 2 t Lorg/antlr/runtime/Token;
0 4 3 text Ljava/lang/String;
MethodParameters:
Name Flags
type
t
text
public org.antlr.v4.tool.ast.GrammarAST[] getChildrenAsArray();
descriptor: ()[Lorg/antlr/v4/tool/ast/GrammarAST;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=1, args_size=1
start local 0 0: aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.children:Ljava/util/List;
aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.children:Ljava/util/List;
invokeinterface java.util.List.size:()I
anewarray org.antlr.v4.tool.ast.GrammarAST
invokeinterface java.util.List.toArray:([Ljava/lang/Object;)[Ljava/lang/Object;
checkcast org.antlr.v4.tool.ast.GrammarAST[]
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
public java.util.List<org.antlr.v4.tool.ast.GrammarAST> getNodesWithType(int);
descriptor: (I)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 0
iload 1
invokestatic org.antlr.v4.runtime.misc.IntervalSet.of:(I)Lorg/antlr/v4/runtime/misc/IntervalSet;
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getNodesWithType:(Lorg/antlr/v4/runtime/misc/IntervalSet;)Ljava/util/List;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 1 1 ttype I
Signature: (I)Ljava/util/List<Lorg/antlr/v4/tool/ast/GrammarAST;>;
MethodParameters:
Name Flags
ttype
public java.util.List<org.antlr.v4.tool.ast.GrammarAST> getAllChildrenWithType(int);
descriptor: (I)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: iconst_0
istore 3
start local 3 2: goto 7
3: StackMap locals: java.util.List int
StackMap stack:
aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.children:Ljava/util/List;
iload 3
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.antlr.runtime.tree.Tree
astore 4
start local 4 4: aload 4
invokeinterface org.antlr.runtime.tree.Tree.getType:()I
iload 1
if_icmpne 6
5: aload 2
aload 4
checkcast org.antlr.v4.tool.ast.GrammarAST
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
end local 4 6: StackMap locals:
StackMap stack:
iinc 3 1
StackMap locals:
StackMap stack:
7: aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.children:Ljava/util/List;
ifnull 8
iload 3
aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.children:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 3
end local 3 8: StackMap locals:
StackMap stack:
aload 2
areturn
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 9 1 type I
1 9 2 nodes Ljava/util/List<Lorg/antlr/v4/tool/ast/GrammarAST;>;
2 8 3 i I
4 6 4 t Lorg/antlr/runtime/tree/Tree;
Signature: (I)Ljava/util/List<Lorg/antlr/v4/tool/ast/GrammarAST;>;
MethodParameters:
Name Flags
type
public java.util.List<org.antlr.v4.tool.ast.GrammarAST> getNodesWithType(org.antlr.v4.runtime.misc.IntervalSet);
descriptor: (Lorg/antlr/v4/runtime/misc/IntervalSet;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: new java.util.LinkedList
dup
invokespecial java.util.LinkedList.<init>:()V
astore 3
start local 3 2: aload 3
aload 0
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
3: goto 9
4: StackMap locals: java.util.List java.util.List
StackMap stack:
aload 3
iconst_0
invokeinterface java.util.List.remove:(I)Ljava/lang/Object;
checkcast org.antlr.v4.tool.ast.GrammarAST
astore 4
start local 4 5: aload 1
ifnull 6
aload 1
aload 4
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getType:()I
invokevirtual org.antlr.v4.runtime.misc.IntervalSet.contains:(I)Z
ifeq 7
StackMap locals: org.antlr.v4.tool.ast.GrammarAST
StackMap stack:
6: aload 2
aload 4
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
7: StackMap locals:
StackMap stack:
aload 4
getfield org.antlr.v4.tool.ast.GrammarAST.children:Ljava/util/List;
ifnull 9
8: aload 3
aload 4
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getChildrenAsArray:()[Lorg/antlr/v4/tool/ast/GrammarAST;
invokestatic java.util.Arrays.asList:([Ljava/lang/Object;)Ljava/util/List;
invokeinterface java.util.List.addAll:(Ljava/util/Collection;)Z
pop
end local 4 9: StackMap locals:
StackMap stack:
aload 3
invokeinterface java.util.List.isEmpty:()Z
ifeq 4
10: aload 2
areturn
end local 3 end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 11 1 types Lorg/antlr/v4/runtime/misc/IntervalSet;
1 11 2 nodes Ljava/util/List<Lorg/antlr/v4/tool/ast/GrammarAST;>;
2 11 3 work Ljava/util/List<Lorg/antlr/v4/tool/ast/GrammarAST;>;
5 9 4 t Lorg/antlr/v4/tool/ast/GrammarAST;
Signature: (Lorg/antlr/v4/runtime/misc/IntervalSet;)Ljava/util/List<Lorg/antlr/v4/tool/ast/GrammarAST;>;
MethodParameters:
Name Flags
types
public java.util.List<org.antlr.v4.tool.ast.GrammarAST> getNodesWithTypePreorderDFS(org.antlr.v4.runtime.misc.IntervalSet);
descriptor: (Lorg/antlr/v4/runtime/misc/IntervalSet;)Ljava/util/List;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=3, args_size=2
start local 0 start local 1 0: new java.util.ArrayList
dup
invokespecial java.util.ArrayList.<init>:()V
astore 2
start local 2 1: aload 0
aload 2
aload 1
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getNodesWithTypePreorderDFS_:(Ljava/util/List;Lorg/antlr/v4/runtime/misc/IntervalSet;)V
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/ast/GrammarAST;
0 3 1 types Lorg/antlr/v4/runtime/misc/IntervalSet;
1 3 2 nodes Ljava/util/ArrayList<Lorg/antlr/v4/tool/ast/GrammarAST;>;
Signature: (Lorg/antlr/v4/runtime/misc/IntervalSet;)Ljava/util/List<Lorg/antlr/v4/tool/ast/GrammarAST;>;
MethodParameters:
Name Flags
types
public void getNodesWithTypePreorderDFS_(java.util.List<org.antlr.v4.tool.ast.GrammarAST>, org.antlr.v4.runtime.misc.IntervalSet);
descriptor: (Ljava/util/List;Lorg/antlr/v4/runtime/misc/IntervalSet;)V
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=5, args_size=3
start local 0 start local 1 start local 2 0: aload 2
aload 0
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getType:()I
invokevirtual org.antlr.v4.runtime.misc.IntervalSet.contains:(I)Z
ifeq 1
aload 1
aload 0
invokeinterface java.util.List.add:(Ljava/lang/Object;)Z
pop
1: StackMap locals:
StackMap stack:
iconst_0
istore 3
start local 3 2: goto 6
3: StackMap locals: int
StackMap stack:
aload 0
iload 3
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getChild:(I)Lorg/antlr/runtime/tree/Tree;
checkcast org.antlr.v4.tool.ast.GrammarAST
astore 4
start local 4 4: aload 4
aload 1
aload 2
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getNodesWithTypePreorderDFS_:(Ljava/util/List;Lorg/antlr/v4/runtime/misc/IntervalSet;)V
end local 4 5: iinc 3 1
StackMap locals:
StackMap stack:
6: iload 3
aload 0
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getChildCount:()I
if_icmplt 3
end local 3 7: return
end local 2 end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 8 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 8 1 nodes Ljava/util/List<Lorg/antlr/v4/tool/ast/GrammarAST;>;
0 8 2 types Lorg/antlr/v4/runtime/misc/IntervalSet;
2 7 3 i I
4 5 4 child Lorg/antlr/v4/tool/ast/GrammarAST;
Signature: (Ljava/util/List<Lorg/antlr/v4/tool/ast/GrammarAST;>;Lorg/antlr/v4/runtime/misc/IntervalSet;)V
MethodParameters:
Name Flags
nodes
types
public org.antlr.v4.tool.ast.GrammarAST getNodeWithTokenIndex(int);
descriptor: (I)Lorg/antlr/v4/tool/ast/GrammarAST;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getToken:()Lorg/antlr/runtime/Token;
ifnull 2
aload 0
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getToken:()Lorg/antlr/runtime/Token;
invokeinterface org.antlr.runtime.Token.getTokenIndex:()I
iload 1
if_icmpne 2
1: aload 0
areturn
2: StackMap locals:
StackMap stack:
iconst_0
istore 2
start local 2 3: goto 9
4: StackMap locals: int
StackMap stack:
aload 0
iload 2
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getChild:(I)Lorg/antlr/runtime/tree/Tree;
checkcast org.antlr.v4.tool.ast.GrammarAST
astore 3
start local 3 5: aload 3
iload 1
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getNodeWithTokenIndex:(I)Lorg/antlr/v4/tool/ast/GrammarAST;
astore 4
start local 4 6: aload 4
ifnull 8
7: aload 4
areturn
end local 4 end local 3 8: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
9: iload 2
aload 0
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getChildCount:()I
if_icmplt 4
end local 2 10: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 11 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 11 1 index I
3 10 2 i I
5 8 3 child Lorg/antlr/v4/tool/ast/GrammarAST;
6 8 4 result Lorg/antlr/v4/tool/ast/GrammarAST;
MethodParameters:
Name Flags
index
public org.antlr.v4.tool.ast.AltAST getOutermostAltNode();
descriptor: ()Lorg/antlr/v4/tool/ast/AltAST;
flags: (0x0001) ACC_PUBLIC
Code:
stack=1, locals=1, args_size=1
start local 0 0: aload 0
instanceof org.antlr.v4.tool.ast.AltAST
ifeq 2
aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.parent:Lorg/antlr/runtime/tree/CommonTree;
getfield org.antlr.runtime.tree.CommonTree.parent:Lorg/antlr/runtime/tree/CommonTree;
instanceof org.antlr.v4.tool.ast.RuleAST
ifeq 2
1: aload 0
checkcast org.antlr.v4.tool.ast.AltAST
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.parent:Lorg/antlr/runtime/tree/CommonTree;
ifnull 3
aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.parent:Lorg/antlr/runtime/tree/CommonTree;
checkcast org.antlr.v4.tool.ast.GrammarAST
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getOutermostAltNode:()Lorg/antlr/v4/tool/ast/AltAST;
areturn
3: StackMap locals:
StackMap stack:
aconst_null
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 4 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
public java.lang.String getAltLabel();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=5, args_size=1
start local 0 0: aload 0
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getAncestors:()Ljava/util/List;
astore 1
start local 1 1: aload 1
ifnonnull 2
aconst_null
areturn
2: StackMap locals: java.util.List
StackMap stack:
aload 1
invokeinterface java.util.List.size:()I
iconst_1
isub
istore 2
start local 2 3: goto 11
4: StackMap locals: int
StackMap stack:
aload 1
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
checkcast org.antlr.v4.tool.ast.GrammarAST
astore 3
start local 3 5: aload 3
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getType:()I
bipush 74
if_icmpne 10
6: aload 3
checkcast org.antlr.v4.tool.ast.AltAST
astore 4
start local 4 7: aload 4
getfield org.antlr.v4.tool.ast.AltAST.altLabel:Lorg/antlr/v4/tool/ast/GrammarAST;
ifnull 8
aload 4
getfield org.antlr.v4.tool.ast.AltAST.altLabel:Lorg/antlr/v4/tool/ast/GrammarAST;
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getText:()Ljava/lang/String;
areturn
8: StackMap locals: org.antlr.v4.tool.ast.GrammarAST org.antlr.v4.tool.ast.AltAST
StackMap stack:
aload 4
getfield org.antlr.v4.tool.ast.AltAST.leftRecursiveAltInfo:Lorg/antlr/v4/analysis/LeftRecursiveRuleAltInfo;
ifnull 10
9: aload 4
getfield org.antlr.v4.tool.ast.AltAST.leftRecursiveAltInfo:Lorg/antlr/v4/analysis/LeftRecursiveRuleAltInfo;
getfield org.antlr.v4.analysis.LeftRecursiveRuleAltInfo.altLabel:Ljava/lang/String;
areturn
end local 4 end local 3 10: StackMap locals:
StackMap stack:
iinc 2 -1
StackMap locals:
StackMap stack:
11: iload 2
ifge 4
end local 2 12: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 13 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
1 13 1 ancestors Ljava/util/List<+Lorg/antlr/runtime/tree/Tree;>;
3 12 2 i I
5 10 3 p Lorg/antlr/v4/tool/ast/GrammarAST;
7 10 4 a Lorg/antlr/v4/tool/ast/AltAST;
public boolean deleteChild(org.antlr.runtime.tree.Tree);
descriptor: (Lorg/antlr/runtime/tree/Tree;)Z
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=4, args_size=2
start local 0 start local 1 0: iconst_0
istore 2
start local 2 1: goto 7
2: StackMap locals: int
StackMap stack:
aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.children:Ljava/util/List;
iload 2
invokeinterface java.util.List.get:(I)Ljava/lang/Object;
astore 3
start local 3 3: aload 3
aload 1
if_acmpne 6
4: aload 0
aload 1
invokeinterface org.antlr.runtime.tree.Tree.getChildIndex:()I
invokevirtual org.antlr.v4.tool.ast.GrammarAST.deleteChild:(I)Ljava/lang/Object;
pop
5: iconst_1
ireturn
end local 3 6: StackMap locals:
StackMap stack:
iinc 2 1
StackMap locals:
StackMap stack:
7: iload 2
aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.children:Ljava/util/List;
invokeinterface java.util.List.size:()I
if_icmplt 2
end local 2 8: iconst_0
ireturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 9 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 9 1 t Lorg/antlr/runtime/tree/Tree;
1 8 2 i I
3 6 3 c Ljava/lang/Object;
MethodParameters:
Name Flags
t
public org.antlr.runtime.tree.CommonTree getFirstDescendantWithType(int);
descriptor: (I)Lorg/antlr/runtime/tree/CommonTree;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 0
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getType:()I
iload 1
if_icmpne 1
aload 0
areturn
1: StackMap locals:
StackMap stack:
aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.children:Ljava/util/List;
ifnonnull 2
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.children:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 8
StackMap locals: org.antlr.v4.tool.ast.GrammarAST int top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 4: aload 2
checkcast org.antlr.v4.tool.ast.GrammarAST
astore 4
start local 4 5: aload 4
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getType:()I
iload 1
if_icmpne 6
aload 4
areturn
6: StackMap locals: org.antlr.v4.tool.ast.GrammarAST int java.lang.Object java.util.Iterator org.antlr.v4.tool.ast.GrammarAST
StackMap stack:
aload 4
iload 1
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getFirstDescendantWithType:(I)Lorg/antlr/runtime/tree/CommonTree;
astore 5
start local 5 7: aload 5
ifnull 8
aload 5
areturn
end local 5 end local 4 end local 2 8: StackMap locals: org.antlr.v4.tool.ast.GrammarAST int top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
9: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 10 1 type I
4 8 2 c Ljava/lang/Object;
5 8 4 t Lorg/antlr/v4/tool/ast/GrammarAST;
7 8 5 d Lorg/antlr/runtime/tree/CommonTree;
MethodParameters:
Name Flags
type
public org.antlr.runtime.tree.CommonTree getFirstDescendantWithType(org.antlr.runtime.BitSet);
descriptor: (Lorg/antlr/runtime/BitSet;)Lorg/antlr/runtime/tree/CommonTree;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=6, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getType:()I
invokevirtual org.antlr.runtime.BitSet.member:(I)Z
ifeq 1
aload 0
areturn
1: StackMap locals:
StackMap stack:
aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.children:Ljava/util/List;
ifnonnull 2
aconst_null
areturn
2: StackMap locals:
StackMap stack:
aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.children:Ljava/util/List;
invokeinterface java.util.List.iterator:()Ljava/util/Iterator;
astore 3
goto 8
StackMap locals: org.antlr.v4.tool.ast.GrammarAST org.antlr.runtime.BitSet top java.util.Iterator
StackMap stack:
3: aload 3
invokeinterface java.util.Iterator.next:()Ljava/lang/Object;
astore 2
start local 2 4: aload 2
checkcast org.antlr.v4.tool.ast.GrammarAST
astore 4
start local 4 5: aload 1
aload 4
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getType:()I
invokevirtual org.antlr.runtime.BitSet.member:(I)Z
ifeq 6
aload 4
areturn
6: StackMap locals: org.antlr.v4.tool.ast.GrammarAST org.antlr.runtime.BitSet java.lang.Object java.util.Iterator org.antlr.v4.tool.ast.GrammarAST
StackMap stack:
aload 4
aload 1
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getFirstDescendantWithType:(Lorg/antlr/runtime/BitSet;)Lorg/antlr/runtime/tree/CommonTree;
astore 5
start local 5 7: aload 5
ifnull 8
aload 5
areturn
end local 5 end local 4 end local 2 8: StackMap locals: org.antlr.v4.tool.ast.GrammarAST org.antlr.runtime.BitSet top java.util.Iterator
StackMap stack:
aload 3
invokeinterface java.util.Iterator.hasNext:()Z
ifne 3
9: aconst_null
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 10 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 10 1 types Lorg/antlr/runtime/BitSet;
4 8 2 c Ljava/lang/Object;
5 8 4 t Lorg/antlr/v4/tool/ast/GrammarAST;
7 8 5 d Lorg/antlr/runtime/tree/CommonTree;
MethodParameters:
Name Flags
types
public void setType(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
getfield org.antlr.v4.tool.ast.GrammarAST.token:Lorg/antlr/runtime/Token;
iload 1
invokeinterface org.antlr.runtime.Token.setType:(I)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 2 1 type I
MethodParameters:
Name Flags
type
public void setText(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.ast.GrammarAST.token:Lorg/antlr/runtime/Token;
aload 1
invokeinterface org.antlr.runtime.Token.setText:(Ljava/lang/String;)V
1: return
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 2 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 2 1 text Ljava/lang/String;
MethodParameters:
Name Flags
text
public org.antlr.v4.tool.ast.GrammarAST dupNode();
descriptor: ()Lorg/antlr/v4/tool/ast/GrammarAST;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=1, args_size=1
start local 0 0: new org.antlr.v4.tool.ast.GrammarAST
dup
aload 0
invokespecial org.antlr.v4.tool.ast.GrammarAST.<init>:(Lorg/antlr/v4/tool/ast/GrammarAST;)V
areturn
end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
public org.antlr.v4.tool.ast.GrammarAST dupTree();
descriptor: ()Lorg/antlr/v4/tool/ast/GrammarAST;
flags: (0x0001) ACC_PUBLIC
Code:
stack=3, locals=4, args_size=1
start local 0 0: aload 0
astore 1
start local 1 1: aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.token:Lorg/antlr/runtime/Token;
invokeinterface org.antlr.runtime.Token.getInputStream:()Lorg/antlr/runtime/CharStream;
astore 2
start local 2 2: new org.antlr.v4.parse.GrammarASTAdaptor
dup
aload 2
invokespecial org.antlr.v4.parse.GrammarASTAdaptor.<init>:(Lorg/antlr/runtime/CharStream;)V
astore 3
start local 3 3: aload 3
aload 1
invokevirtual org.antlr.v4.parse.GrammarASTAdaptor.dupTree:(Ljava/lang/Object;)Ljava/lang/Object;
checkcast org.antlr.v4.tool.ast.GrammarAST
areturn
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/ast/GrammarAST;
1 4 1 t Lorg/antlr/v4/tool/ast/GrammarAST;
2 4 2 input Lorg/antlr/runtime/CharStream;
3 4 3 adaptor Lorg/antlr/v4/parse/GrammarASTAdaptor;
public java.lang.String toTokenString();
descriptor: ()Ljava/lang/String;
flags: (0x0001) ACC_PUBLIC
Code:
stack=4, locals=7, args_size=1
start local 0 0: aload 0
getfield org.antlr.v4.tool.ast.GrammarAST.token:Lorg/antlr/runtime/Token;
invokeinterface org.antlr.runtime.Token.getInputStream:()Lorg/antlr/runtime/CharStream;
astore 1
start local 1 1: new org.antlr.v4.parse.GrammarASTAdaptor
dup
aload 1
invokespecial org.antlr.v4.parse.GrammarASTAdaptor.<init>:(Lorg/antlr/runtime/CharStream;)V
astore 2
start local 2 2: new org.antlr.runtime.tree.CommonTreeNodeStream
dup
aload 2
aload 0
invokespecial org.antlr.runtime.tree.CommonTreeNodeStream.<init>:(Lorg/antlr/runtime/tree/TreeAdaptor;Ljava/lang/Object;)V
3: astore 3
start local 3 4: new java.lang.StringBuilder
dup
invokespecial java.lang.StringBuilder.<init>:()V
astore 4
start local 4 5: aload 3
iconst_1
invokevirtual org.antlr.runtime.tree.CommonTreeNodeStream.LT:(I)Ljava/lang/Object;
checkcast org.antlr.v4.tool.ast.GrammarAST
astore 5
start local 5 6: aload 2
aload 5
invokevirtual org.antlr.v4.parse.GrammarASTAdaptor.getType:(Ljava/lang/Object;)I
istore 6
start local 6 7: goto 13
8: StackMap locals: org.antlr.v4.tool.ast.GrammarAST org.antlr.runtime.CharStream org.antlr.v4.parse.GrammarASTAdaptor org.antlr.runtime.tree.CommonTreeNodeStream java.lang.StringBuilder org.antlr.v4.tool.ast.GrammarAST int
StackMap stack:
aload 4
ldc " "
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
9: aload 4
aload 5
invokevirtual org.antlr.v4.tool.ast.GrammarAST.getText:()Ljava/lang/String;
invokevirtual java.lang.StringBuilder.append:(Ljava/lang/String;)Ljava/lang/StringBuilder;
pop
10: aload 3
invokevirtual org.antlr.runtime.tree.CommonTreeNodeStream.consume:()V
11: aload 3
iconst_1
invokevirtual org.antlr.runtime.tree.CommonTreeNodeStream.LT:(I)Ljava/lang/Object;
checkcast org.antlr.v4.tool.ast.GrammarAST
astore 5
12: aload 2
aload 5
invokevirtual org.antlr.v4.parse.GrammarASTAdaptor.getType:(Ljava/lang/Object;)I
istore 6
13: StackMap locals:
StackMap stack:
iload 6
iconst_m1
if_icmpne 8
14: aload 4
invokevirtual java.lang.StringBuilder.toString:()Ljava/lang/String;
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 15 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
1 15 1 input Lorg/antlr/runtime/CharStream;
2 15 2 adaptor Lorg/antlr/v4/parse/GrammarASTAdaptor;
4 15 3 nodes Lorg/antlr/runtime/tree/CommonTreeNodeStream;
5 15 4 buf Ljava/lang/StringBuilder;
6 15 5 o Lorg/antlr/v4/tool/ast/GrammarAST;
7 15 6 type I
public java.lang.Object visit(org.antlr.v4.tool.ast.GrammarASTVisitor);
descriptor: (Lorg/antlr/v4/tool/ast/GrammarASTVisitor;)Ljava/lang/Object;
flags: (0x0001) ACC_PUBLIC
Code:
stack=2, locals=2, args_size=2
start local 0 start local 1 0: aload 1
aload 0
invokeinterface org.antlr.v4.tool.ast.GrammarASTVisitor.visit:(Lorg/antlr/v4/tool/ast/GrammarAST;)Ljava/lang/Object;
areturn
end local 1 end local 0 LocalVariableTable:
Start End Slot Name Signature
0 1 0 this Lorg/antlr/v4/tool/ast/GrammarAST;
0 1 1 v Lorg/antlr/v4/tool/ast/GrammarASTVisitor;
MethodParameters:
Name Flags
v
public org.antlr.runtime.tree.Tree dupNode();
descriptor: ()Lorg/antlr/runtime/tree/Tree;
flags: (0x1041) ACC_PUBLIC, ACC_BRIDGE, ACC_SYNTHETIC
Code:
stack=1, locals=1, args_size=1
0: aload 0
invokevirtual org.antlr.v4.tool.ast.GrammarAST.dupNode:()Lorg/antlr/v4/tool/ast/GrammarAST;
areturn
LocalVariableTable:
Start End Slot Name Signature
}
SourceFile: "GrammarAST.java"