Examples of IProblemFactory


Examples of org.aspectj.org.eclipse.jdt.internal.compiler.IProblemFactory

    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

Examples of org.aspectj.org.eclipse.jdt.internal.compiler.IProblemFactory

    this.methodParameterNames = new char[1][][];
    this.anonymousCounter = 0;
   
    HashMap 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.IProblemFactory

    final IErrorHandlingPolicy policy =
      DefaultErrorHandlingPolicies.proceedWithAllProblems();

    final Map settings = getJdtSettings();

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

    final ICompilerRequestor requestor = getCompilerRequestor(units, problemBuffer);

    ICompilationUnit[] compilationUnits = new ICompilationUnit[units.length];
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.IProblemFactory

        }
        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 {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.IProblemFactory

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

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

Examples of org.eclipse.jdt.internal.compiler.IProblemFactory

            problems.toArray(result);
            return new org.drools.compiler.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 StringBuilder result = new StringBuilder();
                for (int i = 0; i < pCompoundTypeName.length; i++) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.IProblemFactory

          resultBytes = f.getBytes();
          break;
        }
      }
    };
    IProblemFactory problemFactory = new DefaultProblemFactory();
    Compiler c = new Compiler(environment, policy, options, requestor,
        problemFactory);
    c.compile(new ICompilationUnit[] { new Unit(str) });
    environment.cleanup();
    return resultBytes;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.IProblemFactory

          break;
        }
        problems=result.getAllProblems();
      }
    };
    IProblemFactory problemFactory = new DefaultProblemFactory();
    Compiler c = new Compiler(environment, policy, options, requestor,
        problemFactory);
    c.compile(new ICompilationUnit[] { new Unit(str) });
    environment.cleanup();
    return problems;
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.IProblemFactory

            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 StringBuilder result = new StringBuilder();
                for (int i = 0; i < pCompoundTypeName.length; i++) {
View Full Code Here

Examples of org.eclipse.jdt.internal.compiler.IProblemFactory

      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
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.