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 TypeMethodDescriptionvoidDeprecated.static JSSourceFileDeprecated.static JSSourceFileDeprecated.static JSSourceFileDeprecated.static JSSourceFileDeprecated.static JSSourceFileDeprecated.static JSSourceFilefromGenerator(String fileName, SourceFile.Generator generator) Deprecated.static JSSourceFilefromInputStream(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:SourceFileGets all the code in this source file.- Overrides:
getCodein classSourceFile- Throws:
IOException
-
clearCachedSource
public void clearCachedSource()Deprecated.- Overrides:
clearCachedSourcein classSourceFile
-