Package org.eclipse.jdt.internal.compiler.problem

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


  public EcjTreeBuilder(String rawInput, String name, CompilerOptions options) {
    this(rawInput, createDefaultProblemReporter(options), createSilentProblemReporter(options), new CompilationResult(name.toCharArray(), 0, 0, 0));
  }
 
  private static ProblemReporter createDefaultProblemReporter(CompilerOptions options) {
    return new ProblemReporter(new IErrorHandlingPolicy() {
      public boolean proceedOnErrors() {
        return true;
      }
     
      public boolean stopOnFirstError() {
View Full Code Here


      }
    }, options, new DefaultProblemFactory(Locale.ENGLISH));
  }
 
  private static ProblemReporter createSilentProblemReporter(CompilerOptions options) {
    return new ProblemReporter(new IErrorHandlingPolicy() {
      public boolean proceedOnErrors() {
        return true;
      }
     
      public boolean stopOnFirstError() {
View Full Code Here

    }

    private Parser getParser() {
        if (mParser == null) {
            CompilerOptions options = createCompilerOptions();
            ProblemReporter problemReporter = new ProblemReporter(
                    DefaultErrorHandlingPolicies.exitOnFirstError(),
                    options,
                    new DefaultProblemFactory());
            mParser = new Parser(problemReporter,
                    options.parseLiteralExpressionsAsConstants);
View Full Code Here

    }

    private Parser getParser() {
        if (mParser == null) {
            CompilerOptions options = createCompilerOptions();
            ProblemReporter problemReporter = new ProblemReporter(
                    DefaultErrorHandlingPolicies.exitOnFirstError(),
                    options,
                    new DefaultProblemFactory());
            mParser = new Parser(problemReporter,
                    options.parseLiteralExpressionsAsConstants);
View Full Code Here

  }
 
  private void parseWithEcj(Source source) {
    if (VERBOSE) {
      CompilerOptions compilerOptions = ecjCompilerOptions();
      Parser parser = new Parser(new ProblemReporter(
          DefaultErrorHandlingPolicies.proceedWithAllProblems(),
          compilerOptions,
          new DefaultProblemFactory()
        ), compilerOptions.parseLiteralExpressionsAsConstants);
      parser.javadocParser.checkDocComment = true;
View Full Code Here

  }
 
  @Override
  protected ASTNode parseWithTargetCompiler(Source source) {
    CompilerOptions compilerOptions = ecjCompilerOptions();
    Parser parser = new Parser(new ProblemReporter(
        DefaultErrorHandlingPolicies.proceedWithAllProblems(),
        compilerOptions,
        new DefaultProblemFactory()
      ), compilerOptions.parseLiteralExpressionsAsConstants);
    parser.javadocParser.checkDocComment = true;
View Full Code Here

  }
 
  @Override
  protected ASTNode parseWithLombok(Source source) {
    CompilerOptions compilerOptions = ecjCompilerOptions();
    Parser parser = new Parser(new ProblemReporter(
        DefaultErrorHandlingPolicies.proceedWithAllProblems(),
        compilerOptions,
        new DefaultProblemFactory()
      ), compilerOptions.parseLiteralExpressionsAsConstants);
    parser.javadocParser.checkDocComment = true;
View Full Code Here

  }
 
  @Override
  protected ASTNode parseWithTargetCompiler(Source source) {
    CompilerOptions compilerOptions = ecjCompilerOptions();
    Parser parser = new Parser(new ProblemReporter(
        DefaultErrorHandlingPolicies.proceedWithAllProblems(),
        compilerOptions,
        new DefaultProblemFactory()
      ), compilerOptions.parseLiteralExpressionsAsConstants);
    parser.javadocParser.checkDocComment = true;
View Full Code Here

    return nodes.get(0);
  }
 
  protected Node parseWithTargetCompiler(Source source) {
    CompilerOptions compilerOptions = ecjCompilerOptions();
    Parser parser = new Parser(new ProblemReporter(
        DefaultErrorHandlingPolicies.proceedWithAllProblems(),
        compilerOptions,
        new DefaultProblemFactory()
      ), compilerOptions.parseLiteralExpressionsAsConstants);
    parser.javadocParser.checkDocComment = true;
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.problem.ProblemReporter

Copyright © 2018 www.massapicom. 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.