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 TypeMethodDescriptionintcompareTo(BuildIssue aBI) Standard compareTo implementation.intReturns the column index.intgetEnd()Returns the end char index.getFile()Returns the file.getKind()Returns the kind.intgetLine()Returns the line index.intReturns the line number (convenience).intgetStart()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.booleanisError()Returns whether issue is error.voidsetEnd(int anEnd) Returns the end char index.voidsetStart(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:
compareToin interfaceComparable<BuildIssue>
-
toString
Standard toString implementation.
-