Package VASSAL.script
Class AbstractInterpreter
java.lang.Object
bsh.Interpreter
VASSAL.script.AbstractInterpreter
- All Implemented Interfaces:
bsh.ConsoleInterface,Serializable,Runnable
- Direct Known Subclasses:
ExpressionInterpreter,ScriptInterpreter
public abstract class AbstractInterpreter
extends bsh.Interpreter
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected bsh.NameSpaceprotected static final Stringprotected static final StringFields inherited from class bsh.Interpreter
DEBUG, evalOnly, interactive, LOCALSCOPING, TRACE, VERSION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAlert(message) Display a message in a dialog box/Display a message in a Dialog box and optionally close the dialog after the specified delayReturn a proxy reference to the named map as long as it is accessible to us.getModuleProperty(String name) Get a module level property value.voidglobalHotKey(KeyStroke stroke) Fire off a Global Hot Keyprotected booleanisAccessible(Map m) Is a map accessible to us?voidsetModuleProperty(String name, String value) Set the value of a module level propertyprotected voidprotected voidprotected voidprotected voidprotected voidSet a variable and handle exceptionsMethods inherited from class bsh.Interpreter
debug, error, eval, eval, eval, eval, get, getClassManager, getErr, getIn, getInterface, getNameSpace, getOut, getParent, getShowResults, getSourceFileInfo, getStrictJava, invokeMain, main, pathToFile, print, println, redirectOutputToFile, run, set, set, set, set, set, set, setClassLoader, setConsole, setErr, setExitOnEOF, setNameSpace, setOut, setShowResults, setStrictJava, source, source, unset
-
Field Details
-
THIS
- See Also:
-
SOURCE
- See Also:
-
myNameSpace
protected bsh.NameSpace myNameSpace
-
-
Constructor Details
-
AbstractInterpreter
public AbstractInterpreter()
-
-
Method Details
-
setVar
-
setVar
-
setVar
-
setVar
-
setVar
-
alert
-
alert
-
getModuleProperty
-
setModuleProperty
-
findMap
-
isAccessible
Is a map accessible to us?- Parameters:
m- Map- Returns:
- true if accessible
-
globalHotKey
-