Class AbclScriptEngine
java.lang.Object
javax.script.AbstractScriptEngine
org.armedbear.lisp.scripting.AbclScriptEngine
- All Implemented Interfaces:
Compilable, Invocable, ScriptEngine
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class AbstractScriptEngine
contextFields inherited from interface ScriptEngine
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompileAndLoad(String filespec) compileFile(String filespec) static Stringeval(Reader code, ScriptContext ctx) eval(String code, ScriptContext ctx) findFunction(String name) findSymbol(String name) findSymbol(String name, String pkg) static booleanfunctionp(LispObject obj) <T> TgetInterface(Class<T> clasz) <T> TgetInterface(Object thiz, Class<T> clasz) invokeFunction(String name, Object... args) invokeMethod(Object thiz, String name, Object... args) static booleanisCompiled(String filespec) loadFromClasspath(String classpathResource) voidsetInterpreter(Interpreter interpreter) voidsetStandardInput(InputStream stream) voidsetStandardInput(InputStream stream, LispThread thread) Methods inherited from class AbstractScriptEngine
eval, eval, eval, eval, get, getBindings, getContext, getScriptContext, put, setBindings, setContext
-
Constructor Details
-
AbclScriptEngine
protected AbclScriptEngine()
-
-
Method Details
-
getInterpreter
-
setStandardInput
-
setStandardInput
-
setInterpreter
-
escape
-
loadFromClasspath
-
load
-
load
-
load
-
isCompiled
-
compileFile
-
compileAndLoad
-
functionp
-
jsetq
-
findSymbol
-
findSymbol
-
findFunction
-
createBindings
- Specified by:
createBindingsin interfaceScriptEngine
-
eval
- Specified by:
evalin interfaceScriptEngine- Throws:
ScriptException
-
eval
- Specified by:
evalin interfaceScriptEngine- Throws:
ScriptException
-
getFactory
- Specified by:
getFactoryin interfaceScriptEngine
-
getInterface
- Specified by:
getInterfacein interfaceInvocable
-
getInterface
- Specified by:
getInterfacein interfaceInvocable
-
invokeFunction
public Object invokeFunction(String name, Object... args) throws ScriptException, NoSuchMethodException - Specified by:
invokeFunctionin interfaceInvocable- Throws:
ScriptExceptionNoSuchMethodException
-
invokeMethod
public Object invokeMethod(Object thiz, String name, Object... args) throws ScriptException, NoSuchMethodException - Specified by:
invokeMethodin interfaceInvocable- Throws:
ScriptExceptionNoSuchMethodException
-
compile
- Specified by:
compilein interfaceCompilable- Throws:
ScriptException
-
compile
- Specified by:
compilein interfaceCompilable- Throws:
ScriptException
-