Java.target.classes.org.antlr.v4.runtime.TokenStreamRewriter.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of antlr4-perf-testsuite Show documentation
Show all versions of antlr4-perf-testsuite Show documentation
The ANTLR 4 grammar compiler.
???? 4?
g ? ? ?
? ? ? ? ?
? ?
?
@
<
" ?
"
"
"
!
,!
"
#
$%
1&
1'
(
)*
+ ), )- ./
01 ?23 @45 @6
<7 ?89:;<;= <> <?
"@ A
B : > ,> C ?
g ,?D ,E ,
FG
FH IJK
LMNO
PQRST
a
?
UV
UWX ReplaceOp InnerClasses
InsertAfterOp InsertBeforeOp RewriteOperation DEFAULT_PROGRAM_NAME Ljava/lang/String;
ConstantValue PROGRAM_INIT_SIZE I d MIN_TOKEN_INDEX tokens "Lorg/antlr/v4/runtime/TokenStream; programs Ljava/util/Map; Signature pLjava/util/Map;>; lastRewriteTokenIndexes 6Ljava/util/Map; %(Lorg/antlr/v4/runtime/TokenStream;)V Code LineNumberTable LocalVariableTable this *Lorg/antlr/v4/runtime/TokenStreamRewriter; getTokenStream $()Lorg/antlr/v4/runtime/TokenStream; rollback (I)V instructionIndex (Ljava/lang/String;I)V programName is Ljava/util/List; LocalVariableTypeTable MLjava/util/List;
StackMapTable
deleteProgram ()V (Ljava/lang/String;)V insertAfter 1(Lorg/antlr/v4/runtime/Token;Ljava/lang/Object;)V t Lorg/antlr/v4/runtime/Token; text Ljava/lang/Object; (ILjava/lang/Object;)V index C(Ljava/lang/String;Lorg/antlr/v4/runtime/Token;Ljava/lang/Object;)V ((Ljava/lang/String;ILjava/lang/Object;)V op ;Lorg/antlr/v4/runtime/TokenStreamRewriter$RewriteOperation; rewrites insertBefore replace (IILjava/lang/Object;)V from to indexT M(Lorg/antlr/v4/runtime/Token;Lorg/antlr/v4/runtime/Token;Ljava/lang/Object;)V )(Ljava/lang/String;IILjava/lang/Object;)V $RuntimeInvisibleParameterAnnotations $Lorg/antlr/v4/runtime/misc/Nullable; _(Ljava/lang/String;Lorg/antlr/v4/runtime/Token;Lorg/antlr/v4/runtime/Token;Ljava/lang/Object;)V delete (II)V (Lorg/antlr/v4/runtime/Token;)V ;(Lorg/antlr/v4/runtime/Token;Lorg/antlr/v4/runtime/Token;)V (Ljava/lang/String;II)V M(Ljava/lang/String;Lorg/antlr/v4/runtime/Token;Lorg/antlr/v4/runtime/Token;)V getLastRewriteTokenIndex ()I (Ljava/lang/String;)I Ljava/lang/Integer;% setLastRewriteTokenIndex i
getProgram $(Ljava/lang/String;)Ljava/util/List; name a(Ljava/lang/String;)Ljava/util/List; initializeProgram getText ()Ljava/lang/String; &(Ljava/lang/String;)Ljava/lang/String; 8(Lorg/antlr/v4/runtime/misc/Interval;)Ljava/lang/String; interval $Lorg/antlr/v4/runtime/misc/Interval; J(Ljava/lang/String;Lorg/antlr/v4/runtime/misc/Interval;)Ljava/lang/String; start stop buf Ljava/lang/StringBuilder; indexToOp _Ljava/util/Map;Y15Z reduceToSingleOperationPerIndex !(Ljava/util/List;)Ljava/util/Map; iop 9Lorg/antlr/v4/runtime/TokenStreamRewriter$InsertBeforeOp; disjoint Z prevRop 4Lorg/antlr/v4/runtime/TokenStreamRewriter$ReplaceOp; rop inserts prevReplaces prevIop prevInserts m LLjava/util/List<+Lorg/antlr/v4/runtime/TokenStreamRewriter$InsertBeforeOp;>; GLjava/util/List<+Lorg/antlr/v4/runtime/TokenStreamRewriter$ReplaceOp;>; ?[ ?(Ljava/util/List;)Ljava/util/Map; catOpText 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/String; a b x y getKindOfOps 4(Ljava/util/List;Ljava/lang/Class;I)Ljava/util/List; kind Ljava/lang/Class; before ops NLjava/util/List<+Lorg/antlr/v4/runtime/TokenStreamRewriter$RewriteOperation;>; Ljava/lang/Class; Ljava/util/List; ?(Ljava/util/List<+Lorg/antlr/v4/runtime/TokenStreamRewriter$RewriteOperation;>;Ljava/lang/Class;I)Ljava/util/List<+TT;>;
SourceFile TokenStreamRewriter.java } ? u v java/util/HashMap w x (org/antlr/v4/runtime/TokenStreamRewriter default java/util/ArrayList } ?Y\] { x ? ?^_ java/util/List`a ? ? ? ? ? ?b ? 6org/antlr/v4/runtime/TokenStreamRewriter$InsertAfterOp }c ? ?d ? ? qef ? ? ? ? 7org/antlr/v4/runtime/TokenStreamRewriter$InsertBeforeOp ? ? ? ?g "java/lang/IllegalArgumentException java/lang/StringBuilder replace: range invalid: hihj .. (size= )k ? } ? 2org/antlr/v4/runtime/TokenStreamRewriter$ReplaceOp }l ? ? ? ? ? ? java/lang/Integerm ?no ? ?pqr ? ? ? q ? qst ? ? ? ? 9org/antlr/v4/runtime/TokenStreamRewriter$RewriteOperationu_^vw ? org/antlr/v4/runtime/Token ? ?xyz{|}~Zt?? ? q ? ?h?^? ? ??? ? q???????? new rop ?? ? replace op boundaries of overlap with previous ? ?
insert op within boundaries of previous java/lang/Error should only be one op per index??f?_ java/lang/Object
java/util/Map java/util/Iterator java/lang/String put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; get &(Ljava/lang/Object;)Ljava/lang/Object; subList (II)Ljava/util/List;
getTokenIndex 8(Lorg/antlr/v4/runtime/TokenStream;ILjava/lang/Object;)V size add (Ljava/lang/Object;)Z org/antlr/v4/runtime/TokenStream append -(Ljava/lang/String;)Ljava/lang/StringBuilder; (I)Ljava/lang/StringBuilder; toString 9(Lorg/antlr/v4/runtime/TokenStream;IILjava/lang/Object;)V intValue valueOf (I)Ljava/lang/Integer; "org/antlr/v4/runtime/misc/Interval of ((II)Lorg/antlr/v4/runtime/misc/Interval; isEmpty ()Z remove (I)Lorg/antlr/v4/runtime/Token; getType execute (Ljava/lang/StringBuilder;)I values ()Ljava/util/Collection; java/util/Collection iterator ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; (I)Ljava/lang/Object; set '(ILjava/lang/Object;)Ljava/lang/Object; lastIndex java/lang/Math min (II)I max java/lang/System out Ljava/io/PrintStream; java/io/PrintStream println java/lang/Class
isInstance cast ! g m n o p q o r s q o t u v w x y z { x y | &