
com.google.javascript.jscomp.RandomNameGenerator.class Maven / Gradle / Ivy
The newest version!
???? 3$
A ? ? ?
? ?
? ? ? ? ?
? ? ? ?
?
? ?
?
? ?
? ?
? ?
? ?
? ?
8 ?
? ? ? ?
? ?
? ?
? ?
? ?
?
? ?
? ?
? ?
? ?
? ? ? 0 ? ? ?
? ???? 0 ? ?
? ?
?
? ? ? ? ? ?
? 0 ? ?
?
8 ? ? ?
?
? ? ? ? ? ? ? ? ? ?
FIRST_CHAR [C
NONFIRST_CHAR
firstChars Ljava/util/LinkedHashSet; Signature 0Ljava/util/LinkedHashSet;
nonFirstChars random Ljava/util/Random;
reservedNames Ljava/util/Set; #Ljava/util/Set; prefix Ljava/lang/String; nameCount I NUM_SHUFFLES
ConstantValue
shuffledFirst Ljava/util/List; 'Ljava/util/List; shuffledNonFirst 9Ljava/util/List;>; (Ljava/util/Random;)V Code LineNumberTable LocalVariableTable this 2Lcom/google/javascript/jscomp/RandomNameGenerator; 8(Ljava/util/Set;Ljava/lang/String;[CLjava/util/Random;)V reservedCharacters LocalVariableTypeTable L(Ljava/util/Set;Ljava/lang/String;[CLjava/util/Random;)V "RuntimeVisibleParameterAnnotations Ljavax/annotation/Nullable; reset &(Ljava/util/Set;Ljava/lang/String;[C)V :(Ljava/util/Set;Ljava/lang/String;[C)V clone Q(Ljava/util/Set;Ljava/lang/String;[C)Lcom/google/javascript/jscomp/NameGenerator; e(Ljava/util/Set;Ljava/lang/String;[C)Lcom/google/javascript/jscomp/NameGenerator; reserveCharacters ([C[C)Ljava/util/LinkedHashSet; chars result
StackMapTable 6([C[C)Ljava/util/LinkedHashSet; checkPrefix (Ljava/lang/String;)V pos shuffleAndCopyAlphabet 8(Ljava/lang/Iterable;Ljava/util/Random;)Ljava/util/List; input Ljava/lang/Iterable; shuffled +Ljava/lang/Iterable; f(Ljava/lang/Iterable;Ljava/util/Random;)Ljava/util/List; shuffleAlphabets i getAlphabet 2(ILcom/google/common/hash/Hasher;)Ljava/util/List; alphabetIdx position past Lcom/google/common/hash/Hasher; I(ILcom/google/common/hash/Hasher;)Ljava/util/List;
getNameLength (II)I alphabetSize nameIdx length generateSuffix (II)Ljava/lang/String; alphabet character Ljava/lang/Character; name hasher ? ? generateNextName ()Ljava/lang/String; ()V
SourceFile RandomNameGenerator.java RuntimeInvisibleAnnotations /Lcom/google/common/annotations/GwtIncompatible; value \java.util.Collections.shuffle, com.google.common.hash.Hasher, com.google.common.hash.Hashing \ ? K L java/util/HashSet i j M N P Q R S C D o p F G E D J G u v ] 0com/google/javascript/jscomp/RandomNameGenerator \ c ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? "java/lang/IllegalArgumentException java/lang/StringBuilder prefix must start with one of: ? ? , ? ? ? ? \ v /prefix has invalid characters, must be one of: x y W X Z X
? ?
? java/util/List ? ? ? ? ? java/lang/Character ? ? ? !"# java/lang/Object *com/google/javascript/jscomp/NameGenerator java/lang/String com/google/common/hash/Hasher "com/google/common/primitives/Chars asList ([C)Ljava/util/List; com/google/common/collect/Sets newLinkedHashSet /(Ljava/lang/Iterable;)Ljava/util/LinkedHashSet; java/util/LinkedHashSet removeAll (Ljava/util/Collection;)Z ()I charAt (I)C valueOf (C)Ljava/lang/Character; contains (Ljava/lang/Object;)Z append -(Ljava/lang/String;)Ljava/lang/StringBuilder; com/google/common/base/Joiner on 3(Ljava/lang/String;)Lcom/google/common/base/Joiner; join ((Ljava/lang/Iterable;)Ljava/lang/String; toString com/google/common/collect/Lists newArrayList +(Ljava/lang/Iterable;)Ljava/util/ArrayList; java/util/Collections shuffle %(Ljava/util/List;Ljava/util/Random;)V ()Ljava/util/ArrayList; add hash #()Lcom/google/common/hash/HashCode; com/google/common/hash/HashCode asInt get (I)Ljava/lang/Object; size com/google/common/hash/Hashing murmur3_128 '()Lcom/google/common/hash/HashFunction; #com/google/common/hash/HashFunction newHasher !()Lcom/google/common/hash/Hasher; putInt "(I)Lcom/google/common/hash/Hasher; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; charValue ()C putChar "(C)Lcom/google/common/hash/Hasher; 'com/google/javascript/rhino/TokenStream isKeyword (Ljava/lang/String;)Z
java/util/Set 1com/google/javascript/jscomp/DefaultNameGenerator 1 A B C D E D F G H I J G H I K L M N H O P Q R S T S U V W X H Y Z X H [
\ ] ^ X *? *+? *? Y? ? ? _ l m n o ` a b K L \ c ^ ? *? *? *+,-? ? _ ? ?
? ? ` 4 a b M N P Q d D K L e M O H f g
h i j ^ ? 5*+? *,? *? **?
-? ? **?
-? ? *,? **? ? ? _ " ? ?
? ? ? ' ? , ? 4 ? ` * 5 a b 5 M N 5 P Q 5 d D e 5 M O H k g h l m ^ i ? Y+,-*? ? ? _ ? ` * a b M N P Q d D e M O H n g h o p ^ ? ,? ?M+? ? N-,? ? W-? _ ? ? ? ? ? ? ? ` * a b q D d D r G e r I s H t u v ^ ? ?+? ? ?*? +? ? ? ? )? Y? Y? ? ? *? ? !? ? "? #?=+? ? A*? +? ? ? ? )? Y? Y? $? ? *? ? !? ? "? #?????? _ *
? ? ? + ? ? ? I ? [ ? m ? ? ? ? ? ` A F w S ? a b ? P Q s ?? ?? x y ^ x +? %N-,? &-? _ ? ?
? ` * a b z { K L | X e z } | Y H ~ ] ^ ? 6***? +? '? (*? )? *=? *? ***? +? '? + W???? _ ?
? ? ? / ? 5 ? ` ? S 6 a b 6 K L s ? ? ? ? ^ ? '? *? (?,? , ? -.~p>*? *? / ? 0? _ ? ? ? ? ` * ? S ' a b ' ? S ' ? ? s H ? ? ? ^ ? 0>????
*? ? 1?
*? ? 16l=?????? _ *
? ? ? ? ? ? $ ? ' ? * ? . ? ` 4 ? S 0 a b 0 ? S 0 ? S . ? S s ? F ? ? ^ L vN*? 26? 3? 4 :? 5 W???*? 6:? 7 6p? / ? 8:? Y? -? ? 9? "N? :? ; Wl=????-? _ > " % .
7 G
[ h m p t ` \ . B ? X 7 9 ? S G ) ? ? v a b v ? S v ? S s ? Q k ? S a ? ? e . B ? Y s ? " ? ? ? ? ^ ? F*? L? Y? +? **? ? *Y? Z`? ?