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 SummaryNested Classes Modifier and Type Class Description static classBreakpoint.Type
 - 
Constructor SummaryConstructors Constructor Description Breakpoint()
 - 
Method SummaryAll 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- 
initSourceLinepublic Breakpoint initSourceLine(WebFile aFile, int aLine) Initializes a breakpoint for project, FilePath and Line.
 - 
initClassLinepublic Breakpoint initClassLine(java.lang.String aClsName, int line) Initializes a LineBreakpoint.
 - 
initMethodpublic 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[]"));
 - 
initExceptionpublic Breakpoint initException(java.lang.String aClsName, boolean notifyCaught, boolean notifyUncaught) Initializes a ExceptionIntercept.
 - 
createAccessWatchpointpublic Breakpoint createAccessWatchpoint(java.lang.String aClsName, java.lang.String fieldId, boolean isAccess) Initializes a Watchpoint.
 - 
getNamepublic java.lang.String getName() Returns the name.
 - 
getTypepublic Breakpoint.Type getType() Returns the type.
 - 
getFilepublic WebFile getFile() Returns the file.
 - 
setFileprotected void setFile(WebFile aFile) Sets the file.
 - 
getFilePathpublic java.lang.String getFilePath() Returns the file path.
 - 
getLinepublic int getLine() Returns the line index.
 - 
setLinepublic void setLine(int aLine) Sets the line number.
 - 
getLineNumpublic int getLineNum() Returns the line number.
 - 
getMethodNamepublic java.lang.String getMethodName() Returns the method name (if method break point).
 - 
getMethodArgspublic java.util.List<java.lang.String> getMethodArgs() Returns the method args (if method break point).
 - 
isEnabledpublic boolean isEnabled() Returns whether breakpoint is enabled.
 - 
setEnabledpublic void setEnabled(boolean aValue) Sets whether breakpoint is enabled.
 - 
getDescriptorpublic java.lang.String getDescriptor() Returns a descriptor string.
 - 
compareTopublic int compareTo(Breakpoint aBP) Standard compare implementation.- Specified by:
- compareToin interface- java.lang.Comparable<Breakpoint>
 
 - 
hashCodepublic int hashCode() Return hash code.- Overrides:
- hashCodein class- java.lang.Object
 
 - 
equalspublic boolean equals(java.lang.Object anObj) Standard equals implementation.- Overrides:
- equalsin class- java.lang.Object
 
 - 
toStringpublic java.lang.String toString() Standard toString implementation.- Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-