public final class ScriptResult extends Object
Constructor and Description |
---|
ScriptResult(Object javaScriptResult)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
Object |
getJavaScriptResult()
Returns the object that was the output of the script engine.
|
static boolean |
isFalse(ScriptResult scriptResult)
Utility method testing if a script result is
false . |
static boolean |
isUndefined(ScriptResult scriptResult)
Utility method testing if a script result is undefined (there was no return value).
|
String |
toString() |
public ScriptResult(Object javaScriptResult)
javaScriptResult
- the object that was returned from the script enginepublic Object getJavaScriptResult()
public static boolean isFalse(ScriptResult scriptResult)
false
.scriptResult
- a script result (may be null
)true
if scriptResult
is false
public static boolean isUndefined(ScriptResult scriptResult)
scriptResult
- a script result (may be null
)true
if scriptResult
is undefined (there was no return value)Copyright © 2002–2024 Gargoyle Software Inc.. All rights reserved.