TclJava Library Procedures - Interp manual page

  CLASS
    tcl.lang.Interp -- The Interp class represents the TclJava interpreter.
  METHODS
    CREATION/DISPOSAL: Interp, dispose
    VARIABLES: setVar, getVar, unsetVar
    TRACES: traceVar, untraceVar
    COMMANDS: createCommand, deleteCommand, getCommand
    EVALUATION: eval, evalFile, commandComplete
    RESULT PROCESSING: setResult, getResult, resetResult
    ERROR HANDLING: backgroundError, addErrorInfo, setErrorCode
    EVENT HANDLING: getNotifier
    ASSOC-DATA: setAssocData, getAssocData, deleteAssocData
    PACKAGE: pkgRequire pkgProvide
  DESCRIPTION
    dispose
    setVar, getVar, unsetVar
    traceVar, untraceVar
    createCommand, deleteCommand, getCommand
    eval, evalFile, commandComplete
    setResult, getResult, resetResult
    backgroundError, addErrorInfo, setErrorCode
    getNotifier
    setAssocData, getAssocData, deleteAssocData
    pkgRequire, pkgProvide
  EXAMPLE
  SEE ALSO
  KEYWORDS

### CLASS

tcl.lang.Interp -- The Interp class represents the TclJava interpreter.

### METHODS

CREATION/DISPOSAL: Interp, dispose
  See dispose

VARIABLES: setVar, getVar, unsetVar
  See setVar

TRACES: traceVar, untraceVar
  See traceVar

COMMANDS: createCommand, deleteCommand, getCommand
  See createCommand

EVALUATION: eval, evalFile, commandComplete
  See eval

RESULT PROCESSING: setResult, getResult, resetResult
  See setResult

ERROR HANDLING: backgroundError, addErrorInfo, setErrorCode
  See backgroundError

EVENT HANDLING: getNotifier
  See getNotifier

ASSOC-DATA: setAssocData, getAssocData, deleteAssocData
  See setAssocData

PACKAGE: pkgRequire pkgProvide
  See pkgRequire

### DESCRIPTION

The Interp class represents the TclJava enhanced interpreter interpreter.

The Interp class contains many varying public methods that control the interpreter. It includes constructor and disposal methods as well as methods that control the value of variables and commands. It also includes an interface to evaluation of Tcl commands, including result processing, error handling, and event notification.

This manual entry categorizes the methods of the Interp class by thier functionality. For more details on specific methods, check the documentation for their respective categories.

dispose
  The constructor and dispose method offer creation and disposal of instances of the Interp class. See the dispose manual entry for more details.

setVar, getVar, unsetVar
  These methods manipulate the variables inside the interpreter. See the setVar manual entry for more details.

traceVar, untraceVar
  These methods offer an interface to monitor accesses to the variables inside the interpreter. See the traceVar manual entry for more details.

createCommand, deleteCommand, getCommand
  These methods create, query, modify and delete Tcl commands from the interpreter. See the createCommand manual entry for more details.

eval, evalFile, commandComplete
  These methods are the interface for Tcl commands to be evaluated in the interpreter and to check completeness of commands before evaluating them. See the Eval manual entry for more details.

setResult, getResult, resetResult
  These methods read and modify the interpreter's result object. See the setResult manual entry for more details.

backgroundError, addErrorInfo, setErrorCode
  These methods manipulate the error info pertaining to Tcl commands evaluated in the interpreter. See the backgroundError manual entry for more details.

getNotifier
  This method retrieves the notifier associated with the interpreter. See the getNotifier manual entry for more details.

setAssocData, getAssocData, deleteAssocData
  These methods offer an interface to create and delete named association between user-specified data and the interpreter. See the setAssocData manual entry for more details.

pkgRequire, pkgProvide
  These methods are for package version control. See the pkgRequire manual entry for more details.

### EXAMPLE

  The following is an example of how an instance of the Interp object may be used:

      Interp interp;
      interp = new Interp();
      interp.eval("puts {Hello, world}");
      interp.dispose();

### SEE ALSO

dispose, setVar, traceVar, createCommand, setResult, eval, backgroundError, getNotifier, setAssocData, pkgRequire

### KEYWORDS

assoc-data, command, create, dispose, eval, error, event, interpreter, result, trace, variable

    Copyright © 1994-1998 Sun Microsystems, Inc.
    Copyright © 1995-1997 Roger E. Critchlow Jr.