Package org.antlr.tool
Class ToolMessage
- java.lang.Object
-
- org.antlr.tool.Message
-
- org.antlr.tool.ToolMessage
-
public class ToolMessage extends Message
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. TODO what to do with exceptions? Want stack trace for internal errors?
-
-
Constructor Summary
Constructors Constructor Description ToolMessage(int msgID)
ToolMessage(int msgID, Object arg)
ToolMessage(int msgID, Object arg, Object arg2)
ToolMessage(int msgID, Object arg, Throwable e)
ToolMessage(int msgID, Throwable e)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
toString()
-
Methods inherited from class org.antlr.tool.Message
getLocationTemplate, getMessageTemplate, setColumn, setLine, setMessageID, toString
-
-