Uses of Class
com.google.javascript.jscomp.SourceFile
-
-
Uses of SourceFile in com.google.javascript.jscomp
Fields in com.google.javascript.jscomp with type parameters of type SourceFile Modifier and Type Field Description java.util.Set<SourceFile>
Result. transpiledFiles
Methods in com.google.javascript.jscomp with type parameters of type SourceFile Modifier and Type Method Description <T1 extends SourceFile,T2 extends SourceFile>
ResultCompiler. compile(java.util.List<T1> externs, java.util.List<T2> inputs, CompilerOptions options)
Compiles a list of inputs.<T1 extends SourceFile,T2 extends SourceFile>
ResultCompiler. compile(java.util.List<T1> externs, java.util.List<T2> inputs, CompilerOptions options)
Compiles a list of inputs.<T extends SourceFile>
ResultCompiler. compileModules(java.util.List<T> externs, java.util.List<JSModule> modules, CompilerOptions options)
Compiles a list of modules.<T extends SourceFile>
java.util.Collection<JsMessage>JsMessageExtractor. extractMessages(java.lang.Iterable<T> inputs)
Extracts JS messages from JavaScript code.<T1 extends SourceFile,T2 extends SourceFile>
voidCompiler. init(java.util.List<T1> externs, java.util.List<T2> sources, CompilerOptions options)
Initializes the instance state needed for a compile job.<T1 extends SourceFile,T2 extends SourceFile>
voidCompiler. init(java.util.List<T1> externs, java.util.List<T2> sources, CompilerOptions options)
Initializes the instance state needed for a compile job.<T extends SourceFile>
voidCompiler. initModules(java.util.List<T> externs, java.util.List<JSModule> modules, CompilerOptions options)
Initializes the instance state needed for a compile job if the sources are in modules.Methods in com.google.javascript.jscomp that return SourceFile Modifier and Type Method Description SourceFile
SourceFile.Builder. buildFromCode(java.lang.String fileName, java.lang.String code)
SourceFile
SourceFile.Builder. buildFromFile(java.lang.String fileName)
SourceFile
SourceFile.Builder. buildFromGenerator(java.lang.String fileName, SourceFile.Generator generator)
SourceFile
SourceFile.Builder. buildFromInputStream(java.lang.String fileName, java.io.InputStream s)
SourceFile
SourceFile.Builder. buildFromPath(java.nio.file.Path path)
SourceFile
SourceFile.Builder. buildFromReader(java.lang.String fileName, java.io.Reader r)
SourceFile
SourceFile.Builder. buildFromZipEntry(com.google.javascript.jscomp.ZipEntryReader zipEntryReader)
static SourceFile
SourceFile. fromCode(java.lang.String fileName, java.lang.String code)
static SourceFile
SourceFile. fromCode(java.lang.String fileName, java.lang.String code, StaticSourceFile.SourceKind kind)
static SourceFile
SourceFile. fromFile(java.lang.String fileName)
static SourceFile
SourceFile. fromFile(java.lang.String fileName, java.nio.charset.Charset charset)
static SourceFile
SourceFile. fromFile(java.lang.String fileName, java.nio.charset.Charset charset, StaticSourceFile.SourceKind kind)
static SourceFile
SourceFile. fromGenerator(java.lang.String fileName, SourceFile.Generator generator)
static SourceFile
SourceFile. fromInputStream(java.lang.String fileName, java.io.InputStream s)
Deprecated.static SourceFile
SourceFile. fromInputStream(java.lang.String fileName, java.io.InputStream s, java.nio.charset.Charset charset)
static SourceFile
SourceFile. fromPath(java.nio.file.Path path, java.nio.charset.Charset charset)
static SourceFile
SourceFile. fromPath(java.nio.file.Path path, java.nio.charset.Charset charset, StaticSourceFile.SourceKind kind)
static SourceFile
SourceFile. fromReader(java.lang.String fileName, java.io.Reader r)
static SourceFile
SourceFile. fromZipEntry(java.lang.String originalZipPath, java.lang.String absoluteZipPath, java.lang.String entryPath, java.nio.charset.Charset inputCharset)
static SourceFile
SourceFile. fromZipEntry(java.lang.String originalZipPath, java.lang.String absoluteZipPath, java.lang.String entryPath, java.nio.charset.Charset inputCharset, StaticSourceFile.SourceKind kind)
SourceFile
CompilerInput. getSourceFile()
SourceFile
JsAst. getSourceFile()
SourceFile
RecoverableJsAst. getSourceFile()
SourceFile
SourceAst. getSourceFile()
Returns the source file the generated AST represents.SourceFile
SyntheticAst. getSourceFile()
SourceFile
Compiler.ExternalSourceLoader. loadSource(java.lang.String filename)
Methods in com.google.javascript.jscomp that return types with arguments of type SourceFile Modifier and Type Method Description protected java.util.List<SourceFile>
AbstractCommandLineRunner. createExterns(CompilerOptions options)
protected java.util.List<SourceFile>
CommandLineRunner. createExterns(CompilerOptions options)
protected java.util.List<SourceFile>
AbstractCommandLineRunner. createInputs(java.util.List<AbstractCommandLineRunner.FlagEntry<AbstractCommandLineRunner.JsSourceType>> files, java.util.List<AbstractCommandLineRunner.JsonFileSpec> jsonFiles, boolean allowStdIn, java.util.List<AbstractCommandLineRunner.JsModuleSpec> jsModuleSpecs)
Creates inputs from a list of source files, zips and json files.static java.util.List<SourceFile>
SourceFile. fromZipFile(java.lang.String zipName, java.nio.charset.Charset inputCharset)
static java.util.List<SourceFile>
SourceFile. fromZipInput(java.lang.String zipName, java.io.InputStream input, java.nio.charset.Charset inputCharset)
static java.util.List<SourceFile>
AbstractCommandLineRunner. getBuiltinExterns(CompilerOptions.Environment env)
static java.util.List<SourceFile>
CommandLineRunner. getDefaultExterns()
Deprecated.static java.util.List<SourceFile>
DefaultExterns. prepareExterns(CompilerOptions.Environment env, java.util.Map<java.lang.String,SourceFile> externs)
Filters and orders the passed externs for the specified environment.Methods in com.google.javascript.jscomp with parameters of type SourceFile Modifier and Type Method Description void
JSModule. add(SourceFile file)
Adds a source file input to this module.Result
Compiler. compile(SourceFile extern, SourceFile input, CompilerOptions options)
Compiles a single source file and a single externs file.java.util.Collection<JsMessage>
JsMessageExtractor. extractMessages(SourceFile... inputs)
Extracts JS messages from JavaScript code.Node
Compiler. parse(SourceFile file)
void
SourceFile. restoreFrom(SourceFile sourceFile)
void
CompilerInput. setSourceFile(SourceFile file)
void
JsAst. setSourceFile(SourceFile file)
void
RecoverableJsAst. setSourceFile(SourceFile file)
void
SourceAst. setSourceFile(SourceFile file)
Sets the source file the generated AST represents.void
SyntheticAst. setSourceFile(SourceFile file)
Method parameters in com.google.javascript.jscomp with type arguments of type SourceFile Modifier and Type Method Description static java.util.List<SourceFile>
DefaultExterns. prepareExterns(CompilerOptions.Environment env, java.util.Map<java.lang.String,SourceFile> externs)
Filters and orders the passed externs for the specified environment.Constructors in com.google.javascript.jscomp with parameters of type SourceFile Constructor Description CompilerInput(SourceFile file)
CompilerInput(SourceFile file, boolean isExtern)
JsAst(SourceFile sourceFile)
SourceMapInput(SourceFile sourceFile)
-
Uses of SourceFile in com.google.javascript.jscomp.bundle
Fields in com.google.javascript.jscomp.bundle declared as SourceFile Modifier and Type Field Description protected static SourceFile
CompilerBasedTransformer.CompilerSupplier. EMPTY
protected static SourceFile
CompilerBasedTransformer.CompilerSupplier. EXTERNS
-
Uses of SourceFile in com.google.javascript.jscomp.deps
Methods in com.google.javascript.jscomp.deps with parameters of type SourceFile Modifier and Type Method Description protected boolean
DepsGenerator. shouldSkipDepsFile(SourceFile file)
Returns whether we should ignore dependency info in the given deps file.Constructor parameters in com.google.javascript.jscomp.deps with type arguments of type SourceFile Constructor Description DepsGenerator(java.util.Collection<SourceFile> deps, java.util.Collection<SourceFile> srcs, DepsGenerator.InclusionStrategy mergeStrategy, java.lang.String closurePathAbs, ErrorManager errorManager, ModuleLoader loader)
Creates a new DepsGenerator. -
Uses of SourceFile in com.google.javascript.jscomp.transpile
Methods in com.google.javascript.jscomp.transpile that return SourceFile Modifier and Type Method Description protected SourceFile
BaseTranspiler.CompilerSupplier. createEmptySource()
protected SourceFile
BaseTranspiler.CompilerSupplier. createTrivialExterns()
-
Uses of SourceFile in com.google.javascript.refactoring
Method parameters in com.google.javascript.refactoring with type arguments of type SourceFile Modifier and Type Method Description RefactoringDriver.Builder
RefactoringDriver.Builder. addExterns(java.lang.Iterable<SourceFile> externs)
RefactoringDriver.Builder
RefactoringDriver.Builder. addInputs(java.lang.Iterable<SourceFile> inputs)
-