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 voidclearCachedSource()Deprecated.static JSSourceFilefromCode(java.lang.String fileName, java.lang.String code)Deprecated.static JSSourceFilefromFile(java.io.File file)Deprecated.static JSSourceFilefromFile(java.io.File file, java.nio.charset.Charset charSet)Deprecated.static JSSourceFilefromFile(java.lang.String fileName)Deprecated.static JSSourceFilefromFile(java.lang.String fileName, java.nio.charset.Charset charSet)Deprecated.static JSSourceFilefromGenerator(java.lang.String fileName, SourceFile.Generator generator)Deprecated.static JSSourceFilefromInputStream(java.lang.String fileName, java.io.InputStream s)Deprecated.java.lang.StringgetCode()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.IOExceptionDeprecated.Description copied from class:SourceFileGets all the code in this source file.- Overrides:
getCodein classSourceFile- Throws:
java.io.IOException
-
clearCachedSource
public void clearCachedSource()
Deprecated.- Overrides:
clearCachedSourcein classSourceFile
-
-