public class ClosureConfig extends Object
Constructor and Description |
---|
ClosureConfig(com.google.javascript.jscomp.CompilerOptions.LanguageMode languageIn,
com.google.javascript.jscomp.CompilerOptions.LanguageMode languageOut,
com.google.javascript.jscomp.CompilerOptions.Environment environment,
com.google.javascript.jscomp.CompilationLevel compilationLevel,
com.google.javascript.jscomp.DependencyOptions dependencyOptions,
List<com.google.javascript.jscomp.SourceFile> externs,
boolean createSourceMap,
Map<com.google.javascript.jscomp.DiagnosticGroup,com.google.javascript.jscomp.CheckLevel> warningLevels,
boolean angularPass,
List<String> extraAnnotations,
Map<String,String> defineReplacements)
Init Closure Compiler values.
|
Modifier and Type | Method and Description |
---|---|
Boolean |
getAngularPass()
Gets the angularPass.
|
Boolean |
getColorizeErrorOutput()
Gets the colorizeErrorOutput.
|
com.google.javascript.jscomp.CompilationLevel |
getCompilationLevel()
Gets the compilationLevel.
|
Map<String,Object> |
getDefineReplacements()
Gets the defineReplacements.
|
com.google.javascript.jscomp.DependencyOptions |
getDependencyOptions()
Gets the dependencyOptions.
|
com.google.javascript.jscomp.CompilerOptions.Environment |
getEnvironment()
Gets the environment.
|
List<com.google.javascript.jscomp.SourceFile> |
getExterns()
Gets the externs.
|
List<String> |
getExtraAnnotations()
Gets the extraAnnotations.
|
com.google.javascript.jscomp.CompilerOptions.LanguageMode |
getLanguageIn()
Gets the languageIn.
|
com.google.javascript.jscomp.CompilerOptions.LanguageMode |
getLanguageOut()
Gets the languageOut.
|
com.google.javascript.jscomp.SourceMap.Format |
getSourceMapFormat()
Gets the sourceMapFormat.
|
Map<com.google.javascript.jscomp.DiagnosticGroup,com.google.javascript.jscomp.CheckLevel> |
getWarningLevels()
Gets the warningLevels.
|
public ClosureConfig(com.google.javascript.jscomp.CompilerOptions.LanguageMode languageIn, com.google.javascript.jscomp.CompilerOptions.LanguageMode languageOut, com.google.javascript.jscomp.CompilerOptions.Environment environment, com.google.javascript.jscomp.CompilationLevel compilationLevel, com.google.javascript.jscomp.DependencyOptions dependencyOptions, List<com.google.javascript.jscomp.SourceFile> externs, boolean createSourceMap, Map<com.google.javascript.jscomp.DiagnosticGroup,com.google.javascript.jscomp.CheckLevel> warningLevels, boolean angularPass, List<String> extraAnnotations, Map<String,String> defineReplacements)
languageIn
- the version of ECMAScript used to report errors in the codelanguageOut
- the version of ECMAScript the code will be returned inenvironment
- the set of builtin externs to loadcompilationLevel
- the degree of compression and optimization to apply to JavaScriptdependencyOptions
- options for how to manage dependencies between input filesexterns
- preserve symbols that are defined outside of the code you are compilingcreateSourceMap
- create a source map for the minifed/combined production fileswarningLevels
- a map of warnings to enable or disable in the compilerangularPass
- use @ngInject
annotation to generate Angular injectionsextraAnnotations
- make extra annotations known to the closure enginedefineReplacements
- replacements for @defines
public com.google.javascript.jscomp.CompilerOptions.LanguageMode getLanguageIn()
public com.google.javascript.jscomp.CompilerOptions.LanguageMode getLanguageOut()
public com.google.javascript.jscomp.CompilerOptions.Environment getEnvironment()
public com.google.javascript.jscomp.CompilationLevel getCompilationLevel()
public com.google.javascript.jscomp.DependencyOptions getDependencyOptions()
public List<com.google.javascript.jscomp.SourceFile> getExterns()
public com.google.javascript.jscomp.SourceMap.Format getSourceMapFormat()
public Map<com.google.javascript.jscomp.DiagnosticGroup,com.google.javascript.jscomp.CheckLevel> getWarningLevels()
public Boolean getColorizeErrorOutput()
public Boolean getAngularPass()
public List<String> getExtraAnnotations()
public Map<String,Object> getDefineReplacements()
Copyright © 2009–2016 Samuel Santos. All rights reserved.