Search in sources :

Example 1 with JavacMessages

use of com.sun.tools.javac.util.JavacMessages in project ceylon-compiler by ceylon.

the class T6597678 method process.

//---------------
@Override
public boolean process(Set<? extends TypeElement> annotations, RoundEnvironment roundEnv) {
    Context context = ((JavacProcessingEnvironment) processingEnv).getContext();
    Locale locale = context.get(Locale.class);
    JavacMessages messages = context.get(JavacMessages.messagesKey);
    round++;
    if (round == 1) {
        initialLocale = locale;
        initialMessages = messages;
    } else {
        checkEqual("locale", locale, initialLocale);
        checkEqual("messages", messages, initialMessages);
    }
    return true;
}
Also used : Context(com.sun.tools.javac.util.Context) JavacProcessingEnvironment(com.sun.tools.javac.processing.JavacProcessingEnvironment) JavacMessages(com.sun.tools.javac.util.JavacMessages)

Aggregations

JavacProcessingEnvironment (com.sun.tools.javac.processing.JavacProcessingEnvironment)1 Context (com.sun.tools.javac.util.Context)1 JavacMessages (com.sun.tools.javac.util.JavacMessages)1