| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objecttcl.lang.Extension
public abstract class Extension
Base class for all Tcl Extensions. A Tcl Extension defines a set of commands that can be loaded into an Interp as a single unit. When a Tcl Extension is loaded into an Interp, either statically (using the "new" operator inside Java code) or dynamically (using the java::load command in Tcl scripts), it usually creates a set of commands inside the interpreter. Occasionally, loading an Extension may lead to additional side effects. For example, a communications Extension may open network connections when it's loaded. Please refer to the documentation of the specific Extension for details.
| Constructor Summary | |
|---|---|
Extension()
Default constructor.  | 
|
| Method Summary | |
|---|---|
abstract  void | 
init(Interp interp)
Initialize the Extension to run in a normal (unsafe) interpreter.  | 
static void | 
loadOnDemand(Interp interp,
             String cmdName,
             String clsName)
Create a stub command which autoloads the real command the first time the stub command is invoked.  | 
 void | 
safeInit(Interp safeInterp)
Initialize the Extension to run in a safe interpreter.  | 
| Methods inherited from class java.lang.Object | 
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public Extension()
| Method Detail | 
|---|
public abstract void init(Interp interp)
                   throws TclException
interp - current interpreter.
TclException
public void safeInit(Interp safeInterp)
              throws TclException
safeInterp - the safe interpreter in which the Extension should be
            initialized.
TclException
public static final void loadOnDemand(Interp interp,
                                      String cmdName,
                                      String clsName)
interp - current interp.cmdName - name of the command, e.g., "after".clsName - name of the Java class that implements this command, e.g.
            "tcl.lang.AfterCmd"
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||