|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Method Summary | |
java.lang.Object |
apply(java.lang.Object func,
java.lang.Object[] args)
Call a procedure or function. |
java.lang.Object |
eval(java.lang.String expression)
Evaluate an expression in the script language. |
java.lang.Object |
get(java.lang.String name)
Get a variable defined in the interpreter's global namespace |
java.lang.String |
getLanguage()
Return name of language this interpreter handles. |
java.lang.Object |
lambda(java.lang.String[] args,
java.lang.String body)
Construct a procedure or function. |
void |
set(java.lang.String name,
java.lang.Object object)
Set a variable in the interpreter's global namespace |
Method Detail |
public java.lang.String getLanguage()
public java.lang.Object eval(java.lang.String expression) throws ScriptException
expression
- Expression to evaluateScriptException
- if execution encounters an errorpublic java.lang.Object lambda(java.lang.String[] args, java.lang.String body) throws ScriptException
args
- Argument namesbody
- Function bodyScriptException
- if execution encounters an errorpublic java.lang.Object apply(java.lang.Object func, java.lang.Object[] args) throws ScriptException
func
- Function object (previously returned by lambda()args
- Arguments for the functionScriptException
- if execution encounters an errorpublic void set(java.lang.String name, java.lang.Object object)
name
- Name of variableobject
- New value for variablepublic java.lang.Object get(java.lang.String name)
name
- Name of variable to get
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |