Class ANTLRMessage

    • Field Detail

      • fileName

        public String fileName
      • line

        public int line
      • charPosition

        public int charPosition
      • offendingToken

        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

      • ANTLRMessage

        public ANTLRMessage(ErrorType errorType)
      • ANTLRMessage

        public ANTLRMessage(ErrorType errorType,
                            Token offendingToken,
                            Object... args)
    • Method Detail

      • getErrorType

        public ErrorType getErrorType()
      • getArgs

        public Object[] getArgs()
      • getMessageTemplate

        public ST getMessageTemplate(boolean verbose)
      • toString

        public String toString()