List of usage examples for org.eclipse.jdt.internal.compiler CompilationResult record
public void record(char[] typeName, ClassFile classFile)
From source file:com.google.gwt.dev.javac.GWTProblem.java
License:Open Source License
private static void recordProblem(int startPos, int endPos, int startLine, int startColumn, CompilationResult compResult, String message, HelpInfo helpInfo, int problemSeverity) { DefaultProblem problem = new GWTProblem(compResult.fileName, startPos, endPos, startLine, startColumn, message, helpInfo, problemSeverity); compResult.record(problem, null); }
From source file:org.eclipse.ajdt.core.parserbridge.AJSourceElementParser2.java
License:Open Source License
public AJSourceElementParser2(AJCompilationUnitStructureRequestor requestor, // AspectJ Change IProblemFactory problemFactory, CompilerOptions options, boolean reportLocalDeclarations, boolean optimizeStringLiterals, boolean useSourceJavadocParser) { super(new ProblemReporter(DefaultErrorHandlingPolicies.exitAfterAllProblems(), options, problemFactory), optimizeStringLiterals);/*ww w .j av a 2 s . com*/ this.reportLocalDeclarations = reportLocalDeclarations; // we want to notify all syntax error with the acceptProblem API // To do so, we define the record method of the ProblemReporter this.problemReporter = new ProblemReporter(DefaultErrorHandlingPolicies.exitAfterAllProblems(), options, problemFactory) { public void record(CategorizedProblem problem, CompilationResult unitResult, ReferenceContext context) { unitResult.record(problem, context); // TODO (jerome) clients are trapping problems either through factory or requestor... is result storing needed? AJSourceElementParser2.this.requestor.acceptProblem(problem); } }; this.requestor = requestor; this.options = options; this.notifier = new AJSourceElementNotifier(this.requestor, reportLocalDeclarations); // AspectJ Change // set specific javadoc parser this.useSourceJavadocParser = useSourceJavadocParser; if (useSourceJavadocParser) { this.javadocParser = new SourceJavadocParser(this); } }
From source file:org.eclipse.jdt.internal.compiler.problem.ProblemHandler.java
License:Open Source License
public void record(CategorizedProblem problem, CompilationResult unitResult, ReferenceContext referenceContext) { unitResult.record(problem, referenceContext); }