Groovy 2.2.0

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\$


Field Summary
static int LIKELY_ERRORS

static int NONE

static int PARANOIA

Returns true if a warning would be relevant to the specified level.

static int POSSIBLE_ERRORS

 
Fields inherited from class LocatedMessage
context
 
Fields inherited from class SimpleMessage
data, message, owner
 
Constructor Summary
WarningMessage(int importance, String message, CSTNode context, SourceUnit owner)

WarningMessage(int importance, String message, Object data, CSTNode context, SourceUnit owner)

 
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)

 
Methods inherited from class LocatedMessage
write
 
Methods inherited from class SimpleMessage
getMessage, write
 
Methods inherited from class Message
create, create, create, write, write
 
Methods inherited from class Object
wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll
 

Field Detail

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


 
Constructor Detail

WarningMessage

public WarningMessage(int importance, String message, CSTNode context, SourceUnit owner)


WarningMessage

public WarningMessage(int importance, String message, Object data, CSTNode context, SourceUnit owner)


 
Method Detail

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.