Class CustomErrorListener.ParseIssue

java.lang.Object
org.apache.sysds.parser.dml.CustomErrorListener.ParseIssue
All Implemented Interfaces:
Comparable<CustomErrorListener.ParseIssue>
Enclosing class:
CustomErrorListener

public class CustomErrorListener.ParseIssue extends Object implements Comparable<CustomErrorListener.ParseIssue>
A parse issue (such as an parse error or a parse warning).
  • Constructor Details

  • Method Details

    • getLine

      public int getLine()
      Obtain line number of the parse issue.
      Returns:
      Line number of the parse issue
    • setLine

      public void setLine(int line)
    • getCharPositionInLine

      public int getCharPositionInLine()
      Obtain character position of the parse issue.
      Returns:
      Character position of the parse issue
    • setCharPositionInLine

      public void setCharPositionInLine(int charPositionInLine)
    • getMessage

      public String getMessage()
      Obtain the message describing the parse issue.
      Returns:
      Message describing the parse issue
    • setMessage

      public void setMessage(String message)
    • getFileName

      public String getFileName()
      Obtain the filename of the script containing the parse issue, if available.
      Returns:
      The filename of the script contain the parse issue (if available)
    • setFileName

      public void setFileName(String fileName)
    • getParseIssueType

      public CustomErrorListener.ParseIssueType getParseIssueType()
      Obtain the type of the parse issue.
      Returns:
      The type of the parse issue.
    • setParseIssueType

      public void setParseIssueType(CustomErrorListener.ParseIssueType parseIssueType)
    • compareTo

      public int compareTo(CustomErrorListener.ParseIssue that)
      Order by parse issues primarily by line number, and secondarily by character position.
      Specified by:
      compareTo in interface Comparable<CustomErrorListener.ParseIssue>