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 class
BuildIssue.Kind
-
Constructor Summary
Constructors Constructor Description BuildIssue()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(BuildIssue aBI)
Standard compareTo implementation.int
getColumn()
Returns the column index.int
getEnd()
Returns the end char index.WebFile
getFile()
Returns the file.BuildIssue.Kind
getKind()
Returns the kind.int
getLine()
Returns the line index.int
getLineNumber()
Returns the line number (convenience).int
getStart()
Returns the start char index.java.lang.String
getText()
Returns the error text.BuildIssue
init(WebFile aFile, BuildIssue.Kind aKind, java.lang.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.java.lang.String
toString()
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:
compareTo
in interfacejava.lang.Comparable<BuildIssue>
-
toString
public java.lang.String toString()
Standard toString implementation.- Overrides:
toString
in classjava.lang.Object
-
-