|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.gargoylesoftware.htmlunit.ScriptResult
public final class ScriptResult
This object contains the result of executing a chunk of script code.
Constructor Summary | |
---|---|
ScriptResult(Object javaScriptResult,
Page newPage)
Create an instance |
Method Summary | |
---|---|
Object |
getJavaScriptResult()
Return the object that was the output of the script engine. |
Page |
getNewPage()
Return the page that is loaded at the end of the script execution. |
static boolean |
isFalse(ScriptResult scriptResult)
Utility method testing if a script result is false |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ScriptResult(Object javaScriptResult, Page newPage)
javaScriptResult
- The object that was returned from the script enginenewPage
- The page that is currently loaded at the end of the script
execution.Method Detail |
---|
public Object getJavaScriptResult()
public Page getNewPage()
public static boolean isFalse(ScriptResult scriptResult)
false
scriptResult
- a script result (may be null
)
true
if scriptResult
is false
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |