Example usage for org.eclipse.jdt.internal.compiler.apt.dispatch BaseMessagerImpl createProblem

List of usage examples for org.eclipse.jdt.internal.compiler.apt.dispatch BaseMessagerImpl createProblem

Introduction

In this page you can find the example usage for org.eclipse.jdt.internal.compiler.apt.dispatch BaseMessagerImpl createProblem.

Prototype

public static AptProblem createProblem(Kind kind, CharSequence msg, Element e, AnnotationMirror a,
        AnnotationValue v) 

Source Link

Document

Create a CategorizedProblem that can be reported to an ICompilerRequestor, etc.

Usage

From source file:io.gige.compiler.internal.MessagerImpl.java

License:Apache License

@Override
public void printMessage(Kind kind, CharSequence msg, Element e, AnnotationMirror a, AnnotationValue v) {
    if (kind == Kind.ERROR) {
        _processingEnv.setErrorRaised(true);
    }/*from ww w  . j a  v  a2 s. com*/
    AptProblem problem = BaseMessagerImpl.createProblem(kind, msg, e, a, v);
    this.diagnosticListener.report(new DiagnosticAdapter(kind, problem));
}