|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.util.AbstractLog
com.sun.tools.javac.util.Log
com.sun.tools.apt.util.Bark
public class Bark
A subtype of Log for use in APT.
This is NOT part of any API supported by Sun Microsystems. If you write code that depends on this, you do so at your own risk. This code and its internal interfaces are subject to change or deletion without notice.
| Field Summary | |
|---|---|
private JCDiagnostic.Factory |
aptDiags
Factory for APT-specific diagnostics. |
protected static Context.Key<Bark> |
barkKey
The context key for the bark. |
private boolean |
ignoreDiagnostics
Specifies whether or not to ignore any diagnostics that are reported. |
| Fields inherited from class com.sun.tools.javac.util.Log |
|---|
diagListener, dumpOnError, emitWarnings, errWriter, expectDiagKeys, logKey, MaxErrors, MaxWarnings, multipleErrors, nerrors, noticeWriter, nwarnings, outKey, promptOnError, warnWriter |
| Fields inherited from class com.sun.tools.javac.util.AbstractLog |
|---|
diags, source, sourceMap |
| Constructor Summary | |
|---|---|
protected |
Bark(Context context)
Creates a Bark. |
| Method Summary | |
|---|---|
void |
aptError(int pos,
java.lang.String key,
java.lang.Object... args)
Report an error, unless another error was already reported at same source position. |
void |
aptError(java.lang.String key,
java.lang.Object... args)
Report an error. |
void |
aptNote(int pos,
java.lang.String key,
java.lang.Object... args)
Report a note, unless suppressed by the -nowarn option. |
void |
aptNote(java.lang.String key,
java.lang.Object... args)
Report a note, unless suppressed by the -nowarn option. |
void |
aptWarning(int pos,
java.lang.String key,
java.lang.Object... args)
Report a warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached. |
void |
aptWarning(java.lang.String key,
java.lang.Object... args)
Report a warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached. |
static Bark |
instance(Context context)
Get the Bark instance for this context. |
static void |
preRegister(Context context)
Preregisters factories to create and use a Bark object for use as both a Log and a Bark. |
void |
report(JCDiagnostic diagnostic)
Report a diagnostic if they are not currently being ignored. |
boolean |
setDiagnosticsIgnored(boolean b)
Sets a flag indicating whether or not to ignore all diagnostics. |
| Methods inherited from class com.sun.tools.javac.util.Log |
|---|
currentSourceFile, directError, flush, format, getLocalizedString, getWriterForDiagnosticType, hasDiagnosticListener, printLines, prompt, rawError, rawWarning, setEndPosTable, shouldReport, strictWarning, writeDiagnostic |
| Methods inherited from class com.sun.tools.javac.util.AbstractLog |
|---|
currentSource, error, error, error, getSource, mandatoryNote, mandatoryWarning, note, note, note, note, useSource, warning, warning, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final Context.Key<Bark> barkKey
private boolean ignoreDiagnostics
private JCDiagnostic.Factory aptDiags
| Constructor Detail |
|---|
protected Bark(Context context)
| Method Detail |
|---|
public static void preRegister(Context context)
public static Bark instance(Context context)
public boolean setDiagnosticsIgnored(boolean b)
b - If true, subsequent diagnostics will be ignored.
public void report(JCDiagnostic diagnostic)
report in class Log
public void aptError(java.lang.String key,
java.lang.Object... args)
key - The key for the localized error message.args - Fields of the error message.
public void aptError(int pos,
java.lang.String key,
java.lang.Object... args)
pos - The source position at which to report the error.key - The key for the localized error message.args - Fields of the error message.
public void aptWarning(java.lang.String key,
java.lang.Object... args)
key - The key for the localized warning message.args - Fields of the warning message.
public void aptWarning(int pos,
java.lang.String key,
java.lang.Object... args)
pos - The source position at which to report the warning.key - The key for the localized warning message.args - Fields of the warning message.
public void aptNote(java.lang.String key,
java.lang.Object... args)
key - The key for the localized note message.args - Fields of the note message.
public void aptNote(int pos,
java.lang.String key,
java.lang.Object... args)
pos - The source position at which to report the note.key - The key for the localized note message.args - Fields of the note message.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||