|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.oddjob.script.PreCompiled
public class PreCompiled
Provide an Evaluatable
for a CompiledScript
.
Constructor Summary | |
---|---|
PreCompiled(ScriptEngine engine,
CompiledScript compiled)
|
Method Summary | |
---|---|
Object |
eval()
Evaluate the evaluatable. |
Object |
get(String key)
Get a bean from the engines bindings. |
void |
put(String key,
Object value)
Add a bean |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public PreCompiled(ScriptEngine engine, CompiledScript compiled)
Method Detail |
---|
public Object eval() throws ScriptException
Evaluatable
eval
in interface Evaluatable
ScriptException
public Object get(String key)
Evaluatable
get
in interface Evaluatable
key
- The scripts variable name.
public void put(String key, Object value)
Evaluatable
put
in interface Evaluatable
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |