com.gargoylesoftware.htmlunit
Class ScriptResult

java.lang.Object
  extended by com.gargoylesoftware.htmlunit.ScriptResult

public final class ScriptResult
extends java.lang.Object

This object contains the result of executing a chunk of script code.

Version:
$Revision: 1.3 $
Author:
Mike Bowler, Marc Guillemot

Constructor Summary
ScriptResult(java.lang.Object javaScriptResult, Page newPage)
 Create an instance
 
Method Summary
 java.lang.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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptResult

public ScriptResult(java.lang.Object javaScriptResult,
                    Page newPage)
Create an instance

Parameters:
javaScriptResult - The object that was returned from the script engine
newPage - The page that is currently loaded at the end of the script execution.
Method Detail

getJavaScriptResult

public java.lang.Object getJavaScriptResult()
Return the object that was the output of the script engine.

Returns:
The result from the script engine.

getNewPage

public Page getNewPage()
Return the page that is loaded at the end of the script execution.

Returns:
The new page.

isFalse

public static boolean isFalse(ScriptResult scriptResult)
Utility method testing if a script result is false

Parameters:
scriptResult - a script result (may be null)
Returns:
true if scriptResult is false


Copyright © 2003-2016 AppPerfect Corporation. All Rights Reserved.