Class BuildIssue

java.lang.Object
com.inductiveautomation.snap.project.BuildIssue
All Implemented Interfaces:
Comparable<BuildIssue>

public class BuildIssue extends Object implements Comparable<BuildIssue>
This class represents a build error (or warning) for a file.
  • 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

      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 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 interface Comparable<BuildIssue>
    • toString

      public String toString()
      Standard toString implementation.
      Overrides:
      toString in class Object