com.bluemarsh.jswat.command
Class classCommand

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

public class classCommand
extends JSwatCommand

Defines the class that handles the 'class' command.

Author:
Nathan Fiedler

Fields inherited from class com.bluemarsh.jswat.command.JSwatCommand
logCategory, primitiveTypeNames, swat
 
Constructor Summary
classCommand()
           
 
Method Summary
 void perform(Session session, com.bluemarsh.util.StringTokenizer args, Log out)
          Perform the 'class' command.
protected  void printClass(com.sun.jdi.ReferenceType type, boolean showAll, java.lang.StringBuffer buf)
          Print information about a class, interface, or array.
 
Methods inherited from class com.bluemarsh.jswat.command.JSwatCommand
argumentsMatch, createObject, description, findClassesByPattern, getCommandName, getPromptString, 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

classCommand

public classCommand()
Method Detail

perform

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

printClass

protected void printClass(com.sun.jdi.ReferenceType type,
                          boolean showAll,
                          java.lang.StringBuffer buf)
Print information about a class, interface, or array.
Parameters:
type - ReferenceType to display.
showAll - True to show all superclasses.
buf - sink for output.