Package org.eclipse.jdt.internal.compiler.impl

Examples of org.eclipse.jdt.internal.compiler.impl.CompilerOptions


  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$
  }
  CompilerOptions compilerOptions = new CompilerOptions(options);
  compilerOptions.ignoreMethodBodies = (reconcileFlags & ICompilationUnit.IGNORE_METHOD_BODIES) != 0;
  SourceElementParser parser = new SourceElementParser(
    requestor,
    problemFactory,
    compilerOptions,
View Full Code Here


  this.logger = new Logger(this, outWriter, errWriter);
  this.proceed = true;
  this.out = outWriter;
  this.err = errWriter;
  this.systemExitWhenFinished = systemExit;
  this.options = new CompilerOptions().getMap();

  this.progress = compilationProgress;
  if (customDefaultOptions != null) {
    this.didSpecifySource = customDefaultOptions.get(CompilerOptions.OPTION_Source) != null;
    this.didSpecifyTarget = customDefaultOptions.get(CompilerOptions.OPTION_TargetPlatform) != null;
View Full Code Here

public void performCompilation() {

  this.startTime = System.currentTimeMillis();

  FileSystem environment = getLibraryAccess();
  this.compilerOptions = new CompilerOptions(this.options);
  this.compilerOptions.performMethodsFullRecovery = false;
  this.compilerOptions.performStatementsRecovery = false;
  this.batchCompiler =
    new Compiler(
      environment,
View Full Code Here

      settings.put(CompilerOptions.OPTION_Source, CompilerOptions.VERSION_1_4);
      settings.put(CompilerOptions.OPTION_TargetPlatform,
          CompilerOptions.VERSION_1_4);
      settings.put(CompilerOptions.OPTION_DocCommentSupport,
          CompilerOptions.ENABLED);
      CompilerOptions options = new CompilerOptions(settings);

      IProblemFactory problemFactory = new DefaultProblemFactory(
          Locale.getDefault());

      // Save off the bounds of any method that is a test method
View Full Code Here

        INameEnvironment nameEnvironment =
            new ClassLoaderNameEnvironment(classLoader, configuration.getSourceLocations());
        ICompilerRequestor requestor =
            new CompilerRequestor(configuration.getOutputLocation(), configuration.isShowWarnings(), compilerErrors);
        Compiler compiler =
            new Compiler(nameEnvironment, proceedWithAllProblems(), new CompilerOptions(settings), requestor,
                         new DefaultProblemFactory(Locale.getDefault()));

        // Create compilation units for the source files
        List<FileCompilationUnit> compilationUnits = new ArrayList<FileCompilationUnit>();
View Full Code Here

        IWorkingCopyManager manager = JavaPlugin.getDefault()
                .getWorkingCopyManager();
        ICompilationUnit unit = manager.getWorkingCopy(getEditorInput());

        CompilerOptions options = new CompilerOptions(unit.getJavaProject()
                .getOptions(true));
        ASTParser parser = ASTParser.newParser(AST.JLS3); // FIXME
        parser.setCompilerOptions(options.getMap());
        parser.setSource(unit.getBuffer().getCharacters());
        parser.setKind(ASTParser.K_COMPILATION_UNIT);
        parser.setResolveBindings(false);
        CompilationUnit result = (CompilationUnit) parser.createAST(null);
View Full Code Here

    // This is needed by TypeOracleBuilder to parse metadata.
    settings.put(CompilerOptions.OPTION_DocCommentSupport,
        CompilerOptions.ENABLED);

    compiler = new CompilerImpl(env, pol, new CompilerOptions(settings), req,
        probFact);
  }
View Full Code Here

        CompilerOptions.VERSION_1_5);

    // This is needed by TypeOracleBuilder to parse metadata.
    settings.put(CompilerOptions.OPTION_DocCommentSupport,
        CompilerOptions.ENABLED);
    return new CompilerOptions(settings);
  }
View Full Code Here

    /**
     * Create the default compiler options
     */
    public static CompilerOptions createCompilerOptions() {
        CompilerOptions options = new CompilerOptions();

        // Always using JDK 7 rather than basing it on project metadata since we
        // don't do compilation error validation in lint (we leave that to the IDE's
        // error parser or the command line build's compilation step); we want an
        // AST that is as tolerant as possible.
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,
View Full Code Here

TOP

Related Classes of org.eclipse.jdt.internal.compiler.impl.CompilerOptions

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.