Class Breakpoint
- java.lang.Object
-
- com.inductiveautomation.snap.debug.Breakpoint
-
- All Implemented Interfaces:
java.lang.Comparable<Breakpoint>
public class Breakpoint extends java.lang.Object implements java.lang.Comparable<Breakpoint>
Represents a debugger break point for a project file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBreakpoint.Type
-
Constructor Summary
Constructors Constructor Description Breakpoint()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Breakpoint aBP)Standard compare implementation.BreakpointcreateAccessWatchpoint(java.lang.String aClsName, java.lang.String fieldId, boolean isAccess)Initializes a Watchpoint.booleanequals(java.lang.Object anObj)Standard equals implementation.java.lang.StringgetDescriptor()Returns a descriptor string.WebFilegetFile()Returns the file.java.lang.StringgetFilePath()Returns the file path.intgetLine()Returns the line index.intgetLineNum()Returns the line number.java.util.List<java.lang.String>getMethodArgs()Returns the method args (if method break point).java.lang.StringgetMethodName()Returns the method name (if method break point).java.lang.StringgetName()Returns the name.Breakpoint.TypegetType()Returns the type.inthashCode()Return hash code.BreakpointinitClassLine(java.lang.String aClsName, int line)Initializes a LineBreakpoint.BreakpointinitException(java.lang.String aClsName, boolean notifyCaught, boolean notifyUncaught)Initializes a ExceptionIntercept.BreakpointinitMethod(java.lang.String aClsName, java.lang.String aMethod, java.util.List theArgs)Initializes a MethodBreakpoint.BreakpointinitSourceLine(WebFile aFile, int aLine)Initializes a breakpoint for project, FilePath and Line.booleanisEnabled()Returns whether breakpoint is enabled.voidsetEnabled(boolean aValue)Sets whether breakpoint is enabled.protected voidsetFile(WebFile aFile)Sets the file.voidsetLine(int aLine)Sets the line number.java.lang.StringtoString()Standard toString implementation.
-
-
-
Method Detail
-
initSourceLine
public Breakpoint initSourceLine(WebFile aFile, int aLine)
Initializes a breakpoint for project, FilePath and Line.
-
initClassLine
public Breakpoint initClassLine(java.lang.String aClsName, int line)
Initializes a LineBreakpoint.
-
initMethod
public Breakpoint initMethod(java.lang.String aClsName, java.lang.String aMethod, java.util.List theArgs)
Initializes a MethodBreakpoint. For example: initMethod("snap.app.App", "main", Collections.singletonList("java.lang.String[]"));
-
initException
public Breakpoint initException(java.lang.String aClsName, boolean notifyCaught, boolean notifyUncaught)
Initializes a ExceptionIntercept.
-
createAccessWatchpoint
public Breakpoint createAccessWatchpoint(java.lang.String aClsName, java.lang.String fieldId, boolean isAccess)
Initializes a Watchpoint.
-
getName
public java.lang.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 java.lang.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 java.lang.String getMethodName()
Returns the method name (if method break point).
-
getMethodArgs
public java.util.List<java.lang.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 java.lang.String getDescriptor()
Returns a descriptor string.
-
compareTo
public int compareTo(Breakpoint aBP)
Standard compare implementation.- Specified by:
compareToin interfacejava.lang.Comparable<Breakpoint>
-
hashCode
public int hashCode()
Return hash code.- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object anObj)
Standard equals implementation.- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
Standard toString implementation.- Overrides:
toStringin classjava.lang.Object
-
-