Class ANTLRMessage

    • Field Detail

      • fileName

        public String fileName
      • line

        public int line
      • charPosition

        public int charPosition
      • offendingToken

        public org.antlr.runtime.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,
                            org.antlr.runtime.Token offendingToken,
                            Object... args)
      • ANTLRMessage

        public ANTLRMessage​(ErrorType errorType,
                            Throwable e,
                            org.antlr.runtime.Token offendingToken,
                            Object... args)
    • Method Detail

      • getErrorType

        public ErrorType getErrorType()
      • getArgs

        public Object[] getArgs()
      • getMessageTemplate

        public org.stringtemplate.v4.ST getMessageTemplate​(boolean verbose)