Top Description Fields Constructors Methods
org.antlr.tool

public Class GrammarSemanticsMessage

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

A problem with the symbols and/or meaning of a grammar such as rule redefinition.

Field Summary

Modifier and TypeField and Description
public Grammar
g

public Token
offendingToken

Most of the time, we'll have a token such as an undefined rule ref and so this will be set.

Inherited from org.antlr.tool.Message:
argarg2columnefilelinelocationSTmessageFormatSTmsgIDmsgSTreportST

Constructor Summary

AccessConstructor and Description
public
GrammarSemanticsMessage(int msgID, Grammar g, Token offendingToken)

public
GrammarSemanticsMessage(int msgID, Grammar g, Token offendingToken, Object arg)

public
GrammarSemanticsMessage(int msgID, Grammar g, Token offendingToken, Object arg, Object arg2)

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

gback to summary
public Grammar g
offendingTokenback to summary
public Token offendingToken

Most of the time, we'll have a token such as an undefined rule ref and so this will be set.

Constructor Detail

GrammarSemanticsMessageback to summary
public GrammarSemanticsMessage(int msgID, Grammar g, Token offendingToken)
GrammarSemanticsMessageback to summary
public GrammarSemanticsMessage(int msgID, Grammar g, Token offendingToken, Object arg)
GrammarSemanticsMessageback to summary
public GrammarSemanticsMessage(int msgID, Grammar g, Token offendingToken, Object arg, Object arg2)

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