Add convertJavaObject to QCodeExecutor

This commit is contained in:
2023-07-03 14:05:07 -05:00
parent 40d073bf54
commit 56b9738f15
4 changed files with 138 additions and 57 deletions

View File

@ -46,7 +46,17 @@ public interface QCodeExecutor
** e.g., a Nashorn ScriptObjectMirror will end up as a "primitive", or a List or Map of such
**
*******************************************************************************/
default Object convertObjectToJava(Object object)
default Object convertObjectToJava(Object object) throws QCodeException
{
return (object);
}
/*******************************************************************************
** Convert a native java object into one for the script's language/runtime.
** e.g., a java Instant to a Nashorn Date
**
*******************************************************************************/
default Object convertJavaObject(Object object, Object requestedTypeHint) throws QCodeException
{
return (object);
}