org.kahina.core.breakpoint
Class KahinaBreakpointFactory

java.lang.Object
  extended by org.kahina.core.breakpoint.KahinaBreakpointFactory

public class KahinaBreakpointFactory
extends Object

A collection of convenience methods for creating simple breakpoints.


Constructor Summary
KahinaBreakpointFactory()
           
 
Method Summary
static KahinaBreakpoint createMatchingLabelBreakpoint(String name, String pattern, int type)
          Creates a breakpoint for nodes whose labels match a given regular expression.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

KahinaBreakpointFactory

public KahinaBreakpointFactory()
Method Detail

createMatchingLabelBreakpoint

public static KahinaBreakpoint createMatchingLabelBreakpoint(String name,
                                                             String pattern,
                                                             int type)
Creates a breakpoint for nodes whose labels match a given regular expression.

Parameters:
name - a user-readable name for this breakpoint
pattern - the regular expression that node labels are to match
type - one of the constant values in KahinaBreakpointType
Returns:
a new breakpoint matching any tree node whose label matches the pattern