All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.google.javascript.jscomp.SourceFile.class Maven / Gradle / Ivy

Go to download

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!
????74
java/lang/Object()V		
'com/google/javascript/jscomp/SourceFilelineOffsets[I	codeLjava/lang/String;	numLinesI	numBytes	isClosureUnawareCodeZ
 !com/google/common/base/Strings
isNullOrEmpty(Ljava/lang/String;)Z#"java/lang/IllegalArgumentException%a source must have a name
"'((Ljava/lang/String;)V*/
,-./0%com/google/javascript/jscomp/PlatformgetFileSeperator()Ljava/lang/String;
23456java/lang/Stringequals(Ljava/lang/Object;)Z
289:replaceD(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Ljava/lang/String;	<=>loader4Lcom/google/javascript/jscomp/SourceFile$CodeLoader;	@AfileName	CDEkind9Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;
GHfindLineOffsetsJKLmakeConcatWithConstants(II)Ljava/lang/String;
NO0getCodeQjava/io/IOExceptionS
2UVWindexOf(II)I
YZ[\]$com/google/common/base/Preconditions
checkState(Z)V
_`ab02com/google/javascript/jscomp/SourceFile$CodeLoaderloadUncachedCode
de(setCodeAndDoBookkeeping
_ghiopenUncachedReader()Ljava/io/Reader;kjava/io/StringReader
j'n
2pq!
startsWith
2stulength()I
2wxy	substring(I)Ljava/lang/String;
{|0getName
~???java/util/ArraysbinarySearch([II)I
????Wjava/lang/Mathmin
???getLineOfOffset(I)I
2?xL?)com/google/javascript/jscomp/SimpleRegion
???(IILjava/lang/String;)V
2???charAt(I)C
???Wmax?java/io/FileInputStream
?'
???fromZipInputS(Ljava/lang/String;Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/util/List;
????java/io/InputStreamclose?java/lang/Throwable
????
addSuppressed(Ljava/lang/Throwable;)V?java/io/File
?'
???0getAbsolutePath?java/util/ArrayList
??java/util/zip/ZipInputStream
???2(Ljava/io/InputStream;Ljava/nio/charset/Charset;)V
????getNextEntry()Ljava/util/zip/ZipEntry;
?{?java/util/zip/ZipEntry?.js
2??!endsWith
???builder3()Lcom/google/javascript/jscomp/SourceFile$Builder;
?????/com/google/javascript/jscomp/SourceFile$BuilderwithCharsetM(Ljava/nio/charset/Charset;)Lcom/google/javascript/jscomp/SourceFile$Builder;	??
BANG_SLASH?K?J(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
????withOriginalPathE(Ljava/lang/String;)Lcom/google/javascript/jscomp/SourceFile$Builder;
????withZipEntryPathW(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/SourceFile$Builder;
????build+()Lcom/google/javascript/jscomp/SourceFile;????6java/util/Listadd
??
????withPath
????G(Ljava/nio/file/Path;)Lcom/google/javascript/jscomp/SourceFile$Builder;
????withKindl(Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;)Lcom/google/javascript/jscomp/SourceFile$Builder;
????withContent
????0:com/google/javascript/jscomp/serialization/SourceFileProtogetFilename?#Cannot restore state for %s from %s
Y?\?:(ZLjava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V
?
getSourceKindI()Lcom/google/javascript/jscomp/serialization/SourceFileProto$SourceKind;	Ecom/google/javascript/jscomp/serialization/SourceFileProto$SourceKindEXTERNGLcom/google/javascript/jscomp/serialization/SourceFileProto$SourceKind;

getKind;()Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;	E7com/google/javascript/rhino/StaticSourceFile$SourceKindQTypedAST compilations must pass all extern files as externs, not js, but found %s
Y\((ZLjava/lang/String;Ljava/lang/Object;)V
?ugetNumLinesPlusOne
?ugetNumBytesPlusOne
?getIsClosureUnawareCode()Z
!"#getSourceKindFromProtow(Lcom/google/javascript/jscomp/serialization/SourceFileProto;)Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;
%&'	fromProto?(Lcom/google/javascript/jscomp/serialization/SourceFileProto;Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;)Lcom/google/javascript/jscomp/SourceFile;
)*markAsClosureUnawareCode	,-./)com/google/javascript/jscomp/SourceFile$1P$SwitchMap$com$google$javascript$jscomp$serialization$SourceFileProto$LoaderCase
?123
getLoaderCaseI()Lcom/google/javascript/jscomp/serialization/SourceFileProto$LoaderCase;
5678uEcom/google/javascript/jscomp/serialization/SourceFileProto$LoaderCaseordinal
?:;0getPreloadedContents
=>?fromCode?(Ljava/lang/String;Ljava/lang/String;Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;)Lcom/google/javascript/jscomp/SourceFile;
?ABC
getFileOnDiskI()Lcom/google/javascript/jscomp/serialization/SourceFileProto$FileOnDisk;
EFGH0Ecom/google/javascript/jscomp/serialization/SourceFileProto$FileOnDisk
getActualPath
2JKisEmpty
EMN0
getCharset
PQR	toCharset.(Ljava/lang/String;)Ljava/nio/charset/Charset;
?TUVgetZipEntryM()Lcom/google/javascript/jscomp/serialization/SourceFileProto$ZipEntryOnDisk;
XMYIcom/google/javascript/jscomp/serialization/SourceFileProto$ZipEntryOnDisk
X[\0
getZipPath
X^_0getEntryNameajava/lang/AssertionError
`	,deP$SwitchMap$com$google$javascript$jscomp$serialization$SourceFileProto$SourceKind
6	hiESTRONG	klmno!java/nio/charset/StandardCharsetsUTF_8Ljava/nio/charset/Charset;
qrstRjava/nio/charset/CharsetforName
?
_wxytoProtoLocationBuilderX(Ljava/lang/String;)Lcom/google/javascript/jscomp/serialization/SourceFileProto$Builder;
{|}~yBcom/google/javascript/jscomp/serialization/SourceFileProto$BuildersetFilename
???sourceKindToProto?(Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;)Lcom/google/javascript/jscomp/serialization/SourceFileProto$SourceKind;
{???
setSourceKind?(Lcom/google/javascript/jscomp/serialization/SourceFileProto$SourceKind;)Lcom/google/javascript/jscomp/serialization/SourceFileProto$Builder;
{???setIsClosureUnawareCodeG(Z)Lcom/google/javascript/jscomp/serialization/SourceFileProto$Builder;
{???setNumLinesPlusOneG(I)Lcom/google/javascript/jscomp/serialization/SourceFileProto$Builder;
{???setNumBytesPlusOne
{???>()Lcom/google/javascript/jscomp/serialization/SourceFileProto;	,??B$SwitchMap$com$google$javascript$rhino$StaticSourceFile$SourceKind
6	??CODE?K?&(Ljava/lang/String;)Ljava/lang/String;?,com/google/javascript/rhino/StaticSourceFileUTF8_BOM
ConstantValueSOURCE_EXCERPT_REGION_LENGTHRuntimeVisibleTypeAnnotations#Lorg/jspecify/annotations/Nullable;?(Lcom/google/javascript/jscomp/SourceFile$CodeLoader;Ljava/lang/String;Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;)VCodeLineNumberTableLocalVariableTablethis)Lcom/google/javascript/jscomp/SourceFile;
StackMapTableMethodParameters
getLineOffsetlinenogetNumLineseLjava/io/IOException;getNumBytes	localCodeoffsetsindexoffset
ExceptionssetCodeDeprecated
DeprecatedRuntimeVisibleAnnotationsLjava/lang/Deprecated;
getCodeReaderuncachedReaderLjava/io/Reader;RuntimeInvisibleAnnotations/Lcom/google/common/annotations/GwtIncompatible;valuejava.io.Reader
sourceCodegetOriginalPath,Lcom/google/errorprone/annotations/InlineMe;replacementthis.getName()clearCachedSourcehasSourceInMemorysetKind<(Lcom/google/javascript/rhino/StaticSourceFile$SourceKind;)VinsertionPointsearchgetColumnOfOffsetlinegetLinejs
lineNumberposgetLines)(II)Lcom/google/javascript/jscomp/Region;endCharendLine	getRegion((I)Lcom/google/javascript/jscomp/Region;nextposnlast	startLineendtoStringfromZipFile>(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/util/List;inputLjava/io/InputStream;zipNameinputCharset	Signaturei(Ljava/lang/String;Ljava/nio/charset/Charset;)Ljava/util/List;	entryNamezipEntryLjava/util/zip/ZipEntry;inLjava/util/zip/ZipInputStream;absoluteZipPathsourceFilesLjava/util/List;LocalVariableTypeTable;Ljava/util/List;~(Ljava/lang/String;Ljava/io/InputStream;Ljava/nio/charset/Charset;)Ljava/util/List;java.util.zip.ZipInputStreamfromFileW(Ljava/lang/String;Ljava/nio/charset/Charset;)Lcom/google/javascript/jscomp/SourceFile;charsetjava.io.File=(Ljava/lang/String;)Lcom/google/javascript/jscomp/SourceFile;fromPathY(Ljava/nio/file/Path;Ljava/nio/charset/Charset;)Lcom/google/javascript/jscomp/SourceFile;pathLjava/nio/file/Path;O(Ljava/lang/String;Ljava/lang/String;)Lcom/google/javascript/jscomp/SourceFile;restoreCachedStateFrom?(Lcom/google/javascript/jscomp/serialization/SourceFileProto;)VprotoSourceFile
SourceFileSourceFile.javaNestMembers8com/google/javascript/jscomp/SourceFile$CodeLoader$AtZip9com/google/javascript/jscomp/SourceFile$CodeLoader$OnDisk??B??'???S*?*?*?
*?*?*?,??
?"Y$?&?)?+?1?
,?+)?7M*+?;*,??*-?B??:[R	TXY,\$].`9aCdHeMfRg?*S??S=>SASDE??._2?
=AD???x.*?F?*????"Y*???I?&?*?d.??klm%p?.??.?????u?t*??*?ML?L?*??P?{??????????OP?u?t*??*?ML?L?*??P?????????????OPH?4b*???*?
L+?*?ML?MRL*?
??*??
M>6+
?TY6??,?O???,????X*,??P?N???
??????$?%?,?.?1?@?C?N?\?a??>??b??
U?,6?.4?11?? ?2P??	@O0??,*?
?#*YL?*?
?**?;?^?c+çM+?,?*?
?""%"??????'??,????D???P?(?>*+?c??
??????????i??8*?
?(*YL?*?
?*?;?fM,?,+ð+çN+?-??jY*?M?l?!'"$''*'?"??????"?,????8????"D???P???s?e(??N*?
*?+?B+m?o?
+m?r?vL*+?
*+?r?=>+
?TY>??????*???:??
???!?&?.?0?2???B?H?M??*02?N??N??!?????	??0?/*?z???????????s???4*?c??
?????B
*?
?????
???@|0?/*????????/*?B??$??????>*+?B??
)*???DE?D?/*???0???*?4*???
45???????+*?F*??}=?`?`h>d*??d??`??9:
;<>??*?+??+?
????????S*??=*?d.d??
EF? ???????y?R*?MM?N?*?F*?????<*?d.>,
?T?,?r??,?v?,,
?T???P?>SVT	UWXY\]!`*b5f=g?iEl?>?	??R??R?G?*(??HP?2??????????*?MN?:?*?F*?????<?=*?d.6-?r???YR???66`?-*???#*???
*?.?-?r6????-d??
???Y-d???????Y-?????P?Z}?~
???? ?"?&?(?2?;?G?K?N?a?{????????\	?
????????t??2??Kk?Nh??HP?2??&C!?	?t??????RM*?MM?N?>d`??66? ,
?T6??`>????666?",
?T6???????????:,?rd6,??
???Y,???????Y,?v?????Y,?????P?v????????%?.?4?7?<?B?E?I?R?\?b?e?h?q?w?y???????????z??.?$?L%??/????????????E??I???3?2P???
?	??+??????0?/*????????	????(??Y*??M*,+??N,??-?N,???:-??-?	????	????? 	??(?(?o?,?2q???2q????P?	???????s?	???????Y*????N??Y??:??Y+,??:??Y:?@??:??Ú?????,??*??????-?ڶ޹?W?????:??:???? hp?rwz??J??? ?+?2?<???A?E?S?Y?\?_?e?h?p????R23?(@?? f?????????o}?t???t???A? 2????2?(G??	2?q2??????P?
????????s?	???C??*??+?ʶް???A?o?	A????s?	???5??*??ް???A?A???s?	???C??*??+?ʶް?????o?	?????s?	>??Q??*??,??+??ް?? ADE?
AD	>?C??*??+??ް?	?A?	A?@t+??*?z?1?*?z+????+????*?	?
??*?z?+?d=+?d>*??*??*??*??*+????B!""##5%8";+B,I2Z3k4s5?*t??tB2I+?B0@	????L???	&??,*? L*+?$M,*?d?,*?d?*??,?(,??9:<=>&?*A? ,'E!	???*????s?
&'?Y??+*?0?4.??*i?*??*?9+?




© 2015 - 2024 Weber Informatics LLC | Privacy Policy