Package com.google.javascript.jscomp
Class JSSourceFile
java.lang.Object
com.google.javascript.jscomp.SourceFile
com.google.javascript.jscomp.JSSourceFile
- All Implemented Interfaces:
StaticSourceFile
,Serializable
Deprecated.
JSSourceFile is an empty wrapper around SourceFile. Just
use SourceFile directly.
An abstract representation of a JavaScript source file, as input to
JSCompiler.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class com.google.javascript.jscomp.SourceFile
SourceFile.Builder, SourceFile.Generator
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Deprecated.static JSSourceFile
Deprecated.static JSSourceFile
Deprecated.static JSSourceFile
Deprecated.static JSSourceFile
Deprecated.static JSSourceFile
Deprecated.static JSSourceFile
fromGenerator
(String fileName, SourceFile.Generator generator) Deprecated.static JSSourceFile
fromInputStream
(String fileName, InputStream s) Deprecated.getCode()
Deprecated.Gets all the code in this source file.Methods inherited from class com.google.javascript.jscomp.SourceFile
builder, fromCode, fromInputStream, fromReader, getCodeReader, getColumnOfOffset, getLine, getLineOffset, getLineOfOffset, getName, getOriginalPath, getRegion, isExtern, setOriginalPath, toString
-
Method Details
-
fromFile
Deprecated. -
fromFile
Deprecated. -
fromFile
Deprecated. -
fromFile
Deprecated. -
fromCode
Deprecated. -
fromInputStream
Deprecated.- Throws:
IOException
-
fromGenerator
Deprecated. -
getCode
Deprecated.Description copied from class:SourceFile
Gets all the code in this source file.- Overrides:
getCode
in classSourceFile
- Throws:
IOException
-
clearCachedSource
public void clearCachedSource()Deprecated.- Overrides:
clearCachedSource
in classSourceFile
-