Package org.armedbear.lisp.scripting
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 javax.script.AbstractScriptEngine
context
Fields inherited from interface javax.script.ScriptEngine
ARGV, ENGINE, ENGINE_VERSION, FILENAME, LANGUAGE, LANGUAGE_VERSION, NAME
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncompileAndLoad
(String filespec) compileFile
(String filespec) static String
eval
(Reader code, ScriptContext ctx) eval
(String code, ScriptContext ctx) findFunction
(String name) findSymbol
(String name) findSymbol
(String name, String pkg) static boolean
functionp
(LispObject obj) <T> T
getInterface
(Class<T> clasz) <T> T
getInterface
(Object thiz, Class<T> clasz) invokeFunction
(String name, Object... args) invokeMethod
(Object thiz, String name, Object... args) static boolean
isCompiled
(String filespec) loadFromClasspath
(String classpathResource) void
setInterpreter
(Interpreter interpreter) void
setStandardInput
(InputStream stream) void
setStandardInput
(InputStream stream, LispThread thread) Methods inherited from class javax.script.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:
createBindings
in interfaceScriptEngine
-
eval
- Specified by:
eval
in interfaceScriptEngine
- Throws:
ScriptException
-
eval
- Specified by:
eval
in interfaceScriptEngine
- Throws:
ScriptException
-
getFactory
- Specified by:
getFactory
in interfaceScriptEngine
-
getInterface
- Specified by:
getInterface
in interfaceInvocable
-
getInterface
- Specified by:
getInterface
in interfaceInvocable
-
invokeFunction
public Object invokeFunction(String name, Object... args) throws ScriptException, NoSuchMethodException - Specified by:
invokeFunction
in interfaceInvocable
- Throws:
ScriptException
NoSuchMethodException
-
invokeMethod
public Object invokeMethod(Object thiz, String name, Object... args) throws ScriptException, NoSuchMethodException - Specified by:
invokeMethod
in interfaceInvocable
- Throws:
ScriptException
NoSuchMethodException
-
compile
- Specified by:
compile
in interfaceCompilable
- Throws:
ScriptException
-
compile
- Specified by:
compile
in interfaceCompilable
- Throws:
ScriptException
-