org.apache.bsf.util
Class BreakPoint
public
class
BreakPoint
extends Object
This is a class for the debug manager to remember
a breakpoint. Breakpoints are set globally to a
JVM, that is, globally to all BSFManager/BSFEngine
created in the JVM.
A breakpoint is either at a line (defined by '\n')
or an (char) offset in a document.
NOTE:
There is no correspondance so far... so for
instance, if a breakpoint is defined at an offset,
it cannot be manipulated later as defined with a line,
although conceptually there is an equivalence between
lines and offsets.
A document is for instance a JSP in Tomcat/Jasper
framework. Its name is given when evaluating/executing
a function or a script through the BSFEngine.eval or
BSFEngine.exec interface.
Breakpoints are identified through breakpoint identifier
which are provided by the client debugger. This allows an
easy communication between the server and the client.
Breakpoint identifiers shall be unique across documents.
Author: Olivier Gruber
See Also: java.lang.eval java.lang.exec
protected int m_brkptId
protected boolean m_lineDefined
protected int m_lineno
protected int m_offset
public int getId()
public int getLineNo()
public int getOffset()
public boolean isLineDefined()
public void setLineNo(int lineno)
public void setOffset(int offset)
public String toString()