Top Description Fields Constructors Methods
org.antlr.v4.tool

public Class ToolMessage

extends ANTLRMessage
Class Inheritance
Imports
org.antlr.runtime.Token

A generic message from the tool such as "file not found" type errors; there is no reason to create a special object for each error unlike the grammar errors, which may be rather complex. Sometimes you need to pass in a filename or something to say it is "bad". Allow a generic object to be passed in and the string template can deal with just printing it or pulling a property out of it.

Field Summary

Inherited from org.antlr.v4.tool.ANTLRMessage:
charPositionfileNameglineoffendingToken

Constructor Summary

AccessConstructor and Description
public
public
ToolMessage(ErrorType errorType, Object... args)

public
ToolMessage(ErrorType errorType, Throwable e, Object... args)

Method Summary

Inherited from org.antlr.v4.tool.ANTLRMessage:
getArgsgetCausegetErrorTypegetMessageTemplatetoString

Constructor Detail

ToolMessageback to summary
public ToolMessage(ErrorType errorType)
ToolMessageback to summary
public ToolMessage(ErrorType errorType, Object... args)
ToolMessageback to summary
public ToolMessage(ErrorType errorType, Throwable e, Object... args)