net.sf.tomp.xtcl.command
Class DumpContexts

java.lang.Object
  extended by net.sf.tomp.xtcl.command.AbstractCommand
      extended by net.sf.tomp.xtcl.command.DumpContexts
All Implemented Interfaces:
Command

public class DumpContexts
extends AbstractCommand

Dumps this Context and also its ancestors.

Author:
tomp

Field Summary
protected  boolean deep
          deep?
 
Constructor Summary
DumpContexts()
           
 
Method Summary
 int execute(Context context)
          Dumps this Context and also its ancestors.
 void setDeep(boolean v)
          set deep
 java.lang.String toString()
          String representation
 
Methods inherited from class net.sf.tomp.xtcl.command.AbstractCommand
done, initParameters, listArray, listList, listMap
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

deep

protected boolean deep
deep?

Constructor Detail

DumpContexts

public DumpContexts()
Method Detail

setDeep

public void setDeep(boolean v)
set deep

Parameters:
v - deep?

execute

public int execute(Context context)
            throws java.lang.Exception
Dumps this Context and also its ancestors.

Specified by:
execute in interface Command
Overrides:
execute in class AbstractCommand
Parameters:
context - what to dump
Returns:
0 if OK
Throws:
java.lang.Exception

toString

public java.lang.String toString()
String representation

Overrides:
toString in class java.lang.Object
Returns:
"DUMP ALL CONTEXTS " + (deep ? "WITH VARIABLE CONTENT" : "");