Package org.apache.sysds.parser.dml
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 Summary
Constructors Constructor Description ParseIssue(int line, int charPositionInLine, String message, String fileName, CustomErrorListener.ParseIssueType parseIssueType)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(CustomErrorListener.ParseIssue that)Order by parse issues primarily by line number, and secondarily by character position.intgetCharPositionInLine()Obtain character position of the parse issue.StringgetFileName()Obtain the filename of the script containing the parse issue, if available.intgetLine()Obtain line number of the parse issue.StringgetMessage()Obtain the message describing the parse issue.CustomErrorListener.ParseIssueTypegetParseIssueType()Obtain the type of the parse issue.voidsetCharPositionInLine(int charPositionInLine)voidsetFileName(String fileName)voidsetLine(int line)voidsetMessage(String message)voidsetParseIssueType(CustomErrorListener.ParseIssueType parseIssueType)
-
-
-
Constructor Detail
-
ParseIssue
public ParseIssue(int line, int charPositionInLine, String message, String fileName, CustomErrorListener.ParseIssueType parseIssueType)
-
-
Method Detail
-
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:
compareToin interfaceComparable<CustomErrorListener.ParseIssue>
-
-