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:
- Serialized Form
-
Field Summary
Modifier and TypeFieldDescriptionprotected bsh.NameSpace
protected static String
protected static String
Fields inherited from class bsh.Interpreter
DEBUG, evalOnly, interactive, LOCALSCOPING, TRACE, VERSION
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAlert(message) Display a message in a dialog box/Return a proxy reference to the named map as long as it is accessible to us.getModuleProperty(String name)
Get a module level property value.void
globalHotKey(KeyStroke stroke)
Fire off a Global Hot Keyprotected boolean
isAccessible(Map m)
Is a map accessible to us?void
setModuleProperty(String name, String value)
Set the value of a module level propertyprotected void
protected void
protected void
protected void
protected void
Set 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:
- Constant Field Values
-
SOURCE
- See Also:
- Constant Field Values
-
myNameSpace
protected bsh.NameSpace myNameSpace
-
-
Constructor Details
-
AbstractInterpreter
public AbstractInterpreter()
-
-
Method Details
-
setVar
Set a variable and handle exceptions- Parameters:
name
- Variable namevalue
- Variable value
-
setVar
-
setVar
-
setVar
-
setVar
-
alert
Alert(message) Display a message in a dialog box/- Parameters:
message
- message to display
-
getModuleProperty
Get a module level property value.- Parameters:
name
- Property Name- Returns:
- Property value
-
setModuleProperty
Set the value of a module level property- Parameters:
name
- Property namevalue
- new value
-
findMap
Return a proxy reference to the named map as long as it is accessible to us.- Parameters:
mapName
- Map Name- Returns:
- Map proxy
-
isAccessible
Is a map accessible to us?- Parameters:
m
- Map- Returns:
- true if accessible
-
globalHotKey
Fire off a Global Hot Key- Parameters:
stroke
- Keystroke
-