com.groupbyinc.flux.common.antlr.v4.runtime.tree.Trees.class Maven / Gradle / Ivy
???? 2" 6com/groupbyinc/flux/common/antlr/v4/runtime/tree/Trees java/lang/Object
Trees.java toStringTree K(Lcom/groupbyinc/flux/common/antlr/v4/runtime/tree/Tree;)Ljava/lang/String; java/util/List [(Lcom/groupbyinc/flux/common/antlr/v4/runtime/tree/Tree;Ljava/util/List;)Ljava/lang/String;
t 7Lcom/groupbyinc/flux/common/antlr/v4/runtime/tree/Tree; (Lcom/groupbyinc/flux/common/antlr/v4/runtime/tree/Tree;Lcom/groupbyinc/flux/common/antlr/v4/runtime/Parser;)Ljava/lang/String; 2com/groupbyinc/flux/common/antlr/v4/runtime/Parser getRuleNames ()[Ljava/lang/String;
[Ljava/lang/String; java/util/Arrays asList %([Ljava/lang/Object;)Ljava/util/List;
recog 4Lcom/groupbyinc/flux/common/antlr/v4/runtime/Parser; ruleNames
ruleNamesList $Ljava/util/List; Ljava/util/List; getNodeText $
% 6com/groupbyinc/flux/common/antlr/v4/runtime/misc/Utils ' escapeWhitespace '(Ljava/lang/String;Z)Ljava/lang/String; ) *
( + 5com/groupbyinc/flux/common/antlr/v4/runtime/tree/Tree -
getChildCount ()I / 0 . 1 java/lang/String 3 java/lang/StringBuilder 5 ()V 7 8
6 9 ( ; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; = >
6 ? (C)Ljava/lang/StringBuilder; = A
6 B getChild :(I)Lcom/groupbyinc/flux/common/antlr/v4/runtime/tree/Tree; D E . F ) H toString ()Ljava/lang/String; J K
6 L i I s Ljava/lang/String; buf Ljava/lang/StringBuilder; 9com/groupbyinc/flux/common/antlr/v4/runtime/tree/RuleNode T getRuleContext ;()Lcom/groupbyinc/flux/common/antlr/v4/runtime/RuleContext; V W U X 7com/groupbyinc/flux/common/antlr/v4/runtime/RuleContext Z getRuleIndex \ 0
[ ] get (I)Ljava/lang/Object; _ ` a :com/groupbyinc/flux/common/antlr/v4/runtime/tree/ErrorNode c
L =com/groupbyinc/flux/common/antlr/v4/runtime/tree/TerminalNode f getSymbol 5()Lcom/groupbyinc/flux/common/antlr/v4/runtime/Token; h i g j 1com/groupbyinc/flux/common/antlr/v4/runtime/Token l getText n K m o
getPayload ()Ljava/lang/Object; q r . s ruleIndex ruleName symbol 3Lcom/groupbyinc/flux/common/antlr/v4/runtime/Token; payload Ljava/lang/Object; getChildren I(Lcom/groupbyinc/flux/common/antlr/v4/runtime/tree/Tree;)Ljava/util/List; java/util/ArrayList }
~ 9 add (Ljava/lang/Object;)Z ? ? ? kids ILjava/util/List; getAncestors getParent 9()Lcom/groupbyinc/flux/common/antlr/v4/runtime/tree/Tree; ? ? . ? java/util/Collections ? emptyList ()Ljava/util/List; ? ?
? ? (ILjava/lang/Object;)V ? ? ? ancestors isAncestorOf q(Lcom/groupbyinc/flux/common/antlr/v4/runtime/tree/Tree;Lcom/groupbyinc/flux/common/antlr/v4/runtime/tree/Tree;)Z u p findAllTokenNodes U(Lcom/groupbyinc/flux/common/antlr/v4/runtime/tree/ParseTree;I)Ljava/util/Collection; findAllNodes P(Lcom/groupbyinc/flux/common/antlr/v4/runtime/tree/ParseTree;IZ)Ljava/util/List; ? ?
?