List of usage examples for org.eclipse.jdt.internal.compiler SourceJavadocParser SourceJavadocParser
public SourceJavadocParser(Parser sourceParser)
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 .c o m 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); } }