| java.lang.Object com.sun.tools.javac.util.JCDiagnostic
JCDiagnostic | public class JCDiagnostic implements Diagnostic<JavaFileObject>(Code) | | An abstraction of a diagnostic message generated by the compiler.
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.
|
Inner Class :public static class Factory | |
Inner Class :public interface DiagnosticSource | |
Inner Class :public enum DiagnosticType | |
Inner Class :public static interface DiagnosticPosition | |
Inner Class :public static class SimpleDiagnosticPosition implements DiagnosticPosition | |
Constructor Summary | |
protected | JCDiagnostic(Messages messages, DiagnosticType dt, boolean mandatory, DiagnosticSource source, DiagnosticPosition pos, String key, Object... args) Create a diagnostic object. |
JCDiagnostic | protected JCDiagnostic(Messages messages, DiagnosticType dt, boolean mandatory, DiagnosticSource source, DiagnosticPosition pos, String key, Object... args)(Code) | | Create a diagnostic object.
Parameters: messages - the resource for localized messages Parameters: dt - the type of diagnostic Parameters: name - the name of the source file, or null if none. Parameters: pos - the character offset within the source file, if given. Parameters: key - a resource key to identify the text of the diagnostic Parameters: args - arguments to be included in the text of the diagnostic |
fragment | public static JCDiagnostic fragment(String key, Object... args)(Code) | | Create a fragment diagnostic, for use as an argument in other diagnostics
Parameters: key - The key for the localized error message. Parameters: args - Fields of the error message. |
getArgs | public Object[] getArgs()(Code) | | Get the arguments to be included in the text of the diagnostic.
the arguments to be included in the text of the diagnostic |
getColumnNumber | public long getColumnNumber()(Code) | | Get the column number within the line of source referred to by this diagnostic.
the column number within the line of source referred to by this diagnostic |
getDiagnosticSource | public DiagnosticSource getDiagnosticSource()(Code) | | Get the source referred to by this diagnostic.
the source referred to with this diagnostic, or null if none |
getEndPosition | public long getEndPosition()(Code) | | |
getIntEndPosition | protected int getIntEndPosition()(Code) | | |
getIntPosition | protected int getIntPosition()(Code) | | |
getIntStartPosition | protected int getIntStartPosition()(Code) | | |
getLineNumber | public long getLineNumber()(Code) | | Get the line number within the source referred to by this diagnostic.
the line number within the source referred to by this diagnostic |
getPosition | public long getPosition()(Code) | | |
getPrefix | public String getPrefix()(Code) | | Get the prefix string associated with this type of diagnostic.
the prefix string associated with this type of diagnostic |
getPrefix | public String getPrefix(DiagnosticType dt)(Code) | | Get the prefix string associated with a particular type of diagnostic.
the prefix string associated with a particular type of diagnostic |
getSource | public JavaFileObject getSource()(Code) | | Get the name of the source file referred to by this diagnostic.
the name of the source referred to with this diagnostic, or null if none |
getSourceName | public String getSourceName()(Code) | | Get the name of the source file referred to by this diagnostic.
the name of the source referred to with this diagnostic, or null if none |
getStartPosition | public long getStartPosition()(Code) | | |
getType | public DiagnosticType getType()(Code) | | Get the type of this diagnostic.
the type of this diagnostic |
isMandatory | public boolean isMandatory()(Code) | | Check whether or not this diagnostic is required to be shown.
true if this diagnostic is required to be shown. |
toString | public String toString()(Code) | | Return the standard presentation of this diagnostic.
|
|
|