Examples of ProblemReporter


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

public HierarchyResolver(INameEnvironment nameEnvironment, Map settings, HierarchyBuilder builder, IProblemFactory problemFactory) {
  // create a problem handler with the 'exit after all problems' handling policy
  this.options = new CompilerOptions(settings);
  IErrorHandlingPolicy policy = DefaultErrorHandlingPolicies.exitAfterAllProblems();
  ProblemReporter problemReporter = new ProblemReporter(policy, this.options, problemFactory);

  LookupEnvironment environment = new LookupEnvironment(this, this.options, problemReporter, nameEnvironment);
  environment.mayTolerateMissingType = true;
  setEnvironment(environment, builder);
}
View Full Code Here

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

    this.openedBinaryTypes = 0;
    this.sourceLevel = javaProject.getOption(JavaCore.COMPILER_SOURCE, true);
    this.complianceLevel = javaProject.getOption(JavaCore.COMPILER_COMPLIANCE, true);

    this.problemFactory = new CompletionProblemFactory(Locale.getDefault());
    this.problemReporter = new ProblemReporter(
        DefaultErrorHandlingPolicies.proceedWithAllProblems(),
        this.compilerOptions,
        this.problemFactory);
    this.lookupEnvironment =
      new LookupEnvironment(this, this.compilerOptions, this.problemReporter, nameEnvironment);
View Full Code Here

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

  public static void parse(ICompilationUnit[] compilationUnits, ASTRequestor astRequestor, int apiLevel, Map options, int flags, IProgressMonitor monitor) {
    try {
      CompilerOptions compilerOptions = new CompilerOptions(options);
      compilerOptions.ignoreMethodBodies = (flags & ICompilationUnit.IGNORE_METHOD_BODIES) != 0;
      Parser parser = new CommentRecorderParser(
        new ProblemReporter(
            DefaultErrorHandlingPolicies.proceedWithAllProblems(),
            compilerOptions,
            new DefaultProblemFactory()),
        false);
      int unitLength = compilationUnits.length;
View Full Code Here

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

      IProgressMonitor monitor) {
    try {
      CompilerOptions compilerOptions = new CompilerOptions(options);
      compilerOptions.ignoreMethodBodies = (flags & ICompilationUnit.IGNORE_METHOD_BODIES) != 0;
      Parser parser = new CommentRecorderParser(
        new ProblemReporter(
            DefaultErrorHandlingPolicies.proceedWithAllProblems(),
            compilerOptions,
            new DefaultProblemFactory()),
        false);
      int unitLength = sourceUnits.length;
View Full Code Here

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

    boolean statementsRecovery = (flags & ICompilationUnit.ENABLE_STATEMENTS_RECOVERY) != 0;
    compilerOptions.performMethodsFullRecovery = statementsRecovery;
    compilerOptions.performStatementsRecovery = statementsRecovery;
    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);
View Full Code Here

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

* Note that as a side-effect, this updates the current reference context
* (unit, type or method) in case the problem handler decides it is necessary
* to abort.
*/
public ProblemReporter problemReporter() {
  ProblemReporter problemReporter = referenceCompilationUnit().problemReporter;
  problemReporter.referenceContext = this.referenceContext;
  return problemReporter;
}
View Full Code Here

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

ProblemReporter problemReporter() {
  return this.type.scope.problemReporter();
}

ProblemReporter problemReporter(MethodBinding currentMethod) {
  ProblemReporter reporter = problemReporter();
  if (TypeBinding.equalsEquals(currentMethod.declaringClass, this.type) && currentMethod.sourceMethod() != null// only report against the currentMethod if its implemented by the type
    reporter.referenceContext = currentMethod.sourceMethod();
  return reporter;
}
View Full Code Here

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

  public FindDeferredBindingSitesVisitor(Map requestedTypes) {
    this.results = requestedTypes;
  }

  public void endVisit(MessageSend messageSend, BlockScope scope) {
    final ProblemReporter problemReporter = scope.problemReporter();

    if (messageSend.binding == null) {
      // Some sort of problem.
      //
      return;
View Full Code Here

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

* to abort.
*/
public ProblemReporter problemReporter() {
  MethodScope outerMethodScope;
  if ((outerMethodScope = outerMostMethodScope()) == this) {
    ProblemReporter problemReporter = referenceCompilationUnit().problemReporter;
    problemReporter.referenceContext = this.referenceContext;
    return problemReporter;
  }
  return outerMethodScope.problemReporter();
}
View Full Code Here

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

ProblemReporter problemReporter() {
  return this.type.scope.problemReporter();
}

ProblemReporter problemReporter(MethodBinding currentMethod) {
  ProblemReporter reporter = problemReporter();
  if (currentMethod.declaringClass == this.type && currentMethod.sourceMethod() != null// only report against the currentMethod if its implemented by the type
    reporter.referenceContext = currentMethod.sourceMethod();
  return reporter;
}
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.