当前位置: 首页>>代码示例>>Java>>正文


Java WarningLevel.DEFAULT属性代码示例

本文整理汇总了Java中com.google.javascript.jscomp.WarningLevel.DEFAULT属性的典型用法代码示例。如果您正苦于以下问题:Java WarningLevel.DEFAULT属性的具体用法?Java WarningLevel.DEFAULT怎么用?Java WarningLevel.DEFAULT使用的例子?那么恭喜您, 这里精选的属性代码示例或许可以为您提供帮助。您也可以进一步了解该属性所在com.google.javascript.jscomp.WarningLevel的用法示例。


在下文中一共展示了WarningLevel.DEFAULT属性的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: CompileTask

public CompileTask() {
  this.languageIn = CompilerOptions.LanguageMode.ECMASCRIPT3;
  this.warningLevel = WarningLevel.DEFAULT;
  this.debugOptions = false;
  this.compilationLevel = CompilationLevel.SIMPLE_OPTIMIZATIONS;
  this.customExternsOnly = false;
  this.manageDependencies = false;
  this.prettyPrint = false;
  this.printInputDelimiter = false;
  this.generateExports = false;
  this.replaceProperties = false;
  this.forceRecompile = false;
  this.replacePropertiesPrefix = "closure.define.";
  this.defineParams = Lists.newLinkedList();
  this.externFileLists = Lists.newLinkedList();
  this.sourceFileLists = Lists.newLinkedList();
  this.sourcePaths = Lists.newLinkedList();
  this.warnings = Lists.newLinkedList();
}
 
开发者ID:SpoonLabs,项目名称:astor,代码行数:19,代码来源:CompileTask.java

示例2: CompileTask

public CompileTask() {
  this.languageIn = CompilerOptions.LanguageMode.ECMASCRIPT_2015;
  this.languageOut = CompilerOptions.LanguageMode.ECMASCRIPT3;
  this.warningLevel = WarningLevel.DEFAULT;
  this.debugOptions = false;
  this.compilationLevel = CompilationLevel.SIMPLE_OPTIMIZATIONS;
  this.environment = CompilerOptions.Environment.BROWSER;
  this.manageDependencies = false;
  this.prettyPrint = false;
  this.printInputDelimiter = false;
  this.preferSingleQuotes = false;
  this.generateExports = false;
  this.replaceProperties = false;
  this.forceRecompile = false;
  this.angularPass = false;
  this.replacePropertiesPrefix = "closure.define.";
  this.defineParams = new ArrayList<>();
  this.entryPointParams = new ArrayList<>();
  this.externFileLists = new ArrayList<>();
  this.sourceFileLists = new ArrayList<>();
  this.sourcePaths = new ArrayList<>();
  this.warnings = new ArrayList<>();
}
 
开发者ID:google,项目名称:closure-compiler,代码行数:23,代码来源:CompileTask.java

示例3: CompileTask

public CompileTask() {
  this.languageIn = CompilerOptions.LanguageMode.ECMASCRIPT3;
  this.warningLevel = WarningLevel.DEFAULT;
  this.debugOptions = false;
  this.compilationLevel = CompilationLevel.SIMPLE_OPTIMIZATIONS;
  this.customExternsOnly = false;
  this.manageDependencies = false;
  this.prettyPrint = false;
  this.printInputDelimiter = false;
  this.generateExports = false;
  this.replaceProperties = false;
  this.forceRecompile = false;
  this.replacePropertiesPrefix = "closure.define.";
  this.defineParams = Lists.newLinkedList();
  this.entryPointParams = Lists.newLinkedList();
  this.externFileLists = Lists.newLinkedList();
  this.sourceFileLists = Lists.newLinkedList();
  this.sourcePaths = Lists.newLinkedList();
  this.warnings = Lists.newLinkedList();
}
 
开发者ID:nicks,项目名称:closure-compiler-old,代码行数:20,代码来源:CompileTask.java

示例4: CompileTask

public CompileTask() {
  this.warningLevel = WarningLevel.DEFAULT;
  this.debugOptions = false;
  this.compilationLevel = CompilationLevel.SIMPLE_OPTIMIZATIONS;
  this.customExternsOnly = false;
  this.externFileLists = Lists.newLinkedList();
  this.sourceFileLists = Lists.newLinkedList();
}
 
开发者ID:andyjko,项目名称:feedlack,代码行数:8,代码来源:CompileTask.java

示例5: setWarning

/**
 * Set the warning level.
 * @param value The warning level by string name. (default, quiet, verbose).
 */
public void setWarning(String value) {
  if ("default".equalsIgnoreCase(value)) {
    this.warningLevel = WarningLevel.DEFAULT;
  } else if ("quiet".equalsIgnoreCase(value)) {
    this.warningLevel = WarningLevel.QUIET;
  } else if ("verbose".equalsIgnoreCase(value)) {
    this.warningLevel = WarningLevel.VERBOSE;
  } else {
    throw new BuildException(
        "Unrecognized 'warning' option value (" + value + ")");
  }
}
 
开发者ID:andyjko,项目名称:feedlack,代码行数:16,代码来源:CompileTask.java

示例6: CompileTask

public CompileTask() {
  this.warningLevel = WarningLevel.DEFAULT;
  this.debugOptions = false;
  this.compilationLevel = CompilationLevel.SIMPLE_OPTIMIZATIONS;
  this.customExternsOnly = false;
  this.manageDependencies = false;
  this.externFileLists = Lists.newLinkedList();
  this.sourceFileLists = Lists.newLinkedList();
}
 
开发者ID:ehsan,项目名称:js-symbolic-executor,代码行数:9,代码来源:CompileTask.java


注:本文中的com.google.javascript.jscomp.WarningLevel.DEFAULT属性示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。