|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.tools.javac.util.JCDiagnostic.Factory
public static class JCDiagnostic.Factory
A factory for creating diagnostic objects.
| Field Summary | |
|---|---|
protected static Context.Key<JCDiagnostic.Factory> |
diagnosticFactoryKey
The context key for the diagnostic factory. |
(package private) DiagnosticFormatter<JCDiagnostic> |
formatter
|
(package private) java.lang.String |
prefix
|
| Constructor Summary | |
|---|---|
protected |
JCDiagnostic.Factory(Context context)
Create a new diagnostic factory. |
|
JCDiagnostic.Factory(JavacMessages messages,
java.lang.String prefix)
Create a new diagnostic factory. |
| Method Summary | |
|---|---|
JCDiagnostic |
error(DiagnosticSource source,
JCDiagnostic.DiagnosticPosition pos,
java.lang.String key,
java.lang.Object... args)
Create an error diagnostic. |
JCDiagnostic |
fragment(java.lang.String key,
java.lang.Object... args)
Create a fragment diagnostic, for use as an argument in other diagnostics |
static JCDiagnostic.Factory |
instance(Context context)
Get the Factory instance for this context. |
JCDiagnostic |
mandatoryNote(DiagnosticSource source,
java.lang.String key,
java.lang.Object... args)
Create a note diagnostic that will not be hidden by the -nowarn or -Xlint:none options. |
JCDiagnostic |
mandatoryWarning(DiagnosticSource source,
JCDiagnostic.DiagnosticPosition pos,
java.lang.String key,
java.lang.Object... args)
Create a warning diagnostic that will not be hidden by the -nowarn or -Xlint:none options. |
JCDiagnostic |
note(DiagnosticSource source,
JCDiagnostic.DiagnosticPosition pos,
java.lang.String key,
java.lang.Object... args)
Create a note diagnostic. |
JCDiagnostic |
note(java.lang.String key,
java.lang.Object... args)
Create a note diagnostic. |
protected java.lang.String |
qualify(JCDiagnostic.DiagnosticType t,
java.lang.String key)
|
JCDiagnostic |
warning(DiagnosticSource source,
JCDiagnostic.DiagnosticPosition pos,
java.lang.String key,
java.lang.Object... args)
Create a warning diagnostic. |
| 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<JCDiagnostic.Factory> diagnosticFactoryKey
DiagnosticFormatter<JCDiagnostic> formatter
final java.lang.String prefix
| Constructor Detail |
|---|
protected JCDiagnostic.Factory(Context context)
public JCDiagnostic.Factory(JavacMessages messages,
java.lang.String prefix)
| Method Detail |
|---|
public static JCDiagnostic.Factory instance(Context context)
public JCDiagnostic error(DiagnosticSource source,
JCDiagnostic.DiagnosticPosition pos,
java.lang.String key,
java.lang.Object... args)
source - The source of the compilation unit, if any, in which to report the error.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 JCDiagnostic mandatoryWarning(DiagnosticSource source,
JCDiagnostic.DiagnosticPosition pos,
java.lang.String key,
java.lang.Object... args)
source - The source of the compilation unit, if any, in which to report the warning.pos - The source position at which to report the warning.key - The key for the localized error message.args - Fields of the error message.MandatoryWarningHandler
public JCDiagnostic warning(DiagnosticSource source,
JCDiagnostic.DiagnosticPosition pos,
java.lang.String key,
java.lang.Object... args)
source - The source of the compilation unit, if any, in which to report the warning.pos - The source position at which to report the warning.key - The key for the localized error message.args - Fields of the error message.
public JCDiagnostic mandatoryNote(DiagnosticSource source,
java.lang.String key,
java.lang.Object... args)
key - The key for the localized error message.args - Fields of the error message.MandatoryWarningHandler
public JCDiagnostic note(java.lang.String key,
java.lang.Object... args)
key - The key for the localized error message.args - Fields of the error message.
public JCDiagnostic note(DiagnosticSource source,
JCDiagnostic.DiagnosticPosition pos,
java.lang.String key,
java.lang.Object... args)
source - The source of the compilation unit, if any, in which to report the note.pos - The source position at which to report the note.key - The key for the localized error message.args - Fields of the error message.
public JCDiagnostic fragment(java.lang.String key,
java.lang.Object... args)
key - The key for the localized error message.args - Fields of the error message.
protected java.lang.String qualify(JCDiagnostic.DiagnosticType t,
java.lang.String key)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||