|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ScriptingEngine
Provide an interface to access different scripting engines.
Copyright © 2005-2007 JVoiceXML group - http://jvoicexml.sourceforge.net/
| Method Summary | ||
|---|---|---|
|
createHostObject(String name,
Class<T> template)
Creates a host object in the scripting engine from the given java object. |
|
Object |
eval(String expr)
Evaluates the given expression. |
|
Object |
getVariable(String name)
Gets the variables current value. |
|
boolean |
isVariableDefined(String name)
Checks, if the given variable is defined. |
|
void |
removeVariable(String name)
Removes the given variable from the vault. |
|
void |
setVariable(String name,
Object value)
Sets a existing variable to a new value. |
|
| Method Detail |
|---|
void setVariable(String name,
Object value)
name - unique identifiervalue - the new value of the variableboolean isVariableDefined(String name)
name - Name of the variable to check.
true if the variable is defined.Object getVariable(String name)
name - unique identifier
void removeVariable(String name)
name - unique identifier.
Object eval(String expr)
throws SemanticError
expr - The expression to evaluate.
SemanticError - Error evaluating the expression.
<T> T createHostObject(String name,
Class<T> template)
throws SemanticError
T - Type of the host object.name - Name of the shadow variable.template - Base class of the host object.
SemanticError - Error converting the given object to a host object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||