tcl.lang
Class WrappedCommand

java.lang.Object
  extended by tcl.lang.WrappedCommand

public class WrappedCommand
extends java.lang.Object

A Wrapped Command is like the Command struct defined in the C version in the file generic/tclInt.h. It is "wrapped" around a TclJava Command interface reference. We need to wrap Command references so that we can keep track of sticky issues like what namespace the command is defined in without requiring that every implementation of a Command interface provide method to do this. This class is only used in the internal implementation of Jacl.


Field Summary
 Command cmd
           
 int cmdEpoch
           
 boolean deleted
           
 java.lang.String hashKey
           
 Namespace ns
           
 java.util.HashMap table
           
 
Constructor Summary
WrappedCommand()
           
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

table

public java.util.HashMap table

hashKey

public java.lang.String hashKey

ns

public Namespace ns

cmd

public Command cmd

deleted

public boolean deleted

cmdEpoch

public int cmdEpoch
Constructor Detail

WrappedCommand

public WrappedCommand()
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object