Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.bsf.util
Class BreakPoint  view BreakPoint download BreakPoint.java

java.lang.Object
  extended byorg.apache.bsf.util.BreakPoint

public class BreakPoint
extends java.lang.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.


Field Summary
protected  int m_brkptId
           
protected  DocumentCell m_cell
           
protected  boolean m_lineDefined
           
protected  int m_lineno
           
protected  int m_offset
           
 
Constructor Summary
BreakPoint(DocumentCell cell, int brkptid)
           
 
Method Summary
 int getId()
           
 int getLineNo()
           
 int getOffset()
           
 boolean isLineDefined()
           
 void setLineNo(int lineno)
           
 void setOffset(int offset)
           
 java.lang.String toString()
          Convert this Object to a human-readable String.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

m_brkptId

protected int m_brkptId

m_lineno

protected int m_lineno

m_offset

protected int m_offset

m_lineDefined

protected boolean m_lineDefined

m_cell

protected DocumentCell m_cell
Constructor Detail

BreakPoint

public BreakPoint(DocumentCell cell,
                  int brkptid)
Method Detail

isLineDefined

public boolean isLineDefined()

getId

public int getId()

getLineNo

public int getLineNo()

getOffset

public int getOffset()

setLineNo

public void setLineNo(int lineno)

setOffset

public void setOffset(int offset)

toString

public java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).