| Modifier and Type | Field and Description |
|---|---|
| private final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int |
| Access | Constructor and Description |
|---|---|
| public | WarningMessage(int
the warning level importance, String the message text message, CSTNode context information for locating the offending source text context, SourceUnit owner)Creates a new warning message. |
| public | WarningMessage(int
the warning level importance, String the message text message, Object additional data needed when generating the message data, CSTNode context information for locating the offending source text context, SourceUnit owner)Creates a new warning message. |
| Modifier and Type | Method and Description |
|---|---|
| public static boolean | isRelevant(int actual, int limit)
Returns true if a warning would be relevant to the specified level. |
| public boolean | isRelevant(int importance)
Returns true if this message is as or more important than the specified importance level. |
| public void | write(PrintWriter writer, Janitor janitor)
Overrides org. |
| importance | back to summary |
|---|---|
| private final int importance | |
| LIKELY_ERRORS | back to summary |
|---|---|
| public static final int LIKELY_ERRORS | |
| NONE | back to summary |
|---|---|
| public static final int NONE | |
| PARANOIA | back to summary |
|---|---|
| public static final int PARANOIA | |
| POSSIBLE_ERRORS | back to summary |
|---|---|
| public static final int POSSIBLE_ERRORS | |
| WarningMessage | back to summary |
|---|---|
| public WarningMessage(int importance, String message, CSTNode context, SourceUnit owner) Creates a new warning message. | |
| WarningMessage | back to summary |
|---|---|
| public WarningMessage(int importance, String message, Object data, CSTNode context, SourceUnit owner) Creates a new warning message. | |
| isRelevant | back to summary |
|---|---|
| public static boolean isRelevant(int actual, int limit) Returns true if a warning would be relevant to the specified level. | |
| isRelevant | back to summary |
|---|---|
| public boolean isRelevant(int importance) Returns true if this message is as or more important than the specified importance level. | |
| write | back to summary |
|---|---|
| public void write(PrintWriter writer, Janitor janitor) Overrides org. Doc from org. Writes the message to the specified PrintWriter. The supplied ProcessingUnit is the unit that holds this Message. | |