Package com.google.javascript.jscomp
Class JSSourceFile
- java.lang.Object
-
- com.google.javascript.jscomp.SourceFile
-
- com.google.javascript.jscomp.JSSourceFile
-
- All Implemented Interfaces:
StaticSourceFile
,java.io.Serializable
@Deprecated public class JSSourceFile extends SourceFile implements java.io.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:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.javascript.jscomp.SourceFile
SourceFile.Builder, SourceFile.Generator
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
clearCachedSource()
Deprecated.static JSSourceFile
fromCode(java.lang.String fileName, java.lang.String code)
Deprecated.static JSSourceFile
fromFile(java.io.File file)
Deprecated.static JSSourceFile
fromFile(java.io.File file, java.nio.charset.Charset charSet)
Deprecated.static JSSourceFile
fromFile(java.lang.String fileName)
Deprecated.static JSSourceFile
fromFile(java.lang.String fileName, java.nio.charset.Charset charSet)
Deprecated.static JSSourceFile
fromGenerator(java.lang.String fileName, SourceFile.Generator generator)
Deprecated.static JSSourceFile
fromInputStream(java.lang.String fileName, java.io.InputStream s)
Deprecated.java.lang.String
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 Detail
-
fromFile
public static JSSourceFile fromFile(java.lang.String fileName, java.nio.charset.Charset charSet)
Deprecated.
-
fromFile
public static JSSourceFile fromFile(java.lang.String fileName)
Deprecated.
-
fromFile
public static JSSourceFile fromFile(java.io.File file, java.nio.charset.Charset charSet)
Deprecated.
-
fromFile
public static JSSourceFile fromFile(java.io.File file)
Deprecated.
-
fromCode
public static JSSourceFile fromCode(java.lang.String fileName, java.lang.String code)
Deprecated.
-
fromInputStream
public static JSSourceFile fromInputStream(java.lang.String fileName, java.io.InputStream s) throws java.io.IOException
Deprecated.- Throws:
java.io.IOException
-
fromGenerator
public static JSSourceFile fromGenerator(java.lang.String fileName, SourceFile.Generator generator)
Deprecated.
-
getCode
public java.lang.String getCode() throws java.io.IOException
Deprecated.Description copied from class:SourceFile
Gets all the code in this source file.- Overrides:
getCode
in classSourceFile
- Throws:
java.io.IOException
-
clearCachedSource
public void clearCachedSource()
Deprecated.- Overrides:
clearCachedSource
in classSourceFile
-
-