Class Breakpoint
java.lang.Object
com.inductiveautomation.snap.debug.Breakpoint
- All Implemented Interfaces:
Comparable<Breakpoint>
Represents a debugger break point for a project file.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
compareTo
(Breakpoint aBP) Standard compare implementation.createAccessWatchpoint
(String aClsName, String fieldId, boolean isAccess) Initializes a Watchpoint.boolean
Standard equals implementation.Returns a descriptor string.getFile()
Returns the file.Returns the file path.int
getLine()
Returns the line index.int
Returns the line number.Returns the method args (if method break point).Returns the method name (if method break point).getName()
Returns the name.getType()
Returns the type.int
hashCode()
Return hash code.initClassLine
(String aClsName, int line) Initializes a LineBreakpoint.initException
(String aClsName, boolean notifyCaught, boolean notifyUncaught) Initializes a ExceptionIntercept.initMethod
(String aClsName, String aMethod, List theArgs) Initializes a MethodBreakpoint.initSourceLine
(WebFile aFile, int aLine) Initializes a breakpoint for project, FilePath and Line.boolean
Returns whether breakpoint is enabled.void
setEnabled
(boolean aValue) Sets whether breakpoint is enabled.protected void
Sets the file.void
setLine
(int aLine) Sets the line number.toString()
Standard toString implementation.
-
Constructor Details
-
Breakpoint
public Breakpoint()
-
-
Method Details
-
initSourceLine
Initializes a breakpoint for project, FilePath and Line. -
initClassLine
Initializes a LineBreakpoint. -
initMethod
Initializes a MethodBreakpoint. For example: initMethod("snap.app.App", "main", Collections.singletonList("java.lang.String[]")); -
initException
Initializes a ExceptionIntercept. -
createAccessWatchpoint
Initializes a Watchpoint. -
getName
Returns the name. -
getType
Returns the type. -
getFile
Returns the file. -
setFile
Sets the file. -
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
Returns the method name (if method break point). -
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
Returns a descriptor string. -
compareTo
Standard compare implementation.- Specified by:
compareTo
in interfaceComparable<Breakpoint>
-
hashCode
public int hashCode()Return hash code. -
equals
Standard equals implementation. -
toString
Standard toString implementation.
-