Interface ScriptValueConverter
-
- All Known Implementing Classes:
JavascriptValueConverter
,RhinoValueConverter
public interface ScriptValueConverter
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Object
convert(Object o)
Attempts to convert a script-engine internal value to a pure java value.
-
-
-
Method Detail
-
convert
Object convert(Object o)
Attempts to convert a script-engine internal value to a pure java value. It is important to returnnull
for all values that cannot be converted by this implementation to let other implementations have its turn.- Parameters:
o
- the value to be converted.- Returns:
- the converted value or null if the value is not convertible.
-
-