org.oddjob.script
Interface Evaluatable

All Known Implementing Classes:
NotPreCompiled, PreCompiled

public interface Evaluatable

Something that can be evaluated. This is currently only a further abstraction of compiled and not compiled ScriptEngines.

Author:
rob

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
 

Method Detail

eval

Object eval()
            throws ScriptException
Evaluate the evaluatable.

Returns:
The object returned by the script or null if the script does not return a value.
Throws:
ScriptException

get

Object get(String key)
Get a bean from the engines bindings.

Parameters:
key - The scripts variable name.
Returns:
The bean if one of the name exists.

put

void put(String key,
         Object value)
Add a bean

Parameters:
key -
value -