org.eclipse.jdt.internal.compiler.batch.Main.setSeverity()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(14.3k)|赞(0)|评价(0)|浏览(199)

本文整理了Java中org.eclipse.jdt.internal.compiler.batch.Main.setSeverity()方法的一些代码示例,展示了Main.setSeverity()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Main.setSeverity()方法的具体详情如下:
包路径:org.eclipse.jdt.internal.compiler.batch.Main
类名称:Main
方法名:setSeverity

Main.setSeverity介绍

暂无

代码示例

代码示例来源:origin: org.jibx.config.3rdparty.org.eclipse/org.eclipse.jdt.core

  1. case 'a' :
  2. if (token.equals("allDeprecation")) { //$NON-NLS-1$
  3. setSeverity(CompilerOptions.OPTION_ReportDeprecation, severity, isEnabling);
  4. this.options.put(
  5. CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode,
  6. } else if (token.equals("allJavadoc")) { //$NON-NLS-1$
  7. this.warnAllJavadocOn = this.warnJavadocOn = isEnabling;
  8. setSeverity(CompilerOptions.OPTION_ReportInvalidJavadoc, severity, isEnabling);
  9. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocTags, severity, isEnabling);
  10. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocComments, severity, isEnabling);
  11. return;
  12. } else if (token.equals("assertIdentifier")) { //$NON-NLS-1$
  13. setSeverity(CompilerOptions.OPTION_ReportAssertIdentifier, severity, isEnabling);
  14. return;
  15. } else if (token.equals("allDeadCode")) { //$NON-NLS-1$
  16. setSeverity(CompilerOptions.OPTION_ReportDeadCode, severity, isEnabling);
  17. this.options.put(
  18. CompilerOptions.OPTION_ReportDeadCodeInTrivialIfStatement,
  19. return;
  20. } else if (token.equals("allOver-ann")) { //$NON-NLS-1$
  21. setSeverity(CompilerOptions.OPTION_ReportMissingOverrideAnnotation, severity, isEnabling);
  22. this.options.put(
  23. CompilerOptions.OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation,
  24. return;
  25. } else if (token.equals("all-static-method")) { //$NON-NLS-1$
  26. setSeverity(CompilerOptions.OPTION_ReportMethodCanBeStatic, severity, isEnabling);

代码示例来源:origin: org.eclipse.jetty.orbit/org.eclipse.jdt.core

  1. case 'a' :
  2. if (token.equals("allDeprecation")) { //$NON-NLS-1$
  3. setSeverity(CompilerOptions.OPTION_ReportDeprecation, severity, isEnabling);
  4. this.options.put(
  5. CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode,
  6. } else if (token.equals("allJavadoc")) { //$NON-NLS-1$
  7. this.warnAllJavadocOn = this.warnJavadocOn = isEnabling;
  8. setSeverity(CompilerOptions.OPTION_ReportInvalidJavadoc, severity, isEnabling);
  9. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocTags, severity, isEnabling);
  10. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocComments, severity, isEnabling);
  11. return;
  12. } else if (token.equals("assertIdentifier")) { //$NON-NLS-1$
  13. setSeverity(CompilerOptions.OPTION_ReportAssertIdentifier, severity, isEnabling);
  14. return;
  15. } else if (token.equals("allDeadCode")) { //$NON-NLS-1$
  16. setSeverity(CompilerOptions.OPTION_ReportDeadCode, severity, isEnabling);
  17. this.options.put(
  18. CompilerOptions.OPTION_ReportDeadCodeInTrivialIfStatement,
  19. return;
  20. } else if (token.equals("allOver-ann")) { //$NON-NLS-1$
  21. setSeverity(CompilerOptions.OPTION_ReportMissingOverrideAnnotation, severity, isEnabling);
  22. this.options.put(
  23. CompilerOptions.OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation,
  24. return;
  25. } else if (token.equals("all-static-method")) { //$NON-NLS-1$
  26. setSeverity(CompilerOptions.OPTION_ReportMethodCanBeStatic, severity, isEnabling);

代码示例来源:origin: org.eclipse.jdt/org.eclipse.jdt.core

  1. case 'a' :
  2. if (token.equals("allDeprecation")) { //$NON-NLS-1$
  3. setSeverity(CompilerOptions.OPTION_ReportDeprecation, severity, isEnabling);
  4. setSeverity(CompilerOptions.OPTION_ReportTerminalDeprecation, severity, isEnabling);
  5. this.options.put(
  6. CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode,
  7. } else if (token.equals("allJavadoc")) { //$NON-NLS-1$
  8. this.warnAllJavadocOn = this.warnJavadocOn = isEnabling;
  9. setSeverity(CompilerOptions.OPTION_ReportInvalidJavadoc, severity, isEnabling);
  10. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocTags, severity, isEnabling);
  11. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocComments, severity, isEnabling);
  12. return;
  13. } else if (token.equals("assertIdentifier")) { //$NON-NLS-1$
  14. setSeverity(CompilerOptions.OPTION_ReportAssertIdentifier, severity, isEnabling);
  15. return;
  16. } else if (token.equals("allDeadCode")) { //$NON-NLS-1$
  17. setSeverity(CompilerOptions.OPTION_ReportDeadCode, severity, isEnabling);
  18. this.options.put(
  19. CompilerOptions.OPTION_ReportDeadCodeInTrivialIfStatement,
  20. return;
  21. } else if (token.equals("allOver-ann")) { //$NON-NLS-1$
  22. setSeverity(CompilerOptions.OPTION_ReportMissingOverrideAnnotation, severity, isEnabling);
  23. this.options.put(
  24. CompilerOptions.OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation,
  25. return;
  26. } else if (token.equals("all-static-method")) { //$NON-NLS-1$

代码示例来源:origin: org.eclipse.jdt.core.compiler/ecj

  1. case 'a' :
  2. if (token.equals("allDeprecation")) { //$NON-NLS-1$
  3. setSeverity(CompilerOptions.OPTION_ReportDeprecation, severity, isEnabling);
  4. this.options.put(
  5. CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode,
  6. } else if (token.equals("allJavadoc")) { //$NON-NLS-1$
  7. this.warnAllJavadocOn = this.warnJavadocOn = isEnabling;
  8. setSeverity(CompilerOptions.OPTION_ReportInvalidJavadoc, severity, isEnabling);
  9. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocTags, severity, isEnabling);
  10. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocComments, severity, isEnabling);
  11. return;
  12. } else if (token.equals("assertIdentifier")) { //$NON-NLS-1$
  13. setSeverity(CompilerOptions.OPTION_ReportAssertIdentifier, severity, isEnabling);
  14. return;
  15. } else if (token.equals("allDeadCode")) { //$NON-NLS-1$
  16. setSeverity(CompilerOptions.OPTION_ReportDeadCode, severity, isEnabling);
  17. this.options.put(
  18. CompilerOptions.OPTION_ReportDeadCodeInTrivialIfStatement,
  19. return;
  20. } else if (token.equals("allOver-ann")) { //$NON-NLS-1$
  21. setSeverity(CompilerOptions.OPTION_ReportMissingOverrideAnnotation, severity, isEnabling);
  22. this.options.put(
  23. CompilerOptions.OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation,
  24. return;
  25. } else if (token.equals("all-static-method")) { //$NON-NLS-1$
  26. setSeverity(CompilerOptions.OPTION_ReportMethodCanBeStatic, severity, isEnabling);

代码示例来源:origin: com.google.code.maven-play-plugin.org.eclipse.jdt/org.eclipse.jdt.core

  1. case 'a' :
  2. if (token.equals("allDeprecation")) { //$NON-NLS-1$
  3. setSeverity(CompilerOptions.OPTION_ReportDeprecation, severity, isEnabling);
  4. this.options.put(
  5. CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode,
  6. } else if (token.equals("allJavadoc")) { //$NON-NLS-1$
  7. this.warnAllJavadocOn = this.warnJavadocOn = isEnabling;
  8. setSeverity(CompilerOptions.OPTION_ReportInvalidJavadoc, severity, isEnabling);
  9. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocTags, severity, isEnabling);
  10. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocComments, severity, isEnabling);
  11. return;
  12. } else if (token.equals("assertIdentifier")) { //$NON-NLS-1$
  13. setSeverity(CompilerOptions.OPTION_ReportAssertIdentifier, severity, isEnabling);
  14. return;
  15. } else if (token.equals("allDeadCode")) { //$NON-NLS-1$
  16. setSeverity(CompilerOptions.OPTION_ReportDeadCode, severity, isEnabling);
  17. this.options.put(
  18. CompilerOptions.OPTION_ReportDeadCodeInTrivialIfStatement,
  19. return;
  20. } else if (token.equals("allOver-ann")) { //$NON-NLS-1$
  21. setSeverity(CompilerOptions.OPTION_ReportMissingOverrideAnnotation, severity, isEnabling);
  22. this.options.put(
  23. CompilerOptions.OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation,
  24. return;
  25. } else if (token.equals("all-static-method")) { //$NON-NLS-1$
  26. setSeverity(CompilerOptions.OPTION_ReportMethodCanBeStatic, severity, isEnabling);

代码示例来源:origin: com.vaadin/vaadin-client-compiler-deps

  1. case 'a' :
  2. if (token.equals("allDeprecation")) { //$NON-NLS-1$
  3. setSeverity(CompilerOptions.OPTION_ReportDeprecation, severity, isEnabling);
  4. this.options.put(
  5. CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode,
  6. } else if (token.equals("allJavadoc")) { //$NON-NLS-1$
  7. this.warnAllJavadocOn = this.warnJavadocOn = isEnabling;
  8. setSeverity(CompilerOptions.OPTION_ReportInvalidJavadoc, severity, isEnabling);
  9. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocTags, severity, isEnabling);
  10. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocComments, severity, isEnabling);
  11. return;
  12. } else if (token.equals("assertIdentifier")) { //$NON-NLS-1$
  13. setSeverity(CompilerOptions.OPTION_ReportAssertIdentifier, severity, isEnabling);
  14. return;
  15. } else if (token.equals("allDeadCode")) { //$NON-NLS-1$
  16. setSeverity(CompilerOptions.OPTION_ReportDeadCode, severity, isEnabling);
  17. this.options.put(
  18. CompilerOptions.OPTION_ReportDeadCodeInTrivialIfStatement,
  19. return;
  20. } else if (token.equals("allOver-ann")) { //$NON-NLS-1$
  21. setSeverity(CompilerOptions.OPTION_ReportMissingOverrideAnnotation, severity, isEnabling);
  22. this.options.put(
  23. CompilerOptions.OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation,
  24. return;
  25. } else if (token.equals("all-static-method")) { //$NON-NLS-1$
  26. setSeverity(CompilerOptions.OPTION_ReportMethodCanBeStatic, severity, isEnabling);

代码示例来源:origin: org.eclipse.tycho/org.eclipse.jdt.core

  1. case 'a' :
  2. if (token.equals("allDeprecation")) { //$NON-NLS-1$
  3. setSeverity(CompilerOptions.OPTION_ReportDeprecation, severity, isEnabling);
  4. setSeverity(CompilerOptions.OPTION_ReportTerminalDeprecation, severity, isEnabling);
  5. this.options.put(
  6. CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode,
  7. } else if (token.equals("allJavadoc")) { //$NON-NLS-1$
  8. this.warnAllJavadocOn = this.warnJavadocOn = isEnabling;
  9. setSeverity(CompilerOptions.OPTION_ReportInvalidJavadoc, severity, isEnabling);
  10. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocTags, severity, isEnabling);
  11. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocComments, severity, isEnabling);
  12. return;
  13. } else if (token.equals("assertIdentifier")) { //$NON-NLS-1$
  14. setSeverity(CompilerOptions.OPTION_ReportAssertIdentifier, severity, isEnabling);
  15. return;
  16. } else if (token.equals("allDeadCode")) { //$NON-NLS-1$
  17. setSeverity(CompilerOptions.OPTION_ReportDeadCode, severity, isEnabling);
  18. this.options.put(
  19. CompilerOptions.OPTION_ReportDeadCodeInTrivialIfStatement,
  20. return;
  21. } else if (token.equals("allOver-ann")) { //$NON-NLS-1$
  22. setSeverity(CompilerOptions.OPTION_ReportMissingOverrideAnnotation, severity, isEnabling);
  23. this.options.put(
  24. CompilerOptions.OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation,
  25. return;
  26. } else if (token.equals("all-static-method")) { //$NON-NLS-1$

代码示例来源:origin: org.eclipse.scout.sdk.deps/org.eclipse.jdt.core

  1. case 'a' :
  2. if (token.equals("allDeprecation")) { //$NON-NLS-1$
  3. setSeverity(CompilerOptions.OPTION_ReportDeprecation, severity, isEnabling);
  4. this.options.put(
  5. CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode,
  6. } else if (token.equals("allJavadoc")) { //$NON-NLS-1$
  7. this.warnAllJavadocOn = this.warnJavadocOn = isEnabling;
  8. setSeverity(CompilerOptions.OPTION_ReportInvalidJavadoc, severity, isEnabling);
  9. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocTags, severity, isEnabling);
  10. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocComments, severity, isEnabling);
  11. return;
  12. } else if (token.equals("assertIdentifier")) { //$NON-NLS-1$
  13. setSeverity(CompilerOptions.OPTION_ReportAssertIdentifier, severity, isEnabling);
  14. return;
  15. } else if (token.equals("allDeadCode")) { //$NON-NLS-1$
  16. setSeverity(CompilerOptions.OPTION_ReportDeadCode, severity, isEnabling);
  17. this.options.put(
  18. CompilerOptions.OPTION_ReportDeadCodeInTrivialIfStatement,
  19. return;
  20. } else if (token.equals("allOver-ann")) { //$NON-NLS-1$
  21. setSeverity(CompilerOptions.OPTION_ReportMissingOverrideAnnotation, severity, isEnabling);
  22. this.options.put(
  23. CompilerOptions.OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation,
  24. return;
  25. } else if (token.equals("all-static-method")) { //$NON-NLS-1$
  26. setSeverity(CompilerOptions.OPTION_ReportMethodCanBeStatic, severity, isEnabling);

代码示例来源:origin: org.eclipse.scout.sdk.deps/ecj

  1. case 'a' :
  2. if (token.equals("allDeprecation")) { //$NON-NLS-1$
  3. setSeverity(CompilerOptions.OPTION_ReportDeprecation, severity, isEnabling);
  4. this.options.put(
  5. CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode,
  6. } else if (token.equals("allJavadoc")) { //$NON-NLS-1$
  7. this.warnAllJavadocOn = this.warnJavadocOn = isEnabling;
  8. setSeverity(CompilerOptions.OPTION_ReportInvalidJavadoc, severity, isEnabling);
  9. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocTags, severity, isEnabling);
  10. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocComments, severity, isEnabling);
  11. return;
  12. } else if (token.equals("assertIdentifier")) { //$NON-NLS-1$
  13. setSeverity(CompilerOptions.OPTION_ReportAssertIdentifier, severity, isEnabling);
  14. return;
  15. } else if (token.equals("allDeadCode")) { //$NON-NLS-1$
  16. setSeverity(CompilerOptions.OPTION_ReportDeadCode, severity, isEnabling);
  17. this.options.put(
  18. CompilerOptions.OPTION_ReportDeadCodeInTrivialIfStatement,
  19. return;
  20. } else if (token.equals("allOver-ann")) { //$NON-NLS-1$
  21. setSeverity(CompilerOptions.OPTION_ReportMissingOverrideAnnotation, severity, isEnabling);
  22. this.options.put(
  23. CompilerOptions.OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation,
  24. return;
  25. } else if (token.equals("all-static-method")) { //$NON-NLS-1$
  26. setSeverity(CompilerOptions.OPTION_ReportMethodCanBeStatic, severity, isEnabling);

代码示例来源:origin: trylimits/Eclipse-Postfix-Code-Completion

  1. case 'a' :
  2. if (token.equals("allDeprecation")) { //$NON-NLS-1$
  3. setSeverity(CompilerOptions.OPTION_ReportDeprecation, severity, isEnabling);
  4. this.options.put(
  5. CompilerOptions.OPTION_ReportDeprecationInDeprecatedCode,
  6. } else if (token.equals("allJavadoc")) { //$NON-NLS-1$
  7. this.warnAllJavadocOn = this.warnJavadocOn = isEnabling;
  8. setSeverity(CompilerOptions.OPTION_ReportInvalidJavadoc, severity, isEnabling);
  9. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocTags, severity, isEnabling);
  10. setSeverity(CompilerOptions.OPTION_ReportMissingJavadocComments, severity, isEnabling);
  11. return;
  12. } else if (token.equals("assertIdentifier")) { //$NON-NLS-1$
  13. setSeverity(CompilerOptions.OPTION_ReportAssertIdentifier, severity, isEnabling);
  14. return;
  15. } else if (token.equals("allDeadCode")) { //$NON-NLS-1$
  16. setSeverity(CompilerOptions.OPTION_ReportDeadCode, severity, isEnabling);
  17. this.options.put(
  18. CompilerOptions.OPTION_ReportDeadCodeInTrivialIfStatement,
  19. return;
  20. } else if (token.equals("allOver-ann")) { //$NON-NLS-1$
  21. setSeverity(CompilerOptions.OPTION_ReportMissingOverrideAnnotation, severity, isEnabling);
  22. this.options.put(
  23. CompilerOptions.OPTION_ReportMissingOverrideAnnotationForInterfaceMethodImplementation,
  24. return;
  25. } else if (token.equals("all-static-method")) { //$NON-NLS-1$
  26. setSeverity(CompilerOptions.OPTION_ReportMethodCanBeStatic, severity, isEnabling);

相关文章