cz.cuni.sposh.debugger
Class BreakpointManager

Package class diagram package BreakpointManager
java.lang.Object
  extended by cz.cuni.sposh.debugger.BreakpointManager

public class BreakpointManager
extends Object

Simple manager that is managing class of MethodBreakpoint that share common properties(same method and breakpoint group). It can easily add it, remove previously created instances and add or remove listeners.

Author:
HonzaH

Field Summary
static String LAP_ENGINE_CLASS
          fqn of posh engine class which has the all important evaluation method
static String LAP_METHOD_NAME
          name of evaluation method in the WatchLapAction#ENGINE_CLASS
static String LAP_METHOD_SIGNATURE
          signature of evaluation method
 
Method Summary
 void addListener(org.netbeans.api.debugger.jpda.event.JPDABreakpointListener listener)
          Addd listener to the breakpoint of the manager.
static BreakpointManager createLapEvaluation(String breakpointGroup)
          Create a manager at the entry into the LAP_ENGINE_CLASS LAP_METHOD_NAME that has specified group.
 org.netbeans.api.debugger.jpda.MethodBreakpoint getBreakpoint()
          Each manager must have some breakpoint into which it adds listeners ect.
 boolean isQualified(org.netbeans.api.debugger.jpda.MethodBreakpoint mbp)
          Has passed breakpoint properties specified by the manager?
 int purge()
          Remove all breakpoints that have properties specified by this manager.
 void removeListener(org.netbeans.api.debugger.jpda.event.JPDABreakpointListener listener)
          Remove listener from the breakpoint of the manager
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LAP_ENGINE_CLASS

public static final String LAP_ENGINE_CLASS
fqn of posh engine class which has the all important evaluation method

See Also:
Constant Field Values

LAP_METHOD_NAME

public static final String LAP_METHOD_NAME
name of evaluation method in the WatchLapAction#ENGINE_CLASS

See Also:
Constant Field Values

LAP_METHOD_SIGNATURE

public static final String LAP_METHOD_SIGNATURE
signature of evaluation method

See Also:
Constant Field Values
Method Detail

createLapEvaluation

public static BreakpointManager createLapEvaluation(String breakpointGroup)
Create a manager at the entry into the LAP_ENGINE_CLASS LAP_METHOD_NAME that has specified group.

Parameters:
breakpointGroup - Breakpoint group of the manager.
Returns:
created manager

getBreakpoint

public org.netbeans.api.debugger.jpda.MethodBreakpoint getBreakpoint()
Each manager must have some breakpoint into which it adds listeners ect. This method returns the breakpoint that satisfies properties of the manager.

Returns:
Get breakpoint of this manager.

addListener

public void addListener(org.netbeans.api.debugger.jpda.event.JPDABreakpointListener listener)
Addd listener to the breakpoint of the manager.

Parameters:
listener -

removeListener

public void removeListener(org.netbeans.api.debugger.jpda.event.JPDABreakpointListener listener)
Remove listener from the breakpoint of the manager

Parameters:
listener -

isQualified

public boolean isQualified(org.netbeans.api.debugger.jpda.MethodBreakpoint mbp)
Has passed breakpoint properties specified by the manager?

Parameters:
mbp - tested breakpoint
Returns:
true if breakpoint is managed by the manager, false otherwise.

purge

public int purge()
Remove all breakpoints that have properties specified by this manager.

Returns:
number of breakpoints that were removed


Copyright © 2015 AMIS research group, Faculty of Mathematics and Physics, Charles University in Prague, Czech Republic. All Rights Reserved.