com.google.javascript.jscomp.SourceFile$CodeLoader$OnDisk.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 ?
2com/google/javascript/jscomp/SourceFile$CodeLoader ()V
java/nio/charset/Charset name ()Ljava/lang/String; 9com/google/javascript/jscomp/SourceFile$CodeLoader$OnDisk serializableCharset Ljava/lang/String; relativePath Ljava/nio/file/Path;
getCharset ()Ljava/nio/charset/Charset;
java/nio/file/Files
readString B(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/lang/String; " )java/nio/charset/CharacterCodingException $ java/io/IOException & ' ( makeConcatWithConstants ((Ljava/nio/file/Path;)Ljava/lang/String;
# * + *(Ljava/lang/String;Ljava/lang/Throwable;)V
- . / newBufferedReader H(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Ljava/io/BufferedReader;
1 2 3 forName .(Ljava/lang/String;)Ljava/nio/charset/Charset; 5 6 7 8 java/nio/file/Path toString
: ; < = > :com/google/javascript/jscomp/serialization/SourceFileProto
newBuilder F()Lcom/google/javascript/jscomp/serialization/SourceFileProto$Builder;
@ A B = C Ecom/google/javascript/jscomp/serialization/SourceFileProto$FileOnDisk Q()Lcom/google/javascript/jscomp/serialization/SourceFileProto$FileOnDisk$Builder;
E F G H I java/lang/String equals (Ljava/lang/Object;)Z K
M N O P Q Mcom/google/javascript/jscomp/serialization/SourceFileProto$FileOnDisk$Builder
setActualPath c(Ljava/lang/String;)Lcom/google/javascript/jscomp/serialization/SourceFileProto$FileOnDisk$Builder; S T U V W !java/nio/charset/StandardCharsets UTF_8 Ljava/nio/charset/Charset;
F
M Z [ Q
setCharset
] ^ _ ` a Bcom/google/javascript/jscomp/serialization/SourceFileProto$Builder
setFileOnDisk ?(Lcom/google/javascript/jscomp/serialization/SourceFileProto$FileOnDisk$Builder;)Lcom/google/javascript/jscomp/serialization/SourceFileProto$Builder; serialVersionUID J
ConstantValue 1(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)V Code LineNumberTable LocalVariableTable this ;Lcom/google/javascript/jscomp/SourceFile$CodeLoader$OnDisk; c MethodParameters loadUncachedCode e +Ljava/nio/charset/CharacterCodingException;
StackMapTable
Exceptions RuntimeInvisibleAnnotations /Lcom/google/common/annotations/GwtIncompatible; openUncachedReader ()Ljava/io/Reader; toProtoLocationBuilder X(Ljava/lang/String;)Lcom/google/javascript/jscomp/serialization/SourceFileProto$Builder; fileName
actualPath
SourceFile SourceFile.java NestHost ? 'com/google/javascript/jscomp/SourceFile 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; ? /Failed to read: , is this input UTF-8 encoded? InnerClasses
CodeLoader OnDisk Builder
FileOnDisk ? %java/lang/invoke/MethodHandles$Lookup ? java/lang/invoke/MethodHandles Lookup 0 b c d e g h \ *? *,? ?
*+? ? i ; <