tcl.pkg.itcl
Class ItclExtension
java.lang.Object
tcl.lang.Extension
tcl.pkg.itcl.ItclExtension
- All Implemented Interfaces:
- Command
public class ItclExtension
- extends Extension
- implements Command
Method Summary |
void |
cmdProc(Interp interp,
TclObject[] objv)
This method implements the functionality of the command. |
void |
init(Interp interp)
Initialize the Extension to run in a normal (unsafe) interpreter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ItclExtension
public ItclExtension()
init
public void init(Interp interp)
throws TclException
- Description copied from class:
Extension
- Initialize the Extension to run in a normal (unsafe) interpreter. This
usually means creating all the commands provided by this class. A
particular implementation can arrange the commands to be loaded on-demand
using the loadOnDemand() function.
- Specified by:
init
in class Extension
- Parameters:
interp
- current interpreter.
- Throws:
TclException
cmdProc
public void cmdProc(Interp interp,
TclObject[] objv)
throws TclException
- Description copied from interface:
Command
- This method implements the functionality of the command. However, calling
it directly in application code will bypass execution traces. Instead,
commands should be called with WrappedCommand.invoke
- Specified by:
cmdProc
in interface Command
- Parameters:
interp
- The interpreter for setting the results and which contains the
contextobjv
- the argument list for the command; objv[0[ is the command name
itself
- Throws:
TclException
- on any errors
Copyright © 2015. All rights reserved.