com.google.javascript.jscomp.JsMessage.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of closure-compiler-unshaded Show documentation
Show all versions of closure-compiler-unshaded Show documentation
Closure Compiler is a JavaScript optimizing compiler. It parses your
JavaScript, analyzes it, removes dead code and rewrites and minimizes
what's left. It also checks syntax, variable references, and types, and
warns about common JavaScript pitfalls. It is used in many of Google's
JavaScript apps, including Gmail, Google Web Search, Google Maps, and
Google Docs.
The newest version!
???? 7 ?
java/lang/Object ()V
&com/google/javascript/jscomp/JsMessage #getPlaceholderNameToOriginalCodeMap *()Lcom/google/common/collect/ImmutableMap;
;com/google/javascript/jscomp/JsMessage$PlaceholderReference getStoredPlaceholderName ()Ljava/lang/String; -
&com/google/common/collect/ImmutableMap getOrDefault 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; java/lang/String
getPlaceholderNameToExampleMap ! java/lang/StringBuilder
$ % & getParts +()Lcom/google/common/collect/ImmutableList;
( ) * + , 'com/google/common/collect/ImmutableList iterator 2()Lcom/google/common/collect/UnmodifiableIterator; . / 0 1 2 java/util/Iterator hasNext ()Z . 4 5 6 next ()Ljava/lang/Object; 8 +com/google/javascript/jscomp/JsMessage$Part 7 : ; 2
isPlaceholder = {$
? @ A append -(Ljava/lang/String;)Ljava/lang/StringBuilder; 7 C D getJsPlaceholderName F } 7 H I getString
K L toString
N @ O (C)Ljava/lang/StringBuilder; 7 Q R getCanonicalPlaceholderName
T U V length ()I X Y Z JS_PLACEHOLDER_NAME_RE Ljava/util/regex/Pattern;
\ ] ^ _ ` java/util/regex/Pattern matcher 3(Ljava/lang/CharSequence;)Ljava/util/regex/Matcher;
b c d e 2 java/util/regex/Matcher matches
g h i charAt (I)C
k l m n o java/lang/Character isDigit (C)Z q r s t u !com/google/common/base/CaseFormat UPPER_UNDERSCORE #Lcom/google/common/base/CaseFormat; q w x u LOWER_CAMEL
q z { | to I(Lcom/google/common/base/CaseFormat;Ljava/lang/String;)Ljava/lang/String;
~ ? substring (II)Ljava/lang/String;
? ? (I)Ljava/lang/String; ? ? ? makeConcatWithConstants 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; ? ? Z CANONICAL_PLACEHOLDER_NAME_RE ? [a-z][a-zA-Z\d]*[_\d]*
\ ? ? ? compile -(Ljava/lang/String;)Ljava/util/regex/Pattern; ? [A-Z\d_]* PH_JS_PREFIX Ljava/lang/String;
ConstantValue PH_JS_SUFFIX Code LineNumberTable LocalVariableTable this (Lcom/google/javascript/jscomp/JsMessage;
getSourceName RuntimeVisibleTypeAnnotations #Lorg/jspecify/annotations/Nullable; getKey isAnonymous
isExternal getId Signature Z()Lcom/google/common/collect/ImmutableList; getAlternateId getDesc
getMeaning isHidden P()Lcom/google/common/collect/ImmutableMap; jsPlaceholderNames *()Lcom/google/common/collect/ImmutableSet; >()Lcom/google/common/collect/ImmutableSet; getPlaceholderOriginalCode Q(Lcom/google/javascript/jscomp/JsMessage$PlaceholderReference;)Ljava/lang/String; placeholderReference =Lcom/google/javascript/jscomp/JsMessage$PlaceholderReference; MethodParameters getPlaceholderExample asJsMessageString p -Lcom/google/javascript/jscomp/JsMessage$Part; sb Ljava/lang/StringBuilder;
StackMapTable asIcuMessageString isEmpty part #isLowerCamelCaseWithNumericSuffixes (Ljava/lang/String;)Z input #toLowerCamelCaseWithNumericSuffixes &(Ljava/lang/String;)Ljava/lang/String; ch C numberStart I suffixStart isCanonicalPlaceholderNameFormat name
SourceFile JsMessage.java RuntimeInvisibleAnnotations !Lcom/google/auto/value/AutoValue; NestMembers ? 2com/google/javascript/jscomp/JsMessage$IdGenerator ? +com/google/javascript/jscomp/JsMessage$Hash ? .com/google/javascript/jscomp/JsMessage$Builder ? 1com/google/javascript/jscomp/JsMessage$StringPart ? Acom/google/javascript/jscomp/JsMessage$PlaceholderFormatException BootstrapMethods ?
? ? ? ? ? $java/lang/invoke/StringConcatFactory ?(Ljava/lang/invoke/MethodHandles$Lookup;Ljava/lang/String;Ljava/lang/invoke/MethodType;Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/invoke/CallSite; ? InnerClasses PlaceholderReference Part IdGenerator Hash Builder
StringPart PlaceholderFormatException ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup! ? ? ? <