| java.lang.Object org.codehaus.groovy.control.messages.Message org.codehaus.groovy.control.messages.SimpleMessage org.codehaus.groovy.control.messages.LocatedMessage org.codehaus.groovy.control.messages.WarningMessage
WarningMessage | public class WarningMessage extends LocatedMessage (Code) | | A class for warning messages.
author: Chris Poirier version: $Id: WarningMessage.java 2264 2005-06-10 09:55:31Z cstein $ |
Method Summary | |
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) |
LIKELY_ERRORS | final public static int LIKELY_ERRORS(Code) | | |
NONE | final public static int NONE(Code) | | |
PARANOIA | final public static int PARANOIA(Code) | | |
POSSIBLE_ERRORS | final public static int POSSIBLE_ERRORS(Code) | | |
WarningMessage | public WarningMessage(int importance, String message, CSTNode context, SourceUnit owner)(Code) | | Creates a new warning message.
Parameters: importance - the warning level Parameters: message - the message text Parameters: context - context information for locating the offending source text |
WarningMessage | public WarningMessage(int importance, String message, Object data, CSTNode context, SourceUnit owner)(Code) | | Creates a new warning message.
Parameters: importance - the warning level Parameters: message - the message text Parameters: data - additional data needed when generating the message Parameters: context - context information for locating the offending source text |
isRelevant | public static boolean isRelevant(int actual, int limit)(Code) | | Returns true if a warning would be relevant to the specified level.
|
isRelevant | public boolean isRelevant(int importance)(Code) | | Returns true if this message is as or more important than the
specified importance level.
|
|
|