Examples of DefaultProblemFactory


Examples of org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

    public CompilerImpl() {
      super(new INameEnvironmentImpl(),
          DefaultErrorHandlingPolicies.proceedWithAllProblems(),
          getCompilerOptions(), new ICompilerRequestorImpl(),
          new DefaultProblemFactory(Locale.getDefault()));
    }
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

    this.doGenerateBytes = doGenerateBytes;
    rememberPackage("");

    INameEnvironment env = new INameEnvironmentImpl();
    IErrorHandlingPolicy pol = DefaultErrorHandlingPolicies.proceedWithAllProblems();
    IProblemFactory probFact = new DefaultProblemFactory(Locale.getDefault());
    ICompilerRequestor req = new ICompilerRequestorImpl();
    CompilerOptions options = getCompilerOptions();

    // This is only needed by TypeOracleBuilder to parse metadata.
    options.docCommentSupport = false;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

                log.warn("Unknown target VM " + opt + " ignored.");
            }
        }

        final IProblemFactory problemFactory =
            new DefaultProblemFactory(Locale.getDefault());
       
        final ICompilerRequestor requestor = new ICompilerRequestor() {
                public void acceptResult(CompilationResult result) {
                    try {
                        if (result.hasProblems()) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

      }
      public void acceptProblem(CategorizedProblem problem, char[] fragmentSource, int fragmentKind) {
        // Do nothing
      }
    };
    evaluateVariables(environment, options, variableRequestor, new DefaultProblemFactory(Locale.getDefault()));
  } catch (InstallException e) {
    // Do nothing
  }
  final char[] className = "CodeSnippetCompletion".toCharArray(); //$NON-NLS-1$
  final long complianceVersion = CompilerOptions.versionToJdkLevel(options.get(JavaCore.COMPILER_COMPLIANCE));
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

      compilerOptions.ignoreMethodBodies = (flags & ICompilationUnit.IGNORE_METHOD_BODIES) != 0;
      Parser parser = new CommentRecorderParser(
        new ProblemReporter(
            DefaultErrorHandlingPolicies.proceedWithAllProblems(),
            compilerOptions,
            new DefaultProblemFactory()),
        false);
      int unitLength = compilationUnits.length;
      if (monitor != null) monitor.beginTask("", unitLength); //$NON-NLS-1$
      for (int i = 0; i < unitLength; i++) {
        org.eclipse.jdt.internal.compiler.env.ICompilationUnit sourceUnit = (org.eclipse.jdt.internal.compiler.env.ICompilationUnit) compilationUnits[i];
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

      compilerOptions.ignoreMethodBodies = (flags & ICompilationUnit.IGNORE_METHOD_BODIES) != 0;
      Parser parser = new CommentRecorderParser(
        new ProblemReporter(
            DefaultErrorHandlingPolicies.proceedWithAllProblems(),
            compilerOptions,
            new DefaultProblemFactory()),
        false);
      int unitLength = sourceUnits.length;
      if (monitor != null) monitor.beginTask("", unitLength); //$NON-NLS-1$
      for (int i = 0; i < unitLength; i++) {
        char[] contents = null;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

    compilerOptions.ignoreMethodBodies = (flags & ICompilationUnit.IGNORE_METHOD_BODIES) != 0;
    Parser parser = new CommentRecorderParser(
      new ProblemReporter(
          DefaultErrorHandlingPolicies.proceedWithAllProblems(),
          compilerOptions,
          new DefaultProblemFactory()),
      false);
    CompilationResult compilationResult = new CompilationResult(sourceUnit, 0, 0, compilerOptions.maxProblemsPerUnit);
    CompilationUnitDeclaration compilationUnitDeclaration = parser.dietParse(sourceUnit, compilationResult);

    if (compilationUnitDeclaration.ignoreMethodBodies) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

  Map options = project.getOptions(true);
  options.put(JavaCore.COMPILER_TASK_TAGS, ""); //$NON-NLS-1$

  SourceElementParser parser = new IndexingParser(
    requestor,
    new DefaultProblemFactory(Locale.getDefault()),
    new CompilerOptions(options),
    true, // index local declarations
    true, // optimize string literals
    false); // do not use source javadoc parser to speed up parsing
  parser.reportOnlyOneSyntaxError = true;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

    HashMap oldSourceRanges = null;
    if (elementToFind != null) {
      oldSourceRanges = (HashMap) this.sourceRanges.clone();
    }
    try {
      IProblemFactory factory = new DefaultProblemFactory();
      SourceElementParser parser = null;
      this.anonymousClassName = 0;
      if (info == null) {
        try {
          info = (IBinaryType) this.binaryType.getElementInfo();
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.problem.DefaultProblemFactory

    reconcileFlags = 0;
    problems = null;
  }

  boolean computeProblems = perWorkingCopyInfo != null && perWorkingCopyInfo.isActive() && project != null && JavaProject.hasJavaNature(project.getProject());
  IProblemFactory problemFactory = new DefaultProblemFactory();
  Map options = project == null ? JavaCore.getOptions() : project.getOptions(true);
  if (!computeProblems) {
    // disable task tags checking to speed up parsing
    options.put(JavaCore.COMPILER_TASK_TAGS, ""); //$NON-NLS-1$
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.