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

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


  public ConstructorDeclaration parseStatements(char[] source, int offset, int length, Map settings, boolean recordParsingInformation, boolean enabledStatementRecovery) {
    if (source == null) {
      throw new IllegalArgumentException();
    }
    CompilerOptions compilerOptions = new CompilerOptions(settings);
    final ProblemReporter problemReporter = new ProblemReporter(
          DefaultErrorHandlingPolicies.proceedWithAllProblems(),
          compilerOptions,
          new DefaultProblemFactory(Locale.getDefault()));
    CommentRecorderParser parser = new CommentRecorderParser(problemReporter, false);
    parser.setMethodsFullRecovery(false);
View Full Code Here


   */
  public ProblemReporter problemReporter() {

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

}
ProblemReporter problemReporter() {
  return this.type.scope.problemReporter();
}
ProblemReporter problemReporter(MethodBinding currentMethod) {
  ProblemReporter reporter = problemReporter();
  if (currentMethod.declaringClass == 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

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

* 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 = referenceContext.problemReporter;
  problemReporter.referenceContext = referenceContext;
  return problemReporter;
}
View Full Code Here

TOP

Related Classes of org.aspectj.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.