Class BuildIssue
- java.lang.Object
-
- com.inductiveautomation.snap.project.BuildIssue
-
- All Implemented Interfaces:
java.lang.Comparable<BuildIssue>
public class BuildIssue extends java.lang.Object implements java.lang.Comparable<BuildIssue>
This class represents a build error (or warning) for a file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBuildIssue.Kind
-
Constructor Summary
Constructors Constructor Description BuildIssue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(BuildIssue aBI)Standard compareTo implementation.intgetColumn()Returns the column index.intgetEnd()Returns the end char index.WebFilegetFile()Returns the file.BuildIssue.KindgetKind()Returns the kind.intgetLine()Returns the line index.intgetLineNumber()Returns the line number (convenience).intgetStart()Returns the start char index.java.lang.StringgetText()Returns the error text.BuildIssueinit(WebFile aFile, BuildIssue.Kind aKind, java.lang.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.java.lang.StringtoString()Standard toString implementation.
-
-
-
Method Detail
-
init
public BuildIssue init(WebFile aFile, BuildIssue.Kind aKind, java.lang.String theText, int aLine, int aColumn, int aStart, int anEnd)
Creates a new error.
-
getFile
public WebFile getFile()
Returns the file.
-
getKind
public BuildIssue.Kind getKind()
Returns the kind.
-
isError
public boolean isError()
Returns whether issue is error.
-
getText
public java.lang.String 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
public int compareTo(BuildIssue aBI)
Standard compareTo implementation.- Specified by:
compareToin interfacejava.lang.Comparable<BuildIssue>
-
toString
public java.lang.String toString()
Standard toString implementation.- Overrides:
toStringin classjava.lang.Object
-
-