public class MessagerAdapter
extends java.lang.Object
Messager
, which adds the ability to format error messages using MessageFormat
.Constructor and Description |
---|
MessagerAdapter(javax.annotation.processing.Messager messager,
javax.tools.Diagnostic.Kind diagnosticKind)
Creates a new MessagerAdapter.
|
Modifier and Type | Method and Description |
---|---|
javax.annotation.processing.Messager |
getDelegate()
Returns the messager used by this adapter.
|
void |
reportErrors(java.util.Collection<ConstraintCheckIssue> errors)
Reports the given errors against the underlying
Messager using
the specified Diagnostic.Kind . |
void |
reportWarnings(java.util.Collection<ConstraintCheckIssue> warnings)
Reports the given warnings against the underlying
Messager using
the specified Diagnostic.Kind . |
public MessagerAdapter(javax.annotation.processing.Messager messager, javax.tools.Diagnostic.Kind diagnosticKind)
messager
- The underlying messager.diagnosticKind
- The kind with which messages shall be reported.public javax.annotation.processing.Messager getDelegate()
public void reportErrors(java.util.Collection<ConstraintCheckIssue> errors)
Messager
using
the specified Diagnostic.Kind
.errors
- A set with errors to report. May be empty but must not be
null.public void reportWarnings(java.util.Collection<ConstraintCheckIssue> warnings)
Messager
using
the specified Diagnostic.Kind
.warnings
- A set with errors to report. May be empty but must not be
null.Copyright © 2007-2022 Red Hat, Inc. All Rights Reserved