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

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


        if (target14) {
            settings.put(CompilerOptions.OPTION_TargetPlatform,
                         CompilerOptions.VERSION_1_4);
        }
        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

        CompilerRequestor compilerRequestor = new CompilerRequestor(byteCode);
        Compiler compiler = new Compiler(new NameEnvironment(sources, byteCode),
                DefaultErrorHandlingPolicies.proceedWithAllProblems(),
                compilerOptions,
                compilerRequestor,
                new DefaultProblemFactory(Locale.getDefault()));

        // source files must be wrapped with an eclipse CompilationUnit
        List<ICompilationUnit> compilationUnits = new ArrayList<ICompilationUnit>(sources.size());
        for (Map.Entry<String, File> entry : sources.entrySet()) {
            compilationUnits.add(new CompilationUnit(entry.getKey(), entry.getValue()));
View Full Code Here

            problems.toArray( result );
            return new org.drools.commons.jci.compilers.CompilationResult( result );
        }

        final IErrorHandlingPolicy policy = DefaultErrorHandlingPolicies.proceedWithAllProblems();
        final IProblemFactory problemFactory = new DefaultProblemFactory( Locale.getDefault() );
        final INameEnvironment nameEnvironment = new INameEnvironment() {

            public NameEnvironmentAnswer findType(final char[][] pCompoundTypeName) {
                final StringBuffer result = new StringBuffer();
                for ( int i = 0; i < pCompoundTypeName.length; i++ ) {
View Full Code Here

            settings.put(CompilerOptions.OPTION_Compliance,
                    CompilerOptions.VERSION_1_5);
        }

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

        ICompilationUnit[] compilationUnits = new CompilationUnit[classNames.length];
        for (int i = 0; i < classNames.length; i++) {
            compilationUnits[i] = new CompilationUnit(classNames[i]);
        }
        IErrorHandlingPolicy policy = DefaultErrorHandlingPolicies.exitOnFirstError();
        IProblemFactory problemFactory = new DefaultProblemFactory(Locale.ENGLISH);

        /**
         * To find types ...
         */
        INameEnvironment nameEnvironment = new INameEnvironment() {
View Full Code Here

      this.hierarchyResolver =
        new HierarchyResolver(
          searchableEnvironment,
          project.getOptions(true),
          this,
          new DefaultProblemFactory());
    }
    this.infoToHandle = new HashMap(5);
    this.focusQualifiedName = focusType == null ? null : focusType.getFullyQualifiedName();
  }
View Full Code Here

}
/**
* Creates a new parser.
*/
protected DocumentElementParser getParser(Map settings) {
  return new DocumentElementParser(this, new DefaultProblemFactory(), new CompilerOptions(settings));
}
View Full Code Here

}
/**
* Creates a new parser.
*/
protected SourceElementParser getParser(Map settings) {
  return new SourceElementParser(this, new DefaultProblemFactory(), new CompilerOptions(settings), false/*don't report local declarations*/, true/*optimize string literals*/);
}
 
View Full Code Here

      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

TOP

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

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.