Class Debugger
- java.lang.Object
-
- jmri.jmrit.logixng.tools.debugger.Debugger
-
- All Implemented Interfaces:
PropertyChangeProvider
public class Debugger extends java.lang.Object implements PropertyChangeProvider
LogixNG DebuggerThis class is _not_ thread safe. It must be called on the thread that is used for the conditionalNG that the debugger is activated for.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
STEP_AFTER
static java.lang.String
STEP_BEFORE
-
Constructor Summary
Constructors Constructor Description Debugger()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
activateDebugger(ConditionalNG conditionalNG)
void
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Add aPropertyChangeListener
to the listener list.void
addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
Add aPropertyChangeListener
for a specific property.void
deActivateDebugger()
protected void
firePropertyChange(java.lang.String p, java.lang.Object old, java.lang.Object n)
boolean
getBreak()
ConditionalNG
getDebugConditionalNG()
java.beans.PropertyChangeListener[]
getPropertyChangeListeners()
Get allPropertyChangeListener
s currently attached to this object.java.beans.PropertyChangeListener[]
getPropertyChangeListeners(java.lang.String propertyName)
Get allPropertyChangeListener
s currently listening to changes to the specified property.boolean
isDebuggerActive()
void
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Remove the specified listener from this object.void
removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
Remove the specified listener of the specified property from this object.void
setBreak(boolean value)
-
-
-
Field Detail
-
STEP_BEFORE
public static final java.lang.String STEP_BEFORE
- See Also:
- Constant Field Values
-
STEP_AFTER
public static final java.lang.String STEP_AFTER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Debugger
public Debugger()
-
-
Method Detail
-
activateDebugger
public void activateDebugger(ConditionalNG conditionalNG)
-
deActivateDebugger
public void deActivateDebugger()
-
isDebuggerActive
public boolean isDebuggerActive()
-
getDebugConditionalNG
public ConditionalNG getDebugConditionalNG()
-
setBreak
public void setBreak(boolean value)
-
getBreak
public boolean getBreak()
-
firePropertyChange
@OverridingMethodsMustInvokeSuper protected void firePropertyChange(java.lang.String p, java.lang.Object old, java.lang.Object n)
-
addPropertyChangeListener
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface:PropertyChangeProvider
Add aPropertyChangeListener
to the listener list.- Specified by:
addPropertyChangeListener
in interfacePropertyChangeProvider
- Parameters:
listener
- The PropertyChangeListener to be added
-
addPropertyChangeListener
public void addPropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
Description copied from interface:PropertyChangeProvider
Add aPropertyChangeListener
for a specific property.- Specified by:
addPropertyChangeListener
in interfacePropertyChangeProvider
- Parameters:
propertyName
- The name of the property to listen on.listener
- The PropertyChangeListener to be added
-
getPropertyChangeListeners
public java.beans.PropertyChangeListener[] getPropertyChangeListeners()
Description copied from interface:PropertyChangeProvider
Get allPropertyChangeListener
s currently attached to this object.- Specified by:
getPropertyChangeListeners
in interfacePropertyChangeProvider
- Returns:
- An array of PropertyChangeListeners.
-
getPropertyChangeListeners
public java.beans.PropertyChangeListener[] getPropertyChangeListeners(java.lang.String propertyName)
Description copied from interface:PropertyChangeProvider
Get allPropertyChangeListener
s currently listening to changes to the specified property.- Specified by:
getPropertyChangeListeners
in interfacePropertyChangeProvider
- Parameters:
propertyName
- the name of the property of interest- Returns:
- an array of PropertyChangeListeners
-
removePropertyChangeListener
public void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Description copied from interface:PropertyChangeProvider
Remove the specified listener from this object.- Specified by:
removePropertyChangeListener
in interfacePropertyChangeProvider
- Parameters:
listener
- ThePropertyChangeListener
to remove.
-
removePropertyChangeListener
public void removePropertyChangeListener(java.lang.String propertyName, java.beans.PropertyChangeListener listener)
Description copied from interface:PropertyChangeProvider
Remove the specified listener of the specified property from this object.- Specified by:
removePropertyChangeListener
in interfacePropertyChangeProvider
- Parameters:
propertyName
- The name of the property to stop listening to.listener
- ThePropertyChangeListener
to remove.
-
-