Class Breakpoint

java.lang.Object
com.inductiveautomation.snap.debug.Breakpoint
All Implemented Interfaces:
Comparable<Breakpoint>

public class Breakpoint extends Object implements Comparable<Breakpoint>
Represents a debugger break point for a project file.
  • Constructor Details

    • Breakpoint

      public Breakpoint()
  • Method Details

    • initSourceLine

      public Breakpoint initSourceLine(WebFile aFile, int aLine)
      Initializes a breakpoint for project, FilePath and Line.
    • initClassLine

      public Breakpoint initClassLine(String aClsName, int line)
      Initializes a LineBreakpoint.
    • initMethod

      public Breakpoint initMethod(String aClsName, String aMethod, List theArgs)
      Initializes a MethodBreakpoint. For example: initMethod("snap.app.App", "main", Collections.singletonList("java.lang.String[]"));
    • initException

      public Breakpoint initException(String aClsName, boolean notifyCaught, boolean notifyUncaught)
      Initializes a ExceptionIntercept.
    • createAccessWatchpoint

      public Breakpoint createAccessWatchpoint(String aClsName, String fieldId, boolean isAccess)
      Initializes a Watchpoint.
    • getName

      public String getName()
      Returns the name.
    • getType

      public Breakpoint.Type getType()
      Returns the type.
    • getFile

      public WebFile getFile()
      Returns the file.
    • setFile

      protected void setFile(WebFile aFile)
      Sets the file.
    • getFilePath

      public String getFilePath()
      Returns the file path.
    • getLine

      public int getLine()
      Returns the line index.
    • setLine

      public void setLine(int aLine)
      Sets the line number.
    • getLineNum

      public int getLineNum()
      Returns the line number.
    • getMethodName

      public String getMethodName()
      Returns the method name (if method break point).
    • getMethodArgs

      public List<String> getMethodArgs()
      Returns the method args (if method break point).
    • isEnabled

      public boolean isEnabled()
      Returns whether breakpoint is enabled.
    • setEnabled

      public void setEnabled(boolean aValue)
      Sets whether breakpoint is enabled.
    • getDescriptor

      public String getDescriptor()
      Returns a descriptor string.
    • compareTo

      public int compareTo(Breakpoint aBP)
      Standard compare implementation.
      Specified by:
      compareTo in interface Comparable<Breakpoint>
    • hashCode

      public int hashCode()
      Return hash code.
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object anObj)
      Standard equals implementation.
      Overrides:
      equals in class Object
    • toString

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