com.bluemarsh.jswat.command
Class stepCommand

java.lang.Object
  |
  +--com.bluemarsh.jswat.command.JSwatCommand
        |
        +--com.bluemarsh.jswat.command.stepCommand
Direct Known Subclasses:
nextCommand, nextiCommand, stepiCommand

public class stepCommand
extends JSwatCommand

Defines the class that handles the 'step' command.

Version:
1.0 8/15/99
Author:
Nathan Fiedler

Fields inherited from class com.bluemarsh.jswat.command.JSwatCommand
logCategory, primitiveTypeNames, swat
 
Constructor Summary
stepCommand()
           
 
Method Summary
protected  void clearPreviousStep(com.sun.jdi.VirtualMachine vm, com.sun.jdi.ThreadReference thread)
          Clear any step requests that may still be associated with the given thread.
 void perform(Session session, com.bluemarsh.util.StringTokenizer args, Log out)
          Perform the 'step' command.
protected  boolean step(Session session, Log out, int size, int depth)
          Perform a general step operation.
 
Methods inherited from class com.bluemarsh.jswat.command.JSwatCommand
argumentsMatch, createObject, description, findClassesByPattern, getCommandName, getThreadByID, help, help, missingArgs, receiveInput, resolveOverload
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

stepCommand

public stepCommand()
Method Detail

clearPreviousStep

protected void clearPreviousStep(com.sun.jdi.VirtualMachine vm,
                                 com.sun.jdi.ThreadReference thread)
Clear any step requests that may still be associated with the given thread.
Parameters:
vm - Virtual Machine
thread - Thread on which to remove step requests.

perform

public void perform(Session session,
                    com.bluemarsh.util.StringTokenizer args,
                    Log out)
Perform the 'step' command.
Overrides:
perform in class JSwatCommand
Parameters:
session - JSwat session on which to operate.
args - Tokenized string of command arguments.
out - Output to write messages to.

step

protected boolean step(Session session,
                       Log out,
                       int size,
                       int depth)
Perform a general step operation.
Parameters:
session - JSwat session on which to operate.
out - Output to write messages to.
size - How much to step.
depth - How exactly to step.
Returns:
True if successful, false if error.