java.lang.Object
com.sevenprinciplesmobility.maven.minify.common.ClosureConfig

public class ClosureConfig extends Object
  • Constructor Summary

    Constructors
    Constructor
    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.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the angularPass.
    Gets the colorizeErrorOutput.
    com.google.javascript.jscomp.CompilationLevel
    Gets the compilationLevel.
    Gets the defineReplacements.
    com.google.javascript.jscomp.DependencyOptions
    Gets the dependencyOptions.
    com.google.javascript.jscomp.CompilerOptions.Environment
    Gets the environment.
    List<com.google.javascript.jscomp.SourceFile>
    Gets the externs.
    Gets the extraAnnotations.
    com.google.javascript.jscomp.CompilerOptions.LanguageMode
    Gets the languageIn.
    com.google.javascript.jscomp.CompilerOptions.LanguageMode
    Gets the languageOut.
    com.google.javascript.jscomp.SourceMap.Format
    Gets the sourceMapFormat.
    Map<com.google.javascript.jscomp.DiagnosticGroup,com.google.javascript.jscomp.CheckLevel>
    Gets the warningLevels.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ClosureConfig

      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)
      Init Closure Compiler values.
      Parameters:
      languageIn - the version of ECMAScript used to report errors in the code
      languageOut - the version of ECMAScript the code will be returned in
      environment - the set of builtin externs to load
      compilationLevel - the degree of compression and optimization to apply to JavaScript
      dependencyOptions - options for how to manage dependencies between input files
      externs - preserve symbols that are defined outside of the code you are compiling
      createSourceMap - create a source map for the minifed/combined production files
      warningLevels - a map of warnings to enable or disable in the compiler
      angularPass - use @ngInject annotation to generate Angular injections
      extraAnnotations - make extra annotations known to the closure engine
      defineReplacements - replacements for @defines
  • Method Details

    • getLanguageIn

      public com.google.javascript.jscomp.CompilerOptions.LanguageMode getLanguageIn()
      Gets the languageIn.
      Returns:
      the languageIn
    • getLanguageOut

      public com.google.javascript.jscomp.CompilerOptions.LanguageMode getLanguageOut()
      Gets the languageOut.
      Returns:
      the languageOut
    • getEnvironment

      public com.google.javascript.jscomp.CompilerOptions.Environment getEnvironment()
      Gets the environment.
      Returns:
      the environment
    • getCompilationLevel

      public com.google.javascript.jscomp.CompilationLevel getCompilationLevel()
      Gets the compilationLevel.
      Returns:
      the compilationLevel
    • getDependencyOptions

      public com.google.javascript.jscomp.DependencyOptions getDependencyOptions()
      Gets the dependencyOptions.
      Returns:
      the dependencyOptions
    • getExterns

      public List<com.google.javascript.jscomp.SourceFile> getExterns()
      Gets the externs.
      Returns:
      the externs
    • getSourceMapFormat

      public com.google.javascript.jscomp.SourceMap.Format getSourceMapFormat()
      Gets the sourceMapFormat.
      Returns:
      the sourceMapFormat
    • getWarningLevels

      public Map<com.google.javascript.jscomp.DiagnosticGroup,com.google.javascript.jscomp.CheckLevel> getWarningLevels()
      Gets the warningLevels.
      Returns:
      the warningLevels
    • getColorizeErrorOutput

      public Boolean getColorizeErrorOutput()
      Gets the colorizeErrorOutput.
      Returns:
      the colorizeErrorOutput
    • getAngularPass

      public Boolean getAngularPass()
      Gets the angularPass.
      Returns:
      the angularPass
    • getExtraAnnotations

      public List<String> getExtraAnnotations()
      Gets the extraAnnotations.
      Returns:
      the extraAnnotations
    • getDefineReplacements

      public Map<String,Object> getDefineReplacements()
      Gets the defineReplacements.
      Returns:
      the defineReplacements