[Java] Class SyntaxErrorMessage

  • org.codehaus.groovy.control.messages.SyntaxErrorMessage

A class for error messages produced by the parser system.

Authors:
Chris Poirier

Field Summary

Fields
Modifiers Name Description
protected SyntaxException cause
protected SourceUnit source

Constructor Summary

Constructors
Constructor and description
SyntaxErrorMessage (SyntaxException cause, SourceUnit source)

Methods Summary

Methods
Type Params Return Type Name and description
SyntaxException getCause()
Returns the underlying SyntaxException.
void write(PrintWriter output, Janitor janitor)
Writes out a nicely formatted summary of the syntax error.

Inherited Methods Summary

Inherited Methods
Methods inherited from class Name
class Message create, create, create, write, write
class Object wait, wait, wait, equals, toString, hashCode, getClass, notify, notifyAll

Field Detail

protected SyntaxException cause

protected SourceUnit source

Constructor Detail

public SyntaxErrorMessage(SyntaxException cause, SourceUnit source)

Method Detail

public SyntaxException getCause()

Returns the underlying SyntaxException.

public void write(PrintWriter output, Janitor janitor)

Writes out a nicely formatted summary of the syntax error.

© 2003-2020 The Apache Software Foundation
Licensed under the Apache license.
https://docs.groovy-lang.org/2.4.21/html/gapi/org/codehaus/groovy/control/messages/SyntaxErrorMessage.html