public abstract class Extension
extends java.lang.Object
Constructor and Description |
---|
Extension()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
abstract void |
init(Interp interp)
Initialize the Extension to run in a normal (unsafe)
interpreter.
|
static void |
loadOnDemand(Interp interp,
java.lang.String cmdName,
java.lang.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.
|
public Extension()
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, java.lang.String cmdName, java.lang.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"