| java.lang.Object tcl.lang.EventuallyFreed tcl.lang.Interp
Inner Class :class ResolverScheme | |
Constructor Summary | |
public | Interp() |
Method Summary | |
public void | addErrorInfo(String message) | public void | addInterpResolver(String name, Resolver resolver) ----------------------------------------------------------------------
Tcl_AddInterpResolvers -> addInterpResolver
Adds a set of command/variable resolution procedures to an
interpreter. | void | allowExceptions() | void | appendElement(String string) | public void | backgroundError() | static BackSlashResult | backslash(String s, int i, int len) | final TclObject | checkCommonBoolean(boolean value) ----------------------------------------------------------------------
checkCommonBoolean()
Always return a shared boolean TclObject. | final TclObject | checkCommonCharacter(int c) ----------------------------------------------------------------------
checkCommonCharacter()
It is very common to create a TclObject that contains
a single character. | final TclObject | checkCommonDouble(double value) ----------------------------------------------------------------------
checkCommonDouble()
If a given double value is in the common value pool
the return a shared object for that double. | final TclObject | checkCommonInteger(int value) ----------------------------------------------------------------------
checkCommonInteger()
If a given integer value is in the common value pool
then return a shared object for that integer. | final TclObject | checkCommonString(String value) ----------------------------------------------------------------------
checkCommonString()
If a given String value is in the common value pool
the return a shared object for that String. | final void | checkInterrupted() | public static boolean | commandComplete(String string) | String | convertStringCRLF(String inStr) | public void | createCommand(String cmdName, Command cmdImpl) | protected void | createCommands() | public void | deleteAssocData(String name) | public int | deleteCommand(String cmdName) | public int | deleteCommandFromToken(WrappedCommand cmd) | public void | dispose() | final void | disposeInterrupted() | public void | eval(String script) | public void | eval(String string, int flags) | public void | eval(TclObject tobj, int flags) | public void | evalFile(String s) | public void | evalResource(String resName) | void | evalURL(URL context, String s) | public void | eventuallyDispose() | void | exposeCommand(String hiddenCmdToken, String cmdName) | protected void | finalize() | int | getArgLineNumber(int index) Returns the line number where the given command argument begins. | public AssocData | getAssocData(String name) | public ClassLoader | getClassLoader() | public Command | getCommand(String cmdName) | public String | getCommandFullName(WrappedCommand cmd) | public String | getCommandName(WrappedCommand cmd) | public int | getErrorLine() | public Resolver | getInterpResolver(String name) ----------------------------------------------------------------------
Tcl_GetInterpResolvers -> getInterpResolver
Looks for a set of command/variable resolution procedures with
the given name in an interpreter. | public Notifier | getNotifier() | InputStream | getResourceAsStream(String resName) | final public TclObject | getResult() | String | getScriptFile() Returns the name of the script file currently under execution. | final TclObject | getVar(TclObject nameObj, int flags) | final public TclObject | getVar(String name, int flags) | final public TclObject | getVar(String name1, String name2, int flags) | File | getWorkingDir() | void | hideCommand(String cmdName, String hiddenCmdToken) | void | hideUnsafeCommands() ----------------------------------------------------------------------
TclHideUnsafeCommands -> hideUnsafeCommands
Hides base commands that are not marked as safe from this
interpreter. | protected DebugInfo | initDebugInfo() Initialize the debugging information. | int | invoke(TclObject[] objv, int flags) | int | invokeGlobal(TclObject[] objv, int flags) | protected CallFrame | newCallFrame(Procedure proc, TclObject[] objv) | protected CallFrame | newCallFrame() | final public void | pkgProvide(String name, String version) | final public String | pkgRequire(String pkgname, String version, boolean exact) | void | popDebugStack() Remove the top-most level of the debug stack. | void | preventAliasLoop(Interp cmdInterp, WrappedCommand cmd) | public void | processUnexpectedResult(int returnCode) | void | pushDebugStack(String fileName, int lineNumber) Add more more level at the top of the debug stack. | void | ready() | public void | recordAndEval(TclObject script, int flags) | public boolean | removeInterpResolver(String name) ----------------------------------------------------------------------
Tcl_RemoveInterpResolvers -> removeInterpResolver
Removes a set of command/variable resolution procedures
previously added by addInterpResolver. | protected void | renameCommand(String oldName, String newName) | final public void | resetResult() | public void | setAssocData(String name, AssocData data) | public void | setErrorCode(TclObject code) | public void | setInterrupted() | final public void | setResult(TclObject newResult) | final public void | setResult(String r) | final public void | setResult(int r) | final public void | setResult(double r) | final public void | setResult(boolean r) | final TclObject | setVar(TclObject nameObj, TclObject value, int flags) | final public TclObject | setVar(String name, TclObject value, int flags) | final public TclObject | setVar(String name1, String name2, TclObject value, int flags) | final TclObject | setVar(String name, String strValue, int flags) | final public TclObject | setVar(String name1, String name2, String strValue, int flags) | final public TclObject | setVar(String name1, String name2, int intValue, int flags) | final public TclObject | setVar(String name1, String name2, double dValue, int flags) | final public TclObject | setVar(String name1, String name2, boolean bValue, int flags) | void | setWorkingDir(String dirName) | public String | toString() | void | traceVar(TclObject nameObj, VarTrace trace, int flags) | public void | traceVar(String name, VarTrace trace, int flags) | public void | traceVar(String part1, String part2, VarTrace trace, int flags) | void | transferResult(Interp sourceInterp, int result) | final void | unsetVar(TclObject nameObj, int flags) | final public void | unsetVar(String name, int flags) | final public void | unsetVar(String name1, String name2, int flags) | void | untraceVar(TclObject nameObj, VarTrace trace, int flags) | public void | untraceVar(String name, VarTrace trace, int flags) | public void | untraceVar(String part1, String part2, VarTrace trace, int flags) | public int | updateReturnInfo() |
INVOKE_HIDDEN | final static int INVOKE_HIDDEN(Code) | | |
INVOKE_NO_TRACEBACK | final static int INVOKE_NO_TRACEBACK(Code) | | |
INVOKE_NO_UNKNOWN | final static int INVOKE_NO_UNKNOWN(Code) | | |
cmdCount | protected int cmdCount(Code) | | |
deleted | protected boolean deleted(Code) | | |
errAlreadyLogged | protected boolean errAlreadyLogged(Code) | | |
errCodeSet | protected boolean errCodeSet(Code) | | |
errInProgress | protected boolean errInProgress(Code) | | |
maxNestingDepth | final int maxNestingDepth(Code) | | |
parserObjvUsed | int[] parserObjvUsed(Code) | | |
parserTokensUsed | int parserTokensUsed(Code) | | |
randSeedInit | boolean randSeedInit(Code) | | |
reflectObjCount | long reflectObjCount(Code) | | |
returnCode | protected int returnCode(Code) | | |
termOffset | int termOffset(Code) | | |
addInterpResolver | public void addInterpResolver(String name, Resolver resolver)(Code) | | ----------------------------------------------------------------------
Tcl_AddInterpResolvers -> addInterpResolver
Adds a set of command/variable resolution procedures to an
interpreter. These procedures are consulted when commands
are resolved in Namespace.findCommand, and when variables are
resolved in Namespace.findNamespaceVar and thus Var.lookupVar.
Each namespace may also have its own resolution object
which take precedence over those for the interpreter.
When a name is resolved, it is handled as follows. First,
the name is passed to the resolution objects for the
namespace. If not resolved, the name is passed to each of
the resolution procedures added to the interpreter. Finally,
if still not resolved, the name is handled using the default
Tcl rules for name resolution.
Results:
None.
Side effects:
The list of resolvers of the given interpreter is modified.
----------------------------------------------------------------------
|
allowExceptions | void allowExceptions()(Code) | | |
backgroundError | public void backgroundError()(Code) | | |
checkCommonBoolean | final TclObject checkCommonBoolean(boolean value)(Code) | | ----------------------------------------------------------------------
checkCommonBoolean()
Always return a shared boolean TclObject.
----------------------------------------------------------------------
|
checkCommonCharacter | final TclObject checkCommonCharacter(int c)(Code) | | ----------------------------------------------------------------------
checkCommonCharacter()
It is very common to create a TclObject that contains
a single character. It can be costly to allocate a
TclObject, a TclString internal rep, and a String
to represent a character. This method avoids that
overhead for the most common characters. This method
will return null if a character does not have a
cached value.
----------------------------------------------------------------------
|
checkCommonDouble | final TclObject checkCommonDouble(double value)(Code) | | ----------------------------------------------------------------------
checkCommonDouble()
If a given double value is in the common value pool
the return a shared object for that double. If the
double value is not in the common pool then a new
TclDouble wrapped in a TclObject will be created.
----------------------------------------------------------------------
|
checkCommonInteger | final TclObject checkCommonInteger(int value)(Code) | | ----------------------------------------------------------------------
checkCommonInteger()
If a given integer value is in the common value pool
then return a shared object for that integer. If the
integer value is not in the common pool then use to
use the recycled int value or a new TclObject.
----------------------------------------------------------------------
|
checkCommonString | final TclObject checkCommonString(String value)(Code) | | ----------------------------------------------------------------------
checkCommonString()
If a given String value is in the common value pool
the return a shared object for that String. If the
String value is not in the common pool then a new
TclString wrapped in a TclObject will be created.
----------------------------------------------------------------------
|
checkInterrupted | final void checkInterrupted()(Code) | | |
commandComplete | public static boolean commandComplete(String string)(Code) | | |
createCommands | protected void createCommands()(Code) | | |
deleteAssocData | public void deleteAssocData(String name)(Code) | | |
dispose | public void dispose()(Code) | | |
disposeInterrupted | final void disposeInterrupted()(Code) | | |
eventuallyDispose | public void eventuallyDispose()(Code) | | |
getArgLineNumber | int getArgLineNumber(int index)(Code) | | Returns the line number where the given command argument begins. E.g, if
the following command is at line 10:
foo {a
b } c
getArgLine(0) = 10
getArgLine(1) = 10
getArgLine(2) = 11
Parameters: index - specifies an argument. the line number of the given argument. |
getErrorLine | public int getErrorLine()(Code) | | |
getInterpResolver | public Resolver getInterpResolver(String name)(Code) | | ----------------------------------------------------------------------
Tcl_GetInterpResolvers -> getInterpResolver
Looks for a set of command/variable resolution procedures with
the given name in an interpreter. These procedures are
registered by calling addInterpResolver.
Results:
If the name is recognized, this procedure returns the object
implementing the name resolution procedures.
If the name is not recognized, this procedure returns null.
Side effects:
None.
----------------------------------------------------------------------
|
getScriptFile | String getScriptFile()(Code) | | Returns the name of the script file currently under execution.
the name of the script file currently under execution. |
hideUnsafeCommands | void hideUnsafeCommands() throws TclException(Code) | | ----------------------------------------------------------------------
TclHideUnsafeCommands -> hideUnsafeCommands
Hides base commands that are not marked as safe from this
interpreter.
Results:
None
Side effects:
Hides functionality in an interpreter.
----------------------------------------------------------------------
|
initDebugInfo | protected DebugInfo initDebugInfo()(Code) | | Initialize the debugging information.
a DebugInfo object used by Interp in non-debugging mode. |
popDebugStack | void popDebugStack() throws TclRuntimeError(Code) | | Remove the top-most level of the debug stack.
|
processUnexpectedResult | public void processUnexpectedResult(int returnCode) throws TclException(Code) | | |
pushDebugStack | void pushDebugStack(String fileName, int lineNumber)(Code) | | Add more more level at the top of the debug stack.
Parameters: fileName - the filename for the new stack level Parameters: lineNumber - the line number at which the execution of thenew stack level begins. |
removeInterpResolver | public boolean removeInterpResolver(String name)(Code) | | ----------------------------------------------------------------------
Tcl_RemoveInterpResolvers -> removeInterpResolver
Removes a set of command/variable resolution procedures
previously added by addInterpResolver. The next time
a command/variable name is resolved, these procedures
won't be consulted.
Results:
Returns true if the name was recognized and the
resolution scheme was deleted. Returns false otherwise.
Side effects:
The list of resolvers of the given interpreter may be modified.
----------------------------------------------------------------------
|
resetResult | final public void resetResult()(Code) | | |
setInterrupted | public void setInterrupted()(Code) | | |
setResult | final public void setResult(int r)(Code) | | |
setResult | final public void setResult(double r)(Code) | | |
setResult | final public void setResult(boolean r)(Code) | | |
updateReturnInfo | public int updateReturnInfo()(Code) | | |
|
|