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

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

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

Main.getProblemFactory介绍

暂无

代码示例

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

  1. private IModule extractModuleDesc(String fileName) {
  2. IModule mod = null;
  3. // this.options may not be completely populated yet, and definitely not
  4. // validated. Make sure the source level is set for the parser
  5. Map<String,String> opts = new HashMap<String, String>(this.options);
  6. opts.put(CompilerOptions.OPTION_Source, this.options.get(CompilerOptions.OPTION_Compliance));
  7. Parser parser = new Parser(new ProblemReporter(getHandlingPolicy(),
  8. new CompilerOptions(opts), getProblemFactory()), false);
  9. if (fileName.toLowerCase().endsWith(IModule.MODULE_INFO_JAVA)) {
  10. ICompilationUnit cu = new CompilationUnit(null, fileName, null);
  11. CompilationResult compilationResult = new CompilationResult(cu, 0, 1, 10);
  12. CompilationUnitDeclaration unit = parser.parse(cu, compilationResult);
  13. if (unit.isModuleInfo() && unit.moduleDeclaration != null) {
  14. mod = new BasicModule(unit.moduleDeclaration, null);
  15. }
  16. } else if (fileName.toLowerCase().endsWith(IModule.MODULE_INFO_CLASS)) {
  17. try {
  18. ClassFileReader reader = ClassFileReader.read(fileName); // Check the absolute path?
  19. mod = reader.getModuleDeclaration();
  20. } catch (ClassFormatException | IOException e) {
  21. e.printStackTrace();
  22. throw new IllegalArgumentException(
  23. this.bind("configure.invalidModuleDescriptor", fileName)); //$NON-NLS-1$
  24. }
  25. }
  26. return mod;
  27. }

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

  1. private IModule extractModuleDesc(String fileName) {
  2. IModule mod = null;
  3. // this.options may not be completely populated yet, and definitely not
  4. // validated. Make sure the source level is set for the parser
  5. Map<String,String> opts = new HashMap<String, String>(this.options);
  6. opts.put(CompilerOptions.OPTION_Source, this.options.get(CompilerOptions.OPTION_Compliance));
  7. Parser parser = new Parser(new ProblemReporter(getHandlingPolicy(),
  8. new CompilerOptions(opts), getProblemFactory()), false);
  9. if (fileName.toLowerCase().endsWith(IModule.MODULE_INFO_JAVA)) {
  10. ICompilationUnit cu = new CompilationUnit(null, fileName, null);
  11. CompilationResult compilationResult = new CompilationResult(cu, 0, 1, 10);
  12. CompilationUnitDeclaration unit = parser.parse(cu, compilationResult);
  13. if (unit.isModuleInfo() && unit.moduleDeclaration != null) {
  14. mod = new BasicModule(unit.moduleDeclaration, null);
  15. }
  16. } else if (fileName.toLowerCase().endsWith(IModule.MODULE_INFO_CLASS)) {
  17. try {
  18. ClassFileReader reader = ClassFileReader.read(fileName); // Check the absolute path?
  19. mod = reader.getModuleDeclaration();
  20. } catch (ClassFormatException | IOException e) {
  21. e.printStackTrace();
  22. throw new IllegalArgumentException(
  23. this.bind("configure.invalidModuleDescriptor", fileName)); //$NON-NLS-1$
  24. }
  25. }
  26. return mod;
  27. }

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

  1. private Parser getNewParser() {
  2. return new Parser(new ProblemReporter(getHandlingPolicy(),
  3. new CompilerOptions(this.options), getProblemFactory()), false);
  4. }
  5. private IModule extractModuleDesc(String fileName) {

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

  1. private Parser getNewParser() {
  2. return new Parser(new ProblemReporter(getHandlingPolicy(),
  3. new CompilerOptions(this.options), getProblemFactory()), false);
  4. }
  5. private IModule extractModuleDesc(String fileName) {

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

  1. this.compilerOptions,
  2. getBatchRequestor(),
  3. getProblemFactory(),
  4. this.out,
  5. this.progress);

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

  1. this.compilerOptions,
  2. getBatchRequestor(),
  3. getProblemFactory(),
  4. this.out,
  5. this.progress);

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

  1. this.compilerOptions,
  2. getBatchRequestor(),
  3. getProblemFactory(),
  4. this.out,
  5. this.progress);

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

  1. this.compilerOptions,
  2. getBatchRequestor(),
  3. getProblemFactory(),
  4. this.out,
  5. this.progress);

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

  1. this.compilerOptions,
  2. getBatchRequestor(),
  3. getProblemFactory(),
  4. this.out,
  5. this.progress);

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

  1. this.compilerOptions,
  2. getBatchRequestor(),
  3. getProblemFactory(),
  4. this.out,
  5. this.progress);

代码示例来源:origin: com.ovea.tajin.server/tajin-server-tomcat7

  1. this.compilerOptions,
  2. getBatchRequestor(),
  3. getProblemFactory(),
  4. this.out,
  5. this.progress);

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

  1. this.compilerOptions,
  2. getBatchRequestor(),
  3. getProblemFactory(),
  4. this.out,
  5. this.progress);

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

  1. this.compilerOptions,
  2. getBatchRequestor(),
  3. getProblemFactory(),
  4. this.out,
  5. this.progress);

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

  1. this.compilerOptions,
  2. getBatchRequestor(),
  3. getProblemFactory(),
  4. this.out,
  5. this.progress);

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

  1. this.compilerOptions,
  2. getBatchRequestor(),
  3. getProblemFactory(),
  4. this.out,
  5. this.progress);

相关文章