com.bluemarsh.jswat.command
Class linesCommand

java.lang.Object
  |
  +--com.bluemarsh.jswat.command.JSwatCommand
        |
        +--com.bluemarsh.jswat.command.linesCommand

public class linesCommand
extends JSwatCommand

Defines the class that handles the 'lines' command.

Version:
1.0 9/5/99
Author:
Nathan Fiedler

Fields inherited from class com.bluemarsh.jswat.command.JSwatCommand
logCategory, primitiveTypeNames, swat
 
Constructor Summary
linesCommand()
           
 
Method Summary
 void perform(Session session, com.bluemarsh.util.StringTokenizer args, Log out)
          Perform the 'lines' command.
protected  void printLines(com.sun.jdi.ReferenceType clazz, java.lang.String idMethod, Log out)
          Print the lines out for the given class and method.
 
Methods inherited from class com.bluemarsh.jswat.command.JSwatCommand
argumentsMatch, createObject, description, findClassesByPattern, getCommandName, getPromptString, 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

linesCommand

public linesCommand()
Method Detail

perform

public void perform(Session session,
                    com.bluemarsh.util.StringTokenizer args,
                    Log out)
Perform the 'lines' 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.

printLines

protected void printLines(com.sun.jdi.ReferenceType clazz,
                          java.lang.String idMethod,
                          Log out)
                   throws com.sun.jdi.AbsentInformationException
Print the lines out for the given class and method. If method is null, prints out lines for entire class.
Parameters:
clazz - Class to find lines for.
idMethod - Method to find lines for (can be null).
out - Output to write lines to.