Top Description Fields Constructors Methods
org.antlr.tool

public Class GrammarSyntaxMessage

extends Message
Class Inheritance
Imports
org.antlr.runtime.RecognitionException, .Token, org.stringtemplate.v4.ST

A problem with the syntax of your antlr grammar such as "The '{' came as a complete surprise to me at this point in your program"

Field Summary

Modifier and TypeField and Description
public RecognitionException
public Grammar
g

public Token
offendingToken

Most of the time, we'll have a token and so this will be set.

Inherited from org.antlr.tool.Message:
argarg2columnefilelinelocationSTmessageFormatSTmsgIDmsgSTreportST

Constructor Summary

AccessConstructor and Description
public
GrammarSyntaxMessage(int msgID, Grammar grammar, Token offendingToken, RecognitionException exception)

public
GrammarSyntaxMessage(int msgID, Grammar grammar, Token offendingToken, Object arg, RecognitionException exception)

Method Summary

Modifier and TypeMethod and Description
public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.
Inherited from org.antlr.tool.Message:
getLocationTemplategetMessageTemplatesetColumnsetLinesetMessageIDtoString

Field Detail

exceptionback to summary
public RecognitionException exception
gback to summary
public Grammar g
offendingTokenback to summary
public Token offendingToken

Most of the time, we'll have a token and so this will be set.

Constructor Detail

GrammarSyntaxMessageback to summary
public GrammarSyntaxMessage(int msgID, Grammar grammar, Token offendingToken, RecognitionException exception)
GrammarSyntaxMessageback to summary
public GrammarSyntaxMessage(int msgID, Grammar grammar, Token offendingToken, Object arg, RecognitionException exception)

Method Detail

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

Annotations
@Override