LocatedMessage (Groovy 5.0.6)
Description: declaration: package: org.codehaus.groovy.control.messages, class: LocatedMessage

Package org.codehaus.groovy.control.messages

# 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.

- ## Field Summary

  ### Fields inherited from class org.codehaus.groovy.control.messages.SimpleMessage

  `data, message, owner`

- ## Constructor Summary

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

- ## Method Summary

  Modifier and Type
  Method
  Description
  `CSTNode`
  `getContext()`
  `void`
  `write(PrintWriter writer, Janitor janitor)`
  Writes this message to the specified `PrintWriter`.

  ### Methods inherited from class org.codehaus.groovy.control.messages.SimpleMessage

  `getMessage`

  ### Methods inherited from class org.codehaus.groovy.control.messages.Message

  `create, create, create, write`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### LocatedMessage

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

  - ### LocatedMessage

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

- ## Method Details

  - ### getContext

    public CSTNode getContext()

  - ### write

    public void write(PrintWriter writer, Janitor janitor)
    Description copied from class: `Message`
    Writes this message to the specified `PrintWriter`.
    Overrides:
      `write` in class `SimpleMessage`