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
ConstructorsConstructorDescriptionParseIssue(int line, int charPositionInLine, String message, String fileName, CustomErrorListener.ParseIssueType parseIssueType) -
Method Summary
Modifier and TypeMethodDescriptionintOrder by parse issues primarily by line number, and secondarily by character position.intObtain character position of the parse issue.Obtain the filename of the script containing the parse issue, if available.intgetLine()Obtain line number of the parse issue.Obtain the message describing the parse issue.Obtain the type of the parse issue.voidsetCharPositionInLine(int charPositionInLine) voidsetFileName(String fileName) voidsetLine(int line) voidsetMessage(String message) voidsetParseIssueType(CustomErrorListener.ParseIssueType parseIssueType)
-
Constructor Details
-
ParseIssue
public ParseIssue(int line, int charPositionInLine, String message, String fileName, CustomErrorListener.ParseIssueType parseIssueType)
-
-
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
Obtain the message describing the parse issue.- Returns:
- Message describing the parse issue
-
setMessage
-
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
-
getParseIssueType
Obtain the type of the parse issue.- Returns:
- The type of the parse issue.
-
setParseIssueType
-
compareTo
Order by parse issues primarily by line number, and secondarily by character position.- Specified by:
compareToin interfaceComparable<CustomErrorListener.ParseIssue>
-