* @param name a <code>String</code> value
* @return an <code>Object</code> value
*/
public Object get(String name) {
try {
PyModule module = null;
String[] tokens = null;
if(name.indexOf('.') > 0) {
// split package name by '.' and make modules
tokens = name.split("\\.");
for(int i = 0; i < tokens.length - 1; i++) {
if(module == null)
module = jep.createModule(tokens[i]);
else
module = module.createModule(tokens[i]);
}
}
if(module == null)
return this.jep.getValue(name);
else
return module.getValue(tokens[tokens.length - 1]);
}
catch(JepException e) {
// probably not found. javax.script wants use to just return null
return null;
}