Class ScriptParser.ErrorMessage

java.lang.Object
com.blackrook.rookscript.compiler.ScriptParser.ErrorMessage
Enclosing class:
ScriptParser

public static class ScriptParser.ErrorMessage extends Object
An error object added when an error is logged.
  • Method Details

    • getStreamName

      public String getStreamName()
      Returns:
      the stream name / file name that the error was emitted from.
    • getTokenLexeme

      public String getTokenLexeme()
      Returns:
      the lexeme of the current token that the error was emitted from.
    • getLineNumber

      public int getLineNumber()
      Returns:
      the line number that the error was emitted from.
    • getCharacterIndex

      public int getCharacterIndex()
      Returns:
      the character index that the error was emitted from.
    • getMessage

      public String getMessage()
      Returns:
      the error message.
    • toString

      public String toString()
      Overrides:
      toString in class Object