Class LocatedMessage
- java.lang.Object
-
- org.codehaus.groovy.control.messages.Message
-
- org.codehaus.groovy.control.messages.SimpleMessage
-
- org.codehaus.groovy.control.messages.LocatedMessage
-
- Direct Known Subclasses:
WarningMessage
public class LocatedMessage extends SimpleMessage
A base class for compilation messages.
-
-
Constructor Summary
Constructors Constructor Description LocatedMessage(String message, Object data, CSTNode context, SourceUnit source)
LocatedMessage(String message, CSTNode context, SourceUnit source)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
write(PrintWriter writer, Janitor janitor)
Writes the message to the specified PrintWriter.-
Methods inherited from class org.codehaus.groovy.control.messages.SimpleMessage
getMessage
-
-
-
-
Field Detail
-
context
protected CSTNode context
-
-
Constructor Detail
-
LocatedMessage
public LocatedMessage(String message, CSTNode context, SourceUnit source)
-
LocatedMessage
public LocatedMessage(String message, Object data, CSTNode context, SourceUnit source)
-
-
Method Detail
-
write
public void write(PrintWriter writer, Janitor janitor)
Description copied from class:Message
Writes the message to the specified PrintWriter. The supplied ProcessingUnit is the unit that holds this Message.- Overrides:
write
in classSimpleMessage
-
-