org.codehaus.groovy.control.messages
[Java] Class WarningMessage
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
public class WarningMessage
extends LocatedMessage
A class for warning messages.
- Authors:
- Chris Poirier
- Version:
- \$Id\$
Method Summary |
static boolean
|
isRelevant(int actual, int limit)
|
boolean
|
isRelevant(int importance)
Returns true if this message is as or more important than the
specified importance level.
|
void
|
write(PrintWriter writer, Janitor janitor)
|
LIKELY_ERRORS
public static final int LIKELY_ERRORS
-
NONE
public static final int NONE
-
PARANOIA
public static final int PARANOIA
- Returns true if a warning would be relevant to the specified level.
POSSIBLE_ERRORS
public static final int POSSIBLE_ERRORS
-
WarningMessage
public WarningMessage(int importance, String message, CSTNode context, SourceUnit owner)
-
WarningMessage
public WarningMessage(int importance, String message, Object data, CSTNode context, SourceUnit owner)
-
isRelevant
public static boolean isRelevant(int actual, int limit)
-
isRelevant
public boolean isRelevant(int importance)
- Returns true if this message is as or more important than the
specified importance level.
write
public void write(PrintWriter writer, Janitor janitor)
-
Copyright © 2003-2013 The Codehaus. All rights reserved.