org.antlr.tool
Class GrammarSyntaxMessage

java.lang.Object
  extended by org.antlr.tool.Message
      extended by org.antlr.tool.GrammarSyntaxMessage

public class GrammarSyntaxMessage
extends Message

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
 antlr.RecognitionException exception
           
 Grammar g
           
 antlr.Token offendingToken
          Most of the time, we'll have a token and so this will be set.
 
Fields inherited from class org.antlr.tool.Message
arg, arg2, column, e, file, line, locationST, messageFormatST, msgID, msgST, reportST
 
Constructor Summary
GrammarSyntaxMessage(int msgID, Grammar grammar, antlr.Token offendingToken, java.lang.Object arg, antlr.RecognitionException exception)
           
GrammarSyntaxMessage(int msgID, Grammar grammar, antlr.Token offendingToken, antlr.RecognitionException exception)
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class org.antlr.tool.Message
getLocationTemplate, getMessageTemplate, setColumn, setLine, setMessageID, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

g

public Grammar g

offendingToken

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


exception

public antlr.RecognitionException exception
Constructor Detail

GrammarSyntaxMessage

public GrammarSyntaxMessage(int msgID,
                            Grammar grammar,
                            antlr.Token offendingToken,
                            antlr.RecognitionException exception)

GrammarSyntaxMessage

public GrammarSyntaxMessage(int msgID,
                            Grammar grammar,
                            antlr.Token offendingToken,
                            java.lang.Object arg,
                            antlr.RecognitionException exception)
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2013. All Rights Reserved.