Class BuildIssue
java.lang.Object
com.inductiveautomation.snap.project.BuildIssue
- All Implemented Interfaces:
Comparable<BuildIssue>
This class represents a build error (or warning) for a file.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(BuildIssue aBI) Standard compareTo implementation.int
Returns the column index.int
getEnd()
Returns the end char index.getFile()
Returns the file.getKind()
Returns the kind.int
getLine()
Returns the line index.int
Returns the line number (convenience).int
getStart()
Returns the start char index.getText()
Returns the error text.init
(WebFile aFile, BuildIssue.Kind aKind, String theText, int aLine, int aColumn, int aStart, int anEnd) Creates a new error.boolean
isError()
Returns whether issue is error.void
setEnd
(int anEnd) Returns the end char index.void
setStart
(int aStart) Sets the start char index.toString()
Standard toString implementation.
-
Constructor Details
-
BuildIssue
public BuildIssue()
-
-
Method Details
-
init
public BuildIssue init(WebFile aFile, BuildIssue.Kind aKind, String theText, int aLine, int aColumn, int aStart, int anEnd) Creates a new error. -
getFile
Returns the file. -
getKind
Returns the kind. -
isError
public boolean isError()Returns whether issue is error. -
getText
Returns the error text. -
getLine
public int getLine()Returns the line index. -
getColumn
public int getColumn()Returns the column index. -
getStart
public int getStart()Returns the start char index. -
setStart
public void setStart(int aStart) Sets the start char index. -
getEnd
public int getEnd()Returns the end char index. -
setEnd
public void setEnd(int anEnd) Returns the end char index. -
getLineNumber
public int getLineNumber()Returns the line number (convenience). -
compareTo
Standard compareTo implementation.- Specified by:
compareTo
in interfaceComparable<BuildIssue>
-
toString
Standard toString implementation.
-