This is NOT part of any supported API. 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.
Modifier and Type | Field and Description |
---|---|
public final JCDiagnostic. | diags
Factory for diagnostics |
protected DiagnosticSource | source
The file that's currently being translated. |
protected Map | sourceMap
A cache of lightweight DiagnosticSource objects. |
Access | Constructor and Description |
---|---|
pack-priv |
Modifier and Type | Method and Description |
---|---|
public DiagnosticSource | |
protected abstract void | |
public void | |
public void | error(JCDiagnostic.
The key for the localized error message. errorKeyReport an error, unless another error was already reported at same source position. |
public void | error(JCDiagnostic.
The source position at which to report the error. pos,The key for the localized error message. errorKeyReport an error, unless another error was already reported at same source position. |
public void | error(JCDiagnostic.
A flag to set on the diagnostic flag,The source position at which to report the error. pos,The key for the localized error message. errorKeyReport an error, unless another error was already reported at same source position. |
public void | |
public void | error(int
The source position at which to report the error. pos, JCDiagnostic.The key for the localized error message. errorKeyReport an error, unless another error was already reported at same source position. |
public void | error(JCDiagnostic.
A flag to set on the diagnostic flag,The source position at which to report the error. pos, JCDiagnostic.The key for the localized error message. errorKeyReport an error, unless another error was already reported at same source position. |
protected DiagnosticSource | |
public void | mandatoryNote(final JavaFileObject file, JCDiagnostic.
The key for the localized notification message. noteKeyProvide a non-fatal notification, unless suppressed by the -nowarn option. |
public void | mandatoryWarning(JCDiagnostic.
The source position at which to report the warning. pos,The key for the localized warning message. warningKeyReport a warning. |
public void | mandatoryWarning(Lint.
The lint category for the diagnostic lc,The source position at which to report the warning. pos,The key for the localized warning message. warningKeyReport a warning. |
public void | note(JCDiagnostic.
The key for the localized notification message. noteKeyProvide a non-fatal notification, unless suppressed by the -nowarn option. |
public void | note(JCDiagnostic.
The key for the localized notification message. noteKeyProvide a non-fatal notification, unless suppressed by the -nowarn option. |
public void | note(int pos, JCDiagnostic.
The key for the localized notification message. noteKeyProvide a non-fatal notification, unless suppressed by the -nowarn option. |
public void | note(JavaFileObject file, JCDiagnostic.
The key for the localized notification message. noteKeyProvide a non-fatal notification, unless suppressed by the -nowarn option. |
protected abstract void | |
public JavaFileObject | |
public void | warning(JCDiagnostic.
The key for the localized warning message. warningKeyReport a warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached. |
public void | warning(Lint.
The lint category for the diagnostic lc,The key for the localized warning message. warningKeyReport a lint warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached. |
public void | warning(JCDiagnostic.
The source position at which to report the warning. pos,The key for the localized warning message. warningKeyReport a warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached. |
public void | warning(Lint.
The lint category for the diagnostic lc,The source position at which to report the warning. pos,The key for the localized warning message. warningKeyReport a lint warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached. |
public void | warning(int
The source position at which to report the warning. pos, JCDiagnostic.The key for the localized warning message. warningKeyReport a warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached. |
private JCDiagnostic. |
diags | back to summary |
---|---|
public final JCDiagnostic. Factory for diagnostics |
source | back to summary |
---|---|
protected DiagnosticSource source The file that's currently being translated. |
sourceMap | back to summary |
---|---|
protected Map<JavaFileObject, DiagnosticSource> sourceMap A cache of lightweight DiagnosticSource objects. |
AbstractLog | back to summary |
---|---|
pack-priv AbstractLog(JCDiagnostic. |
currentSource | back to summary |
---|---|
public DiagnosticSource currentSource() Return the underlying diagnostic source |
directError | back to summary |
---|---|
protected abstract void directError(String key, Object... args) |
error | back to summary |
---|---|
public void error(String key, Object... args) Report an error, unless another error was already reported at same source position. |
error | back to summary |
---|---|
public void error(JCDiagnostic. Report an error, unless another error was already reported at same source position.
|
error | back to summary |
---|---|
public void error(JCDiagnostic. Report an error, unless another error was already reported at same source position.
|
error | back to summary |
---|---|
public void error(JCDiagnostic. Report an error, unless another error was already reported at same source position.
|
error | back to summary |
---|---|
public void error(int pos, String key, Object... args) Report an error, unless another error was already reported at same source position. |
error | back to summary |
---|---|
public void error(int pos, JCDiagnostic. Report an error, unless another error was already reported at same source position.
|
error | back to summary |
---|---|
public void error(JCDiagnostic. Report an error, unless another error was already reported at same source position.
|
getSource | back to summary |
---|---|
protected DiagnosticSource getSource(JavaFileObject file) |
mandatoryNote | back to summary |
---|---|
public void mandatoryNote(final JavaFileObject file, JCDiagnostic. Provide a non-fatal notification, unless suppressed by the -nowarn option.
|
mandatoryWarning | back to summary |
---|---|
public void mandatoryWarning(JCDiagnostic. Report a warning.
|
mandatoryWarning | back to summary |
---|---|
public void mandatoryWarning(Lint. Report a warning.
|
note | back to summary |
---|---|
public void note(JCDiagnostic. Provide a non-fatal notification, unless suppressed by the -nowarn option.
|
note | back to summary |
---|---|
public void note(JCDiagnostic. Provide a non-fatal notification, unless suppressed by the -nowarn option.
|
note | back to summary |
---|---|
public void note(int pos, JCDiagnostic. Provide a non-fatal notification, unless suppressed by the -nowarn option.
|
note | back to summary |
---|---|
public void note(JavaFileObject file, JCDiagnostic. Provide a non-fatal notification, unless suppressed by the -nowarn option.
|
report | back to summary |
---|---|
protected abstract void report(JCDiagnostic diagnostic) |
useSource | back to summary |
---|---|
public JavaFileObject useSource(JavaFileObject file) Re-assign source, returning previous setting. |
warning | back to summary |
---|---|
public void warning(JCDiagnostic. Report a warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached.
|
warning | back to summary |
---|---|
public void warning(Lint. Report a lint warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached.
|
warning | back to summary |
---|---|
public void warning(JCDiagnostic. Report a warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached.
|
warning | back to summary |
---|---|
public void warning(Lint. Report a lint warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached.
|
warning | back to summary |
---|---|
public void warning(int pos, JCDiagnostic. Report a warning, unless suppressed by the -nowarn option or the maximum number of warnings has been reached.
|
wrap | back to summary |
---|---|
private JCDiagnostic. |