tcl.lang
Class Procedure
java.lang.Object
tcl.lang.Procedure
- All Implemented Interfaces:
- Command, CommandWithDispose
public class Procedure
- extends Object
- implements Command, CommandWithDispose
This class implements the body of a Tcl procedure.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
argList
public TclObject[][] argList
isVarArgs
public boolean isVarArgs
body
public CharPointer body
wcmd
public WrappedCommand wcmd
Procedure
public Procedure(Interp interp,
Namespace ns,
String name,
TclObject args,
TclObject b,
String sFileName,
int sLineNumber)
throws TclException
- Throws:
TclException
cmdProc
public void cmdProc(Interp interp,
TclObject[] argv)
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
contextargv
- the argument list for the command; objv[0[ is the command name
itself
- Throws:
TclException
- on any errors
disposeCmd
public void disposeCmd()
- Description copied from interface:
CommandWithDispose
- Called when the interpreter is removing the Tcl command
- Specified by:
disposeCmd
in interface CommandWithDispose
isLambda
public boolean isLambda()
- Returns:
- true if the procedure is anonymous, created with [apply].
isProc
public static boolean isProc(WrappedCommand cmd)
findProc
public static Procedure findProc(Interp interp,
String procName)
Copyright © 2015. All rights reserved.