Package | Description |
---|---|
com.google.javascript.jscomp |
Provides the core compiler and its public API.
|
com.google.javascript.jscomp.bundle | |
com.google.javascript.jscomp.transpile | |
com.google.javascript.refactoring |
Modifier and Type | Class and Description |
---|---|
class |
AbstractCommandLineRunner<A extends Compiler,B extends CompilerOptions>
Implementations of AbstractCommandLineRunner translate flags into Java
API calls on the Compiler.
|
Modifier and Type | Field and Description |
---|---|
protected CompilerOptions |
PassConfig.options |
Modifier and Type | Method and Description |
---|---|
protected CompilerOptions |
CommandLineRunner.createOptions() |
static CompilerOptions |
CompilerOptions.deserialize(java.io.InputStream objectInputStream)
Deserializes compiler options from a stream.
|
CompilerOptions |
Compiler.getOptions() |
protected CompilerOptions |
Compiler.newCompilerOptions()
Allow subclasses to override the default CompileOptions object.
|
CompilerOptions |
CompilerOptions.setEmitUseStrict(boolean emitUseStrict) |
CompilerOptions |
CompilerOptions.setStrictModeInput(boolean isStrictModeInput) |
Modifier and Type | Method and Description |
---|---|
static void |
TranspilationPasses.addPostCheckTranspilationPasses(java.util.List<PassFactory> passes,
CompilerOptions options)
Adds transpilation passes that should run after all checks are done.
|
static void |
TranspilationPasses.addPreTypecheckTranspilationPasses(java.util.List<PassFactory> passes,
CompilerOptions options) |
protected abstract void |
AbstractCommandLineRunner.addWhitelistWarningsGuard(CompilerOptions options,
java.io.File whitelistFile) |
protected void |
CommandLineRunner.addWhitelistWarningsGuard(CompilerOptions options,
java.io.File whitelistFile) |
<T1 extends SourceFile,T2 extends SourceFile> |
Compiler.compile(java.util.List<T1> externs,
java.util.List<T2> inputs,
CompilerOptions options)
Compiles a list of inputs.
|
Result |
Compiler.compile(SourceFile extern,
SourceFile input,
CompilerOptions options)
Compiles a single source file and a single externs file.
|
<T extends SourceFile> |
Compiler.compileModules(java.util.List<T> externs,
java.util.List<JSModule> modules,
CompilerOptions options)
Compiles a list of modules.
|
static void |
AbstractCommandLineRunner.createDefineOrTweakReplacements(java.util.List<java.lang.String> definitions,
CompilerOptions options,
boolean tweaks)
Create a map of constant names to constant values from a textual description of the map.
|
protected java.util.List<SourceFile> |
AbstractCommandLineRunner.createExterns(CompilerOptions options) |
protected java.util.List<SourceFile> |
CommandLineRunner.createExterns(CompilerOptions options) |
<T1 extends SourceFile,T2 extends SourceFile> |
Compiler.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> |
Compiler.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.
|
void |
Compiler.initOptions(CompilerOptions options)
Initializes the compiler options.
|
CodePrinter.Builder |
CodePrinter.Builder.setCompilerOptions(CompilerOptions options)
Sets the output options from compiler options.
|
void |
CompilationLevel.setDebugOptionsForCompilationLevel(CompilerOptions options) |
void |
CompilationLevel.setOptionsForCompilationLevel(CompilerOptions options) |
void |
WarningLevel.setOptionsForWarningLevel(CompilerOptions options) |
protected void |
AbstractCommandLineRunner.setRunOptions(CompilerOptions options)
Sets options based on the configurations set flags API.
|
void |
CompilationLevel.setTypeBasedOptimizationOptions(CompilerOptions options)
Enable additional optimizations that use type information.
|
protected static void |
AbstractCommandLineRunner.setWarningGuardOptions(CompilerOptions options,
java.util.ArrayList<AbstractCommandLineRunner.FlagEntry<CheckLevel>> warningGuards,
DiagnosticGroups diagnosticGroups) |
void |
DiagnosticGroups.setWarningLevel(CompilerOptions options,
java.lang.String name,
CheckLevel level)
Adds warning levels by name.
|
void |
CompilationLevel.setWrappedOutputOptimizations(CompilerOptions options)
Enable additional optimizations that operate on global declarations.
|
Constructor and Description |
---|
CodeGenerator(CodeConsumer consumer,
CompilerOptions options) |
ConformancePassConfig(CompilerOptions options,
PassConfig delegate) |
DefaultPassConfig(CompilerOptions options) |
JsMessageExtractor(JsMessage.IdGenerator idGenerator,
JsMessage.Style style,
CompilerOptions options,
boolean extractExternalMessages) |
PassConfig(CompilerOptions options) |
Modifier and Type | Method and Description |
---|---|
protected CompilerOptions |
CompilerBasedTransformer.CompilerSupplier.options() |
Modifier and Type | Method and Description |
---|---|
protected void |
CoverageInstrumenter.CompilerSupplier.setOptions(CompilerOptions options) |
protected void |
CompilerBasedTransformer.CompilerSupplier.setOptions(CompilerOptions options) |
Modifier and Type | Method and Description |
---|---|
protected CompilerOptions |
BaseTranspiler.CompilerSupplier.options() |
Modifier and Type | Method and Description |
---|---|
protected void |
BaseTranspiler.CompilerSupplier.setOptions(CompilerOptions options) |
Modifier and Type | Method and Description |
---|---|
static CompilerOptions |
RefactoringDriver.getCompilerOptions() |
Modifier and Type | Method and Description |
---|---|
RefactoringDriver.Builder |
RefactoringDriver.Builder.withCompilerOptions(CompilerOptions compilerOptions) |
Copyright © 2009-2019 Google. All Rights Reserved.