Package: org.codehaus.groovy.control.messages

## [Java] Class LocatedMessage

- org.codehaus.groovy.control.messages.LocatedMessage

- A base class for compilation messages.

  Authors:
    Chris Poirier

- - ### Field Summary

    Fields
    Modifiers | Name | Description
    --- | --- | ---
    `protected CSTNode` | `context` |

  - Inherited fields
    Fields inherited from class | Fields
    --- | ---
    `class SimpleMessage` | `data, message, owner`

  - ### Constructor Summary

    Constructors
    Constructor and description
    `LocatedMessage (String message, CSTNode context, SourceUnit source)`
    `LocatedMessage (String message, Object data, CSTNode context, SourceUnit source)`

  - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `void` | `write(PrintWriter writer, Janitor janitor)`

  - ### Inherited Methods Summary

    Inherited Methods
    Methods inherited from class | Name
    --- | ---
    `class SimpleMessage` | `getMessage, write`
    `class Message` | `create, create, create, write, write`
    `class Object` | `wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll`

- - ### Field Detail

    - #### protected CSTNode context

  - ### Constructor Detail

    - #### public LocatedMessage(String message, CSTNode context, SourceUnit source)

    - #### public LocatedMessage(String message, Object data, CSTNode context, SourceUnit source)

  - ### Method Detail

    - #### public void write(PrintWriter writer, Janitor janitor)