| java.lang.Object com.sun.tools.javac.util.Log com.sun.tools.apt.util.Bark
Bark | public class Bark extends Log (Code) | | 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.
|
Constructor Summary | |
protected | Bark(Context context) Creates a Bark. |
Method Summary | |
public void | aptError(String key, Object... args) Report an error. | public void | aptError(int pos, String key, Object... args) Report an error, unless another error was already reported at same
source position. | public void | aptNote(String key, Object... args) Report a note, unless suppressed by the -nowarn option. | public void | aptNote(int pos, String key, Object... args) Report a note, unless suppressed by the -nowarn option. | public void | aptWarning(String key, Object... args) Report a warning, unless suppressed by the -nowarn option or the
maximum number of warnings has been reached. | public void | aptWarning(int pos, String key, Object... args) Report a warning, unless suppressed by the -nowarn option or the
maximum number of warnings has been reached. | public static Bark | instance(Context context) Get the Bark instance for this context. | public static void | preRegister(Context context) Preregisters factories to create and use a Bark object for use as
both a Log and a Bark. | public void | report(JCDiagnostic diagnostic) Report a diagnostic if they are not currently being ignored. | public boolean | setDiagnosticsIgnored(boolean b) Sets a flag indicating whether or not to ignore all diagnostics.
When ignored, they are not reported to the output writers, not are they
counted in the various counters.
Parameters: b - If true, subsequent diagnostics will be ignored. |
aptError | public void aptError(String key, Object... args)(Code) | | Report an error.
Parameters: key - The key for the localized error message. Parameters: args - Fields of the error message. |
aptError | public void aptError(int pos, String key, Object... args)(Code) | | Report an error, unless another error was already reported at same
source position.
Parameters: pos - The source position at which to report the error. Parameters: key - The key for the localized error message. Parameters: args - Fields of the error message. |
aptNote | public void aptNote(String key, Object... args)(Code) | | Report a note, unless suppressed by the -nowarn option.
Parameters: key - The key for the localized note message. Parameters: args - Fields of the note message. |
aptNote | public void aptNote(int pos, String key, Object... args)(Code) | | Report a note, unless suppressed by the -nowarn option.
Parameters: pos - The source position at which to report the note. Parameters: key - The key for the localized note message. Parameters: args - Fields of the note message. |
aptWarning | public void aptWarning(String key, Object... args)(Code) | | Report a warning, unless suppressed by the -nowarn option or the
maximum number of warnings has been reached.
Parameters: key - The key for the localized warning message. Parameters: args - Fields of the warning message. |
aptWarning | public void aptWarning(int pos, String key, Object... args)(Code) | | Report a warning, unless suppressed by the -nowarn option or the
maximum number of warnings has been reached.
Parameters: pos - The source position at which to report the warning. Parameters: key - The key for the localized warning message. Parameters: args - Fields of the warning message. |
instance | public static Bark instance(Context context)(Code) | | Get the Bark instance for this context.
|
preRegister | public static void preRegister(Context context)(Code) | | Preregisters factories to create and use a Bark object for use as
both a Log and a Bark.
|
report | public void report(JCDiagnostic diagnostic)(Code) | | Report a diagnostic if they are not currently being ignored.
|
setDiagnosticsIgnored | public boolean setDiagnosticsIgnored(boolean b)(Code) | | Sets a flag indicating whether or not to ignore all diagnostics.
When ignored, they are not reported to the output writers, not are they
counted in the various counters.
Parameters: b - If true, subsequent diagnostics will be ignored. the previous state of the flag |
Methods inherited from com.sun.tools.javac.util.Log | public JavaFileObject currentSource()(Code)(Java Doc) public void error(String key, Object... args)(Code)(Java Doc) public void error(DiagnosticPosition pos, String key, Object... args)(Code)(Java Doc) public void error(int pos, String key, Object... args)(Code)(Java Doc) public void flush()(Code)(Java Doc) public static String format(String fmt, Object... args)(Code)(Java Doc) protected char[] getBuf()(Code)(Java Doc) protected static char[] getCharContent(JavaFileObject fileObject) throws IOException(Code)(Java Doc) protected int getColumnNumber(int pos)(Code)(Java Doc) protected int getLineNumber(int pos)(Code)(Java Doc) public static String getLocalizedString(String key, Object... args)(Code)(Java Doc) protected PrintWriter getWriterForDiagnosticType(DiagnosticType dt)(Code)(Java Doc) public boolean hasDiagnosticListener()(Code)(Java Doc) public static Log instance(Context context)(Code)(Java Doc) public void mandatoryNote(JavaFileObject file, String key, Object... args)(Code)(Java Doc) public void mandatoryWarning(DiagnosticPosition pos, String key, Object... args)(Code)(Java Doc) public void note(String key, Object... args)(Code)(Java Doc) public void note(DiagnosticPosition pos, String key, Object... args)(Code)(Java Doc) public void note(int pos, String key, Object... args)(Code)(Java Doc) public static void printLines(PrintWriter writer, String msg)(Code)(Java Doc) public void prompt()(Code)(Java Doc) public void rawError(int pos, String msg)(Code)(Java Doc) public void rawWarning(int pos, String msg)(Code)(Java Doc) public void report(JCDiagnostic diagnostic)(Code)(Java Doc) protected void setBuf(char[] newBuf)(Code)(Java Doc) public void setEndPosTable(JavaFileObject name, Map<JCTree, Integer> table)(Code)(Java Doc) protected boolean shouldReport(JavaFileObject file, int pos)(Code)(Java Doc) public void strictWarning(DiagnosticPosition pos, String key, Object... args)(Code)(Java Doc) public JavaFileObject useSource(JavaFileObject name)(Code)(Java Doc) public void warning(String key, Object... args)(Code)(Java Doc) public void warning(DiagnosticPosition pos, String key, Object... args)(Code)(Java Doc) public void warning(int pos, String key, Object... args)(Code)(Java Doc) protected void writeDiagnostic(JCDiagnostic diag)(Code)(Java Doc)
|
|
|