Uses of Class
com.google.javascript.jscomp.SourceFile
-
Packages that use SourceFile Package Description com.google.javascript.jscomp Provides the core compiler and its public API.com.google.javascript.jscomp.bundle com.google.javascript.jscomp.deps Analyzes information about dependencies between files.com.google.javascript.jscomp.transpile com.google.javascript.refactoring -
-
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. transpiledFilesMethods 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 SourceFileSourceFile.Builder. buildFromCode(java.lang.String fileName, java.lang.String code)SourceFileSourceFile.Builder. buildFromFile(java.lang.String fileName)SourceFileSourceFile.Builder. buildFromGenerator(java.lang.String fileName, SourceFile.Generator generator)SourceFileSourceFile.Builder. buildFromInputStream(java.lang.String fileName, java.io.InputStream s)SourceFileSourceFile.Builder. buildFromPath(java.nio.file.Path path)SourceFileSourceFile.Builder. buildFromReader(java.lang.String fileName, java.io.Reader r)SourceFileSourceFile.Builder. buildFromZipEntry(com.google.javascript.jscomp.ZipEntryReader zipEntryReader)static SourceFileSourceFile. fromCode(java.lang.String fileName, java.lang.String code)static SourceFileSourceFile. fromCode(java.lang.String fileName, java.lang.String code, StaticSourceFile.SourceKind kind)static SourceFileSourceFile. fromFile(java.lang.String fileName)static SourceFileSourceFile. fromFile(java.lang.String fileName, java.nio.charset.Charset charset)static SourceFileSourceFile. fromFile(java.lang.String fileName, java.nio.charset.Charset charset, StaticSourceFile.SourceKind kind)static SourceFileSourceFile. fromGenerator(java.lang.String fileName, SourceFile.Generator generator)static SourceFileSourceFile. fromInputStream(java.lang.String fileName, java.io.InputStream s)Deprecated.static SourceFileSourceFile. fromInputStream(java.lang.String fileName, java.io.InputStream s, java.nio.charset.Charset charset)static SourceFileSourceFile. fromPath(java.nio.file.Path path, java.nio.charset.Charset charset)static SourceFileSourceFile. fromPath(java.nio.file.Path path, java.nio.charset.Charset charset, StaticSourceFile.SourceKind kind)static SourceFileSourceFile. fromReader(java.lang.String fileName, java.io.Reader r)static SourceFileSourceFile. fromZipEntry(java.lang.String originalZipPath, java.lang.String absoluteZipPath, java.lang.String entryPath, java.nio.charset.Charset inputCharset)static SourceFileSourceFile. fromZipEntry(java.lang.String originalZipPath, java.lang.String absoluteZipPath, java.lang.String entryPath, java.nio.charset.Charset inputCharset, StaticSourceFile.SourceKind kind)SourceFileCompilerInput. getSourceFile()SourceFileJsAst. getSourceFile()SourceFileRecoverableJsAst. getSourceFile()SourceFileSourceAst. getSourceFile()Returns the source file the generated AST represents.SourceFileSyntheticAst. getSourceFile()SourceFileCompiler.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 voidJSModule. add(SourceFile file)Adds a source file input to this module.ResultCompiler. 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.NodeCompiler. parse(SourceFile file)voidSourceFile. restoreFrom(SourceFile sourceFile)voidCompilerInput. setSourceFile(SourceFile file)voidJsAst. setSourceFile(SourceFile file)voidRecoverableJsAst. setSourceFile(SourceFile file)voidSourceAst. setSourceFile(SourceFile file)Sets the source file the generated AST represents.voidSyntheticAst. 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 SourceFileCompilerBasedTransformer.CompilerSupplier. EMPTYprotected static SourceFileCompilerBasedTransformer.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 booleanDepsGenerator. 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 SourceFileBaseTranspiler.CompilerSupplier. createEmptySource()protected SourceFileBaseTranspiler.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.BuilderRefactoringDriver.Builder. addExterns(java.lang.Iterable<SourceFile> externs)RefactoringDriver.BuilderRefactoringDriver.Builder. addInputs(java.lang.Iterable<SourceFile> inputs)
-