Top Description Fields Constructors Methods
org.codehaus.groovy.control.messages

public Class SyntaxErrorMessage

extends Message
Class Inheritance
Imports
org.codehaus.groovy.control.Janitor, .SourceUnit, org.codehaus.groovy.syntax.SyntaxException, java.io.PrintWriter

A class for error messages produced by the parser system.

Field Summary

Modifier and TypeField and Description
protected SyntaxException
protected SourceUnit

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public SyntaxException
getCause()

Returns the underlying SyntaxException.

public void
write(PrintWriter output, Janitor janitor)

Implements abstract org.codehaus.groovy.control.messages.Message.write.

Writes out a nicely formatted summary of the syntax error.
Inherited from org.codehaus.groovy.control.messages.Message:
createcreatecreatewrite

Field Detail

causeback to summary
protected SyntaxException cause
sourceback to summary
protected SourceUnit source

Constructor Detail

SyntaxErrorMessageback to summary
public SyntaxErrorMessage(SyntaxException cause, SourceUnit source)

Method Detail

getCauseback to summary
public SyntaxException getCause()

Returns the underlying SyntaxException.

writeback to summary
public void write(PrintWriter output, Janitor janitor)

Implements abstract org.codehaus.groovy.control.messages.Message.write.

Writes out a nicely formatted summary of the syntax error.